Delete log data
Posted: Thu Jul 19, 2018 1:34 pm
I messed up when trying to import data from a file. How do I delete the data out of the log server?
Support for Nagios products and services
https://support.nagios.com/forum/
scottwilkerson wrote:If you go to Admin -> Index Status
You can delete any or all of the daily indexes
Code: Select all
curl -XDELETE localhost:9200/logstash-2018.07.19/I am sorry, but I don't see an actions column. Please see my attached screenshot.scottwilkerson wrote:In the Actions column on the right you can click "delete"
Or for days other than the current day, you can check all the boxes and choose delete from the "With selected indices: " drop down on the bottom
scottwilkerson wrote:If you only have a current day index you may need to run the following from the CLI
Code: Select all
curl -XDELETE localhost:9200/logstash-2018.07.19/
scottwilkerson wrote:Yes, it auto-drills in to this if you only have 1 index, the following will delete that index, and then it will be re-created when the first new log comes in.
scottwilkerson wrote:If you only have a current day index you may need to run the following from the CLI
Code: Select all
curl -XDELETE localhost:9200/logstash-2018.07.19/
Locking thread.cockraml wrote:scottwilkerson wrote:Yes, it auto-drills in to this if you only have 1 index, the following will delete that index, and then it will be re-created when the first new log comes in.
scottwilkerson wrote:If you only have a current day index you may need to run the following from the CLI
Code: Select all
curl -XDELETE localhost:9200/logstash-2018.07.19/
Thank you, this helped.