About the curator setting about curator.yml and action_file

about the curator
can give me a example how setting the "curator.yml" and the "action_file"
thanks so much.

How about the ones in the documentation?

ok @theuntergeek
the filter about "timestring" ,
if the indices like
logstash-20170918-ip-122 ;
logstash-20170919-ip-122;
logstash-20170920-ip-122;

how setting the filter about it ?

That timestring appears to be %Y%m%d

Do you have to use the timestring? Is the index creation_date inaccurate?

the tools is difference about use curl shell tasks delete the indices?
like
#!/bin/sh
yesterday=date --date='31 days ago' +%Y%m%d
curl -XDELETE http://xx.xx.xx.xxx:9200/-$yesterday?pretty

yes the logstash index as index => "system-log-61-%{+YYYY.MM.dd}-ip-61"
how about set the timestring .
@theuntergeek

i slove it
use
kind: regex
value: '^logs-.*ip-61'
source: creation_date

Hmmm. You previously stated:

But your index pattern you're sharing (system-log-61-%{+YYYY.MM.dd}-ip-61) indicates the pattern is actually %Y.%m.%d, with periods in between.

This is another great reason to go with creation_date, which it seems you've discovered works well for you.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.