Reduce logstash size after removing events in it

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
rajusys
Posts: 3
Joined: Fri Jul 24, 2020 9:12 am

Reduce logstash size after removing events in it

Post by rajusys »

Hi,

We are able to remove the events from logstash and can also see the Docs number coming down but the primary size is the same.

Can you please advise how can we reclaim the space for this logstash.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Reduce logstash size after removing events in it

Post by cdienger »

Try running the optimze command after removing objects from the database:

Code: Select all

/usr/local/nagioslogserver/scripts/curator.sh optimize indices --older-than 2 --time-unit days --timestring %Y.%m.%d
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked