Hi, I am excited to join the community and learn about Graylog in detail. Currently I have deployed a standalone Graylog2 server having all the services on the same server. I add a bunch a ASA’s to send the logs to the server and I run out of space. I added disk space to the cloud server, but the elasticsearch is cluster is still red. I tried to follow the solution provided in a similar problem but It was not helping. I found one such script online which helped a bit I think:
curl -XPOST '192.168.10.10:9200/_cluster/reroute?pretty' -H 'Content-Type: application/json' -d'
{
"commands" : [
{
"allocate_stale_primary" : {
"index" : "graylog_0", "shard" : 0,
"node" : "graylog-node1",
"accept_data_loss" : true
}
}
]
}
'
Output displayed on the CLI:
{
"acknowledged" : true,
"state" : {
"version" : 4,
"state_uuid" : "",
"master_node" : "",
"blocks" : { },
"nodes" : {
"" : {
"name" : "graylog-node1",
"ephemeral_id" : "",
"transport_address" : "192.168.10.10:9300",
"attributes" : { }
}
},
"routing_table" : {
"indices" : {
"graylog_0" : {
"shards" : {
"0" : [
{
"state" : "INITIALIZING",
"primary" : true,
"node" : "",
"relocating_node" : null,
"shard" : 0,
"index" : "graylog_0",
"recovery_source" : {
"type" : "EXISTING_STORE"
},
"allocation_id" : {
"id" : ""
},
"unassigned_info" : {
"reason" : "CLUSTER_RECOVERED",
"at" : "2017-10-31T14:16:23.605Z",
"delayed" : false,
"allocation_status" : "no_valid_shard_copy"
}
}
]
}
}
}
},
"routing_nodes" : {
"unassigned" : [ ],
"nodes" : {
"" : [
{
"state" : "INITIALIZING",
"primary" : true,
"node" : "",
"relocating_node" : null,
"shard" : 0,
"index" : "graylog_0",
"recovery_source" : {
"type" : "EXISTING_STORE"
},
"allocation_id" : {
"id" : ""
},
"unassigned_info" : {
"reason" : "CLUSTER_RECOVERED",
"at" : "2017-10-31T14:16:23.605Z",
"delayed" : false,
"allocation_status" : "no_valid_shard_copy"
}
}
]
}
}
}
}
I only have 1 node and 1 shard, 0 replicas. Need to know how can I resolve this. Thank you, hope to resolve this soon and learn from my mistake