I've alerters that generates multiple report once per week sent per mail automatically. Reports older than 2 weeks are not necessary and I want to be able to setup an automatic cleaning of those reports.
Is there an easy way to do it rather than manually doing the cleaning in the interface or launching manually a command?
The safest way to delete Reports from ES directly is:
POST /.reporting-<yyyy.mm.dd>/_delete_by_query
{ "query": { "match_all": {} } }
That deletes the documents, but not the index completely, making the mappings still correct for the index. That's the safe thing to do if you need to delete recent reports.
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.