Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/.curator$ cat config.yml
- ---
- # Remember, leave a key empty if there is no value. None will be a string,
- # not a Python "NoneType"
- client:
- hosts:
- - 127.0.0.1
- port: 9200
- url_prefix:
- use_ssl: False
- certificate:
- client_cert:
- client_key:
- ssl_no_validate: False
- http_auth:
- timeout: 30
- master_only: False
- logging:
- loglevel: INFO
- logfile:
- logformat: default
- blacklist: ['elasticsearch', 'urllib3']
- EOF
- #/.curator$ cat delete_indices.yml
- ---
- actions:
- 1:
- action: delete_indices
- description: >-
- Keep PANW 'Traffic' indices for last 7 days only
- options:
- ignore_empty_list: true
- filters:
- - filtertype: pattern
- kind: prefix
- value: panos-traffic-
- - filtertype: age
- source: name
- direction: older
- timestring: '%Y.%m.%d'
- unit: days
- unit_count: 7
- #/.curator$ curator ./delete_indices.yml --config ./curator.yml
- 2020-04-11 18:40:10,849 INFO Preparing Action ID: 1, "delete_indices"
- 2020-04-11 18:40:10,850 INFO Creating client object and testing connection
- 2020-04-11 18:40:10,852 INFO Instantiating client object
- 2020-04-11 18:40:10,852 INFO Testing client connectivity
- 2020-04-11 18:40:10,855 INFO Successfully created Elasticsearch client object with provided settings
- 2020-04-11 18:40:10,856 INFO Trying Action ID: 1, "delete_indices": Keep PANW 'Traffic' indices for last 7 days only
- 2020-04-11 18:40:10,911 INFO Skipping action "delete_indices" due to empty list: <class 'curator.exceptions.NoIndices'>
- 2020-04-11 18:40:10,912 INFO Action ID: 1, "delete_indices" completed.
- 2020-04-11 18:40:10,912 INFO Job completed.
- #/.curator$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement