This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Disk space that is allocated to Elasticsearch is controlled by securityonion.conf and curator. If Disk-based Shard Allocation is enabled, it leads to disk watermark errors and indices being locked as read-only when disk usage hits 90%. Since Security Onion configures each Elasticsearch instance as a single node cluster, the index can never be moved to another node. This results in data being lost and not ingested into Elasticsearch. This only becomes a problem with larger disk sizes when users want to utilize greater than 90% of their disk.
Reference: https://www.elastic.co/guide/en/elasticsearch/reference/6.7/disk-allocator.html
There are mentions of this error in documentation currently that do not address why it happens or how to prevent it. Documentation is also missing the last recovery step: curl command to set:
"index.blocks.read_only_allow_delete": null
on the affected indices.Documentation page: https://github.com/Security-Onion-Solutions/security-onion/wiki/Logstash