-
Version2.4.140 Installation MethodSecurity Onion ISO image Descriptionother (please provide detail below) Installation TypeStandalone Locationon-prem with Internet access Hardware SpecsExceeds minimum requirements CPU32 RAMMemTotal: 197432352 kB Storage for /293G Storage for /nsm47T Network Traffic Collectionspan port Network Traffic Speeds1Gbps to 10Gbps StatusYes, all services on all nodes are running OK Salt StatusYes, there are salt failures (please provide detail below) LogsYes, there are additional clues in /opt/so/log/ (please provide detail below) DetailRecently when I go to the 'alerts' section and try to acknowledge any alerts, I get a 'Request failed with status code 400'. when looking at /opt/so/log/soc/sensoroni-server.log after getting the error I see:
on /opt/so/log/elasticsearch/securityonion.log i see:
I tried temporarily increasing the shards from the Administration > Configuration page under elasticsearch > index_settings > global_overrides > index_template > template > settings > index > number_of_shards, waiting 15 and then trying the action again, but to no avail and I'm not sure it increased the correct shards anyway, as
Also, salt call shows error:
Any suggestions or clues? If not is there a way i can reinstall without losing all my nsm data and fleet agents? Thanks so much in advance!!! Guidelines
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Elastic does not recommend increasing maximum shards per node. It looks like you set the amound of shards to 600 and the index cannot rollover becuase you don't have the shard space.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your response, Chris. regarding the shard increase attempt, I was trying to do something along the lines of this: ... that did not work. Given your input, I tried reducing the number of shards. I tried adjusting the following:
rebooted. Still had the same problem. After more research into the first solution (temporary shard increase) I ran the command:
... Still had the same issue. I found another setting that related to the other error in my original post (about the too_many_scroll_contexts_exception) and then ran:
This fixed the issue! So then I set the number of shards back to 2000 and rebooted. Unfortunately after the reboot, I still have over 2000 shards hanging out. But the original issue is still solved by increasing the number of open scroll contexts. according to the link below, the number of scroll contexts should be equal to the number of shards: https://discuss.elastic.co/t/max-open-scroll-context-scroll-ids-and-shards/253872 Is there a way for me to safely reduce shards to get back below the 2000 mark? |
Beta Was this translation helpful? Give feedback.
-
Thanks again, Chris. So are you saying that in the settings for Configuration > Administration > elasticsearch > index_settings > global_overrides > index_template > template > settings > index > number_of_shards should be 1 or 2? I guess I'm confused about how this setting works, I thought it would create a pool of 500 new shards to be assigned to various indices, not 500 per index! Are there ways to reduce the indexes/shards other than letting them age out of the deletion rollover? |
Beta Was this translation helpful? Give feedback.
Thanks for your response, Chris. regarding the shard increase attempt, I was trying to do something along the lines of this:
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/size-your-shards.html#troubleshooting-max-shards-open
... that did not work. Given your input, I tried reducing the number of shards. I tried adjusting the following:
rebooted. Still had the same problem. After more research into the first solution (temporary shard increase) I ran the command:
sudo so-elasticsearch-query _cluster/settings --request PUT --data '{"persistent": {"clust…