I set number of replicas to 0 to make all my indexes green ( I only have one machine in my cluster).
curl -XPUT 'elasticsearch:9200/_settings' -d '{ "index" : { "number_of_replicas" : 0 } }'
The next day I have new indexes of filebeat and metricbeat but they have number_of_replicas set to 1 and their status becomes yellow.
You need to edit the template for the indices so that it won't create replicas.
However you can just ignore yellow status, given you have a single node.
You have to adjust the value in the metricbeat template and overwrite the existing template with it. Have a look at the metricbeat.template.json file in your metricbeat directory. There you have to add the setting and then overwrite the existing mapping. Next day it should apply.
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.