# Elastic Search not picking configurations from configuration file

**URL:** <https://discuss.elastic.co/t/elastic-search-not-picking-configurations-from-configuration-file/15269>\
**Category:** Elasticsearch\
**Created:** [January 16, 2014, 11:33am UTC](https://discuss.elastic.co/t/elastic-search-not-picking-configurations-from-configuration-file/15269 "2014-01-16T11:33:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitjindal\_se](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@ankitjindal\_se](https://discuss.elastic.co/u/ankitjindal_se)\
**Post date:** [January 16, 2014, 11:33am UTC](https://discuss.elastic.co/t/elastic-search-not-picking-configurations-from-configuration-file/15269/1 "2014-01-16T11:33:49Z")

</div>

Hi

Below is my configuration file snapshot:-

index.number\_of\_shards: 20  
index.number\_of\_replicas: 0  
path.data: /opt/data  
path.logs: /opt/log/  
index.refresh\_interval: -1  
index.store.type: mmapfs  
index.translog.flush\_threshold\_ops: 50000  
index.merge.policy : log\_byte\_size  
index.merge.policy.merge\_factor: 30

Here only first 4 are loaded.

When i sent data to index via logstash, indexes have refresh interval of 1s and not of -1.

Below is the snapshot of index settings query:-

curl -s localhost:9200/\_settings?pretty=true  
{  
"logstash-2013.10.19" : {  
"settings" : {  
"index.number\_of\_shards" : "20",  
"index.number\_of\_replicas" : "0",  
"index.version.created" : "900599"  
}  
}  
}

From where does elastic search picks default configuration and what am I doing wrong in this??

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:56am UTC](https://discuss.elastic.co/t/elastic-search-not-picking-configurations-from-configuration-file/15269/2 "2017-07-06T01:56:24Z")

</div>

Closed on July 6, 2017, 1:56am UTC


