# Not all settings are presented in elasticsearch.yml

**URL:** <https://discuss.elastic.co/t/not-all-settings-are-presented-in-elasticsearch-yml/95173>\
**Category:** Elasticsearch\
**Created:** [July 31, 2017, 10:58am UTC](https://discuss.elastic.co/t/not-all-settings-are-presented-in-elasticsearch-yml/95173 "2017-07-31T10:58:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vladyslav](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vladyslav](https://discuss.elastic.co/u/Vladyslav)\
**Post date:** [July 31, 2017, 10:59am UTC](https://discuss.elastic.co/t/not-all-settings-are-presented-in-elasticsearch-yml/95173/1 "2017-07-31T10:59:00Z")

</div>

Hi,

I'm a beginner with Elasticsearch. I've recently installed elasticsearch (2.3.1 version) on ubuntu 16.04.2 LTS without making any changes to elasticsearch.yml. I've noticed that there are no settings index.number\_of\_shards and index.number\_of\_replicas. I've added them manually but failed to start the service afterwards. What could be the reason? Thanks.

Best regards,  
Vlad

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 31, 2017, 1:18pm UTC](https://discuss.elastic.co/t/not-all-settings-are-presented-in-elasticsearch-yml/95173/2 "2017-07-31T13:18:30Z")

</div>

> What could be the reason?

More likely your `elasticsearch.yml` is "corrupted" like bad indentation or something like that.

BTW those settings are now removed in 5.x so I'd not use them but index templates instead.

---

<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:** [August 28, 2017, 1:18pm UTC](https://discuss.elastic.co/t/not-all-settings-are-presented-in-elasticsearch-yml/95173/3 "2017-08-28T13:18:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
