http://127.0.0.1:9200/_cat/indices?v
health status index pri rep docs.count docs.deleted store.size pri.store.size
yellow open logstash-2016.03.17 5 1 27 0 37.4kb 37.4kb
green open graylog2_0 1 0 26 0 24.7kb 24.7kb
Can anyone please answer some of my questions
why logstash index status is yellow even with a very little data in it?
You only have one data node and your logstash-2016.03.17 index has one replica. Those replica shards can never get allocated since primary and replica shards can't reside on the same node. You either need two data nodes or you need to reduce the number of replicas to zero.
Thanks for the reply @magnusbaeck.
I tried reducing the number of replicas to zero using the setting in elasticsearch.yml.
index.number_of_replicas: 0 and restarted the elasticsearch service.
But still on checking the indices, logstash index is showing configured replica shards as 1.
How to tell logstash that the number of replica shards is 0 now?
The setting in elasticsearch.yml only affects the default number of replicas. It won't change the number of replicas that existing indexes have. You need to use the index settings update API.
Thanks for the help @magnusbaeck. Wanted to know one more thing..
In the graylog/server/server.conf, the settings for graylog node is as follows by default.
#we don't want the graylog2 server to store any data, or be master node #elasticsearch_node_master = false #elasticsearch_node_data = false
i.e. this node would not store any data in it.
So, how is it that graylog2_0 index has some documents in its shard?
I don't know anything about Graylog. Does it run its own ES node that's connected to your cluster? I'm assuming yes.
So, how is it that graylog2_0 index has some documents in its shard?
Whether the ES node that's part of Graylog stores any data has nothing to do with the presence of the graylog2_0 index or whether it contains any data.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.