Delete logs to make free disk space
Posted: Thu Feb 28, 2019 10:05 am
Hi
We had a requirement to delete logs based on different log types (eg: log duration changes based on type)
Based on the forum answer https://support.nagios.com/forum/viewto ... 38&t=50868
We implemented the delete command but based on the elasticsearch blog https://www.elastic.co/blog/lucenes-han ... -documents we found
There is a known issue where the documents don't get physically deleted until some write or merge happens on the index, because NLS stores logs on daily basis index never gets used and in return it never actually physically deletes the documents, to overcome this issue we are running a cron job with _optimize on the old indexes to delete the log to free up disk space.
The customer wants to know when this will be fixed in NLS, can we have a roadmap or fix plan for this issue? so that we can share it with the customer.
Appreciate your soonest reply.
Regards
Chandana
We had a requirement to delete logs based on different log types (eg: log duration changes based on type)
Based on the forum answer https://support.nagios.com/forum/viewto ... 38&t=50868
We implemented the delete command but based on the elasticsearch blog https://www.elastic.co/blog/lucenes-han ... -documents we found
There is a known issue where the documents don't get physically deleted until some write or merge happens on the index, because NLS stores logs on daily basis index never gets used and in return it never actually physically deletes the documents, to overcome this issue we are running a cron job with _optimize on the old indexes to delete the log to free up disk space.
The customer wants to know when this will be fixed in NLS, can we have a roadmap or fix plan for this issue? so that we can share it with the customer.
Appreciate your soonest reply.
Regards
Chandana