According to the SO wiki (https://github.com/Security-Onion-Solutions/security-onion/wiki/Curator), the curator should remove older indexes based on two parameters in the /etc/nsm/securityonion.conf configuration file:
- CURATOR_CLOSE_DAYS which is set at 30
- LOG_SIZE_LIMIT which is set at 183GB
And of course, the CURATOR_ENABLED="yes" is also in the configuration file.
Unfortunately, today I seem to have run out of disk space.
> du /nsm/elasticsearch -h -s
300G /nsm/elasticsearch
Alrigthy, let's take a look at the curator log in /var/log/curator/curator.log:
> cat //var/log/curator/curator.log
2018-06-04 21:14:01,657 INFO Preparing Action ID: 1, "delete_indices"
2018-06-04 21:14:01,673 INFO Trying Action ID: 1, "delete_indices": Delete indices when $disk_space value (in GB) is exceeded.
2018-06-04 21:14:01,707 INFO Skipping action "delete_indices" due to empty list: <class 'curator.exceptions.NoIndices'>
2018-06-04 21:14:01,707 INFO Action ID: 1, "delete_indices" completed.
2018-06-04 21:14:01,707 INFO Job completed.
2018-06-04 21:14:01,754 INFO Preparing Action ID: 1, "close"
2018-06-04 21:14:01,766 INFO Trying Action ID: 1, "close": Close indices older than 30 days (based on index name), for logstash- prefixed indices.
2018-06-04 21:14:01,792 INFO Skipping action "close" due to empty list: <class 'curator.exceptions.NoIndices'>
2018-06-04 21:14:01,792 INFO Action ID: 1, "close" completed.
2018-06-04 21:14:01,793 INFO Job completed.
2018-06-04 21:15:02,145 INFO Preparing Action ID: 1, "close"
2
<many many more lines later>
2018-07-24 21:56:01,435 INFO Preparing Action ID: 1, "close"
2018-07-24 21:56:01,442 INFO Trying Action ID: 1, "close": Close indices older than 30 days (based on index name), for logstash- prefixed indices.
2018-07-24 21:56:01,495 INFO Preparing Action ID: 1, "delete_indices"
2018-07-24 21:56:01,502 INFO Trying Action ID: 1, "delete_indices": Delete indices when $disk_space value (in GB) is exceeded.
2018-07-24 21:56:02,344 INFO Skipping action "close" due to empty list: <class 'curator.exceptions.NoIndices'>
2018-07-24 21:56:02,344 INFO Action ID: 1, "close" completed.
2018-07-24 21:56:02,344 INFO Job completed.
2018-07-24 21:56:02,438 INFO Skipping action "delete_indices" due to empty list: <class 'curator.exceptions.NoIndices'>
2018-07-24 21:56:02,438 INFO Action ID: 1, "delete_indices" completed.
2018-07-24 21:56:02,438 INFO Job completed.
2018-07-24 21:57:01,780 INFO Preparing Action ID: 1, "close"
2018-07-24 21:57:01,787 INFO Trying Action ID: 1, "close": Close indices older than 30 days (based on index name), for logstash- prefixed indices.
2018-07-24 21:57:01,841 INFO Preparing Action ID: 1, "delete_indices"
2018-07-24 21:57:01,848 INFO Trying Action ID: 1, "delete_indices": Delete indices when $disk_space value (in GB) is exceeded.
2018-07-24 21:57:02,634 INFO Skipping action "close" due to empty list: <class 'curator.exceptions.NoIndices'>
2018-07-24 21:57:02,634 INFO Action ID: 1, "close" completed.
2018-07-24 21:57:02,634 INFO Job completed.
2018-07-24 21:57:02,728 INFO Skipping action "delete_indices" due to empty list: <class 'curator.exceptions.NoIndices'>
2018-07-24 21:57:02,728 INFO Action ID: 1, "delete_indices" completed.
2018-07-24 21:57:02,728 INFO Job completed.
Looks like the Curator has never been able to delete any indices! Any idea what's going on? The empty list appears to be the reason why nothing gets deleted, but I don't know enough about docker to look into the Curator.
Thanks,
Francois
--
Follow Security Onion on Twitter!
https://twitter.com/securityonion
---
You received this message because you are subscribed to the Google Groups "security-onion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to security-onio...@googlegroups.com.
To post to this group, send email to securit...@googlegroups.com.
Visit this group at https://groups.google.com/group/security-onion.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "security-onion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/security-onion/7H_kfBGeFyI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to security-onio...@googlegroups.com.