We used graylog 3.1.4 + elasticsearch 6.8.13 + mongodb 4.2 during 1 month wihtout problems but since few days, when I launch search I encounter this following error message :
# Could not execute search
There was an error executing your search. Please check your Graylog server logs for more information.
I have already checked space on disk just used at 14%
All Services elasticsearch mongod and graylog-server runs perfectly
No failed indexing attempts in the last 24 hours.Show errors
But
Collection containing a total of 161,324 indexer failures.
5 days ago graylog_0 65bf5a08-778f-11eb-b3de-00505694f6ca {“type”:“unavailable_shards_exception”,“reason”:"[graylog_0][1] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[graylog_0][1]] containing [132] requests]"}
looks like you lost an ES node… or are having an issue with a shard. By default, Graylog builds indices with 4 primary shards and 0 replicas… you’ll need all those shards up to run queries… sounds like you have a Elasticsearch issue.
what is Graylog reporting for a status on your ES?
or run
curl -X GET "localhost:9200/_cluster/health?pretty"
@sysadm
Hello,
As @cawfehman mentioned you have some issues with your Elasticsearch.
You can try using Elasticsearch’s cat shards API it might tell you which shards are unassigned.
Each row lists the name of the index, the shard number, whether it is a primary p or replica r shard, and the reason it is unassigned