I have Logstash reading from a log file status.log
and sending the output to an Elasticsearch instance.
I want to clean the data in Elasticsearch, for that I'm executing curl -XDELETE 'http://localhost:9200/index_name/_all'
. If I check through the head plugin, the data is gone.
If that was not enough I'm also cleaning the log file with echo "" > status.log
.
When I execute the application again, the old data reappears in Elasticsearch but with an updated @timestamp
. The data is not present again in the status.log
. The new data is inserted correctly in Elasticsearch.
How can I get rid of the old data? Is it still stored in Elasticsearch or Logstash has some kind of cache?