elasticsearch version: elasticsearch-2.2.0.rpm logstash version: logstash-2.2.2-1.noarch.rpm
I start elasticsearch, then logstash with /etc/logstash/conf.d/logstash.conf having a basic stdin/stdout, but no elasticsearch index is created. If I add the following to my logstash output configuration I get an index that indicates a yellow status:
action => "create" index => "main_index"
The reason it's yellow, and not usable, is because the number of shards is 5 and replicas is 3. If I run:
curl -XPUT 'http://localhost:9200/index2/' -d ' index : number_of_shards : 1 number_of_replicas : 0 '
"index2" is green and usable. How do I tell either logstash and/or elasticsearch that I want my index to have 1 shard with 0 replicas without issuing a curl command?
Thanks.