right now some of our sensors refuse to accept new data in ElasticSearch,
because the partition for elasticsearch is 95% full. (/nsm is on another partition)
/dev/sda1 73T 62T 7,4T 90% /nsm
/dev/sdd1 459G 70M 435G 1% /nsm/logstash
/dev/sdd2 12T 11T 571G 95% /nsm/elasticsearch
Which process is responsible for freeing up space on the elasticsearch partition?
How can I solve this problem?
BR
Christian
--
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.
we see the following error:
Suppressed: java.lang.IllegalArgumentException: unable to consistently parse [cluster.routing.allocation.disk.watermark.low=30gb], [cluster.routing.allocation.disk.watermark.high=20gb], and [cluster.routing.allocation.disk.watermark.flood_stage=95%] as percentage or bytes
Caused by: org.elasticsearch.ElasticsearchParseException: failed to parse setting [cluster.routing.allocation.disk.watermark.flood_stage] with value [95%] as a size in bytes: unit is missing or unrecognized
[2018-08-28T00:06:06,072][INFO ][org.elasticsearch.cluster.routing.allocation.DiskThresholdMonitor] rerouting shards: [high disk watermark exceeded on one or more nodes]
[2018-08-28T00:06:39,227][WARN ][org.elasticsearch.cluster.routing.allocation.DiskThresholdMonitor] high disk watermark [90%] exceeded on [UZb8XTHOQCqBuwfHwaMzqA][UZb8XTH][/usr/share/elasticsearc
nodes/0] free: 578.1gb[5%], shards will be relocated away from this node
Regards,
Erwin
--
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.
grep LOG_SIZE_LIMIT /etc/nsm/securityonion.conf
LOG_SIZE_LIMIT=11900
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdd2 12T 11T 571G 95% /nsm/elasticsearch
We have deleted some indicies on the first node, everything started working again.
I left the 2nd node full so we can troubleshoot on this one.
Regards,
Erwin
--
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.
dropping the value would be the same as deleting it manual or?
Could this be a problem as we set the days to keep open to 60?
I lowered this already to 50 - this is the value we can keep.
btw. we are on the latest release.
Regards,
Erwin
--
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.
sorry wrong "spelling" i meant Curatore Close Days:
# Curator options
CURATOR_ENABLED="yes"
CURATOR_CLOSE_DAYS=50
Could this be the problem?
i lowered it already to 50 but we still reaching the Watermark, any idea what we could do next?
Regards,
Erwin
i found the issue:
2018-09-03 15:15:04,881 ERROR Failed to complete action: close. <class 'curator.exceptions.FailedExecution'>: Exception encountered. Rerun with loglevel DEBUG and/or check Elasticsearch logs for more information. Exception: TransportError(403, u'cluster_block_exception', u'bocked by: [FORBIDDEN/12/index read-only / allow delete (api)];')
i could use the command:
curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
but, isnt there a better way to get this permanent?
Regards,
Erwin
any idea? :)
Regards
i deleted now the indices manual step by step letz say about 30 days - now everything is ok but the question is still on - how could that happen?
Curator stopped doing his job :(
Workaround would be a script to delete the oldest Indices
Regards,
Erwin
--
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.
we do have the same problem again, the indices moves to read only and curator is not allowed to delete them... so it is just a matter of time we run again into a full disk.
Problem seems also to be discussed here: https://groups.google.com/forum/#!topic/security-onion/ZW9uc8J_UUc
2018-09-24 08:32:04,002 INFO Closing selected indices: [u'logstash-syslog-2018.08.04', u'logstash-bro-2018.08.01', u'logstash-bro-2018.08.02 ', u'logstash-bro-2018.08.03', u'logstash-bro-2018.08.04', u'logstash-bro-2018.08.05', u'logstash-ids-2018.08.05', u'logstash-ids-2018.08.04', u' logstash-ids-2018.08.03', u'logstash-ids-2018.08.02', u'logstash-ids-2018.08.01', u'logstash-syslog-2018.08.01', u'logstash-syslog-2018.08.03', u 'logstash-syslog-2018.08.02', u'logstash-syslog-2018.08.05']
2018-09-24 08:32:04,007 ERROR Failed to complete action: close. <class 'curator.exceptions.FailedExecution'>: Exception encountered. Rerun with loglevel DEBUG and/or check Elasticsearch logs for more information. Exception: TransportError(403, u'cluster_block_exception', u'blocked by : [FORBIDDEN/12/index read-only / allow delete (api)];')
We could write our own script to get the last indice out of read only and delete it, but shouldn that me done by curator?
So deleting the oldest one manual couldnt be the expected behaviour or?
Do you have any idea how to get this working normaly?
thank you,
Erwin
/dev/sdd2 12T 5,8T 4,9T 55% /nsm/elasticsearch
--
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.
If you need anything, just let me know, i will daylie have a look here to support you.
Regards,
Erwin
--
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.
did you have a chance to look futher that issue?
Regards,
Erwin
--
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.
thanks for the reply, good to hear you found the issue.
looking forward to get this in the next release done :)
If you need further input, would be glad to assist you.
Regards,
Erwin
--
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.
actions:
1:
action: delete_indices
description: >-
Delete indices when age is exceeded.
options:
ignore_empty_list: True
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: logstash-
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: 60