Page 1 of 1

nagioslogserver_history index

Posted: Thu Apr 09, 2020 12:06 pm
by Envera IT
Just wondering is the nagioslogserver_history index gets trimmed automatically on the backend and at what interval. Its at 10GB with 10 shards currently so its using 100GB of the cluster storage. Is there a way to reduce the size of this index or clear out those shards without impacting the cluster? Is this something I should just ignore? There's no pressing need on my end to clear the space, just something I noticed and wondered to myself "why is it using all that space for this?".

Re: nagioslogserver_history index

Posted: Thu Apr 09, 2020 4:34 pm
by cdienger
This index contains the alert history found in the web UI under Alerting > Alerting > Alert History.

I will file a feature request to allow trimming of this index, but for the time being you can clear it out from the command line with:

Code: Select all

curl -XDELETE "http://localhost:9200/nagioslogserver_history/"

Re: nagioslogserver_history index

Posted: Wed Apr 22, 2020 9:35 am
by Envera IT
Thank you. I ran the command without issue. You can close this out.

Re: nagioslogserver_history index

Posted: Wed Apr 22, 2020 10:12 am
by cdienger
Will do. I've also filed a feature request to make this configurable in the web UI.