I am fairly new to the world of Nagios Log Server. I have an issue with our Cluster where i have 20 unassigned shards. I have followed the guide on https://support.nagios.com/kb/print-90.html but I am unable to delete the logstash files (When i do they reappear)
I then run:
curl -XPOST 'localhost:9200/_cluster/reroute' -d '{ "commands" : [ { "allocate" : { "index" : "logstash-2018.05.20", "shard" : 1, "node" : "d52d205d-a044-40f6-968e-3b4fe31c952e", "allow_primary" : true } } ] }'
and this is returned:
{"error":"ElasticsearchIllegalArgumentException[[allocate] allocation of [logstash-2018.05.20][1] on node [d52d205d-a044-40f6-968e-3b4fe31c952e][KsQqb3VsQIS7Z2-pxqm1YA][w*********02][inet[/1**.***.***.**3:9300]]{max_local_storage_nodes=1} is not allowed, reason: [YES(shard is not allocated to same node or host)][YES(node passes include/exclude/require filters)][YES(shard is primary)][YES(below primary recovery limit of [4])][YES(allocation disabling is ignored)][YES(allocation disabling is ignored)][YES(no allocation awareness enabled)][YES(total shard limit disabled: [-1] <= 0)][YES(primary shard can be allocated anywhere)][NO(after allocation more than allowed [95.0%] used disk on node, free: [8.59176811070615%])][YES(shard not primary or relocation disabled)]]","status":400}[
Can anyone help with the solution please