I have 3 questions:
-
how to automate deletion of indices stored in aws_es:
I am using an aws_elasticsearch to store data where each index is created everyday based on the time stamp they have. I am using -%{+YYYY.MM.dd} at the end of my index name. how can i delete indices which are older than x days and, i want to automate this process. -
how does logstash keeps a look at files? I want to perform ondemand indexing where i fetch files in the directory where logstash is running, will those files get indexed as i failed to do so by just creating a file with different timestamp.
-
The files in my directory are created each hour, and i am creating one index each day, will all the data will go into the same index which is created each day?