Skip to content

curator job from logsearch/208.0.0

Github source: c2c82cac or master branch

Properties

curator

actions

List of Elasticsearch Curator actions in YAML format.

Example
|+
  - action: delete_indices
    description: >-
      Delete indices older than 45 days (based on index name), for logstash-
      prefixed indices. Ignore the error if the filter does not result in an
      actionable list of indices (ignore_empty_list) and exit cleanly.
    options:
      ignore_empty_list: True
      disable_action: True
    filters:
    - filtertype: pattern
      kind: prefix
      value: logstash-
    - filtertype: age
      source: name
      direction: older
      timestring: '%Y.%m.%d'
      unit: days
      unit_count: 45

elasticsearch

hosts

IP address of elasticsearch host to proxy requests for (eg, 127.0.0.1)

Default
- 127.0.0.1
port

Port address of elasticsearch host to proxy requests for (eg, 9200)

Default
9200

logformat

This should default, json, logstash.

Default
default

loglevel

Set the minimum acceptable log severity to display.

Default
INFO

purge_logs

retention_period

The value of this setting will be used as a multiplier for unit

Default
30
unit

One of the following values: seconds, minutes, hours, days, weeks, months, years

Default
days

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/curator/ directory (learn more).

  • bin/curator_ctl (from bin/curator_ctl)
  • bin/run (from bin/run)
  • config/actions.yml (from config/actions.yml.erb)
  • config/config.yml (from config/config.yml.erb)
  • config/purge_logs.cron (from config/purge_logs.cron)
  • data/properties.sh (from data/properties.sh.erb)
  • helpers/ctl_setup.sh (from helpers/ctl_setup.sh)
  • helpers/ctl_utils.sh (from helpers/ctl_utils.sh)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.