I' m trying to delete logs older than 10 days within an indice, based on the timestamp of my logs indice, but it does not seem to work as curator seems to delete logs older than 5 days instead,
The name of my indice is as follow : indice-2018.04
Structure of this indice contains following fields :
If you run with --dry-run and loglevel: DEBUG you'll see everything, including the calculated time values. Those log lines will be important to help figure out what's happening.
Curator manages retention by deleting complete indices, not individual documents within an index. Based on your index name it looks like you are using monthly indices, so I do not see how you will be able to delete just data that is older than 10 days with this.
I thought thas as curator can be configurated to delete "objects" based on timestamp, it would be on logs timestamp, therefore it could only delete logs older than ...
So you are saying to me that curator can only delete complete indices.
is there another solution to delete only specific logs of a dedicated indice? or do I have no other choice than having daily indices?
You should not be deleting from an index if you are using time-series data. Retention should be managed by dropping entire indices, rather than trying to delete from an index. The "drop" is a single operation, while the delete from is millions of atomic operations, which is extremely taxing for the I/O operations of each node that has a shard for that index.
If you need to be able to search across multiple indices to cover all of the data you have, use aliases, or index patterns to search across all indices.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.