I've inherited an old stack with elasticsearch 1.7. Previously, as has been documented in many threads, it was possible to delete logs using a chrome plugin, which has since been disabled.
I'm reluctant to upgrade the stack because I don't know what else I'll need to do and I have no internal resources to draw on. Previously I would delete logstash logs older than a certain date just by changing the date parameter in a query in the plugin console on Chrome. Please could someone give me some help in how I delete logs older than a specific date going forward?
I can't remember the exact syntax but it went something like "DELETE LOGSTASH ...."
Thanks in advance (and apologies once again if this is a dumb question).
Keith
Sorted now. Installed the plugin. It took me a bit to get my head round it. I couldn't find any docs for the chrome plugin, so was trying all sorts of complicated structured queries, when I stumbled upon the delete option in the Actions dropdown. D'Oh!
Oh wow. Delete by query is a horrible idea for time series data. It's like the difference in SQL between DELETE from TABLE where timestamp < x and DROP TABLE. Millions of atomic operations in one vs. a single operation for the other.
Use Elasticsearch Curator to delete time series indices on a schedule.
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.