Hi,
is it possible to schedule a job in elasticsearch and save it?
My requirements are that the team only wants to keep certain messages after xy days to reduce the storage capacity.
Can i realize it with rollover, ilm? I only thought about reindex and then delete the old index. But I didnt found a way to schedule jobs/tasks or store it somewhere. And we dont want to create another container which only runs this one job via the api.
If you are using time based indices, which is the recommendation for this kind of use case, then it should be easy to configure ILM to move old indices to cold or delete phase...
Deleting documents from indices is very expensive and inefficient compared to deleting complete indices so is not recommended nor supported by ILM. You will therefore need to set up a cron job or similar to periodically run a delete by query.
Yeah i know this too, this is why I thought if i can maybe reindex only the wanted messages into a new index and delete the old one with some form of job in elasticsearch.
@Christian_Dahlqvist I know i dont get infos about it here, but i used it as a comparison.... because i didnt found anything like it. And I am not interested in the opendistro elasticsearch fight...
Is there a function in elasticsearch to store tasks which are executed in a periodic way?
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.