Advertisement
Guest User

Untitled

a guest
Apr 11th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. #/.curator$ cat config.yml
  2. ---
  3. # Remember, leave a key empty if there is no value. None will be a string,
  4. # not a Python "NoneType"
  5. client:
  6. hosts:
  7. - 127.0.0.1
  8. port: 9200
  9. url_prefix:
  10. use_ssl: False
  11. certificate:
  12. client_cert:
  13. client_key:
  14. ssl_no_validate: False
  15. http_auth:
  16. timeout: 30
  17. master_only: False
  18.  
  19. logging:
  20. loglevel: INFO
  21. logfile:
  22. logformat: default
  23. blacklist: ['elasticsearch', 'urllib3']
  24. EOF
  25. #/.curator$ cat delete_indices.yml
  26. ---
  27. actions:
  28. 1:
  29. action: delete_indices
  30. description: >-
  31. Keep PANW 'Traffic' indices for last 7 days only
  32. options:
  33. ignore_empty_list: true
  34. filters:
  35. - filtertype: pattern
  36. kind: prefix
  37. value: panos-traffic-
  38. - filtertype: age
  39. source: name
  40. direction: older
  41. timestring: '%Y.%m.%d'
  42. unit: days
  43. unit_count: 7
  44. #/.curator$ curator ./delete_indices.yml --config ./curator.yml
  45. 2020-04-11 18:40:10,849 INFO Preparing Action ID: 1, "delete_indices"
  46. 2020-04-11 18:40:10,850 INFO Creating client object and testing connection
  47. 2020-04-11 18:40:10,852 INFO Instantiating client object
  48. 2020-04-11 18:40:10,852 INFO Testing client connectivity
  49. 2020-04-11 18:40:10,855 INFO Successfully created Elasticsearch client object with provided settings
  50. 2020-04-11 18:40:10,856 INFO Trying Action ID: 1, "delete_indices": Keep PANW 'Traffic' indices for last 7 days only
  51. 2020-04-11 18:40:10,911 INFO Skipping action "delete_indices" due to empty list: <class 'curator.exceptions.NoIndices'>
  52. 2020-04-11 18:40:10,912 INFO Action ID: 1, "delete_indices" completed.
  53. 2020-04-11 18:40:10,912 INFO Job completed.
  54. #/.curator$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement