# Syntax to specify a custom directory/name for the config yml file

**URL:** <https://discuss.elastic.co/t/syntax-to-specify-a-custom-directory-name-for-the-config-yml-file/45263>\
**Category:** Elasticsearch\
**Created:** [March 23, 2016, 5:19pm UTC](https://discuss.elastic.co/t/syntax-to-specify-a-custom-directory-name-for-the-config-yml-file/45263 "2016-03-23T17:19:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ciccio](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@ciccio](https://discuss.elastic.co/u/ciccio)\
**Post date:** [March 23, 2016, 5:19pm UTC](https://discuss.elastic.co/t/syntax-to-specify-a-custom-directory-name-for-the-config-yml-file/45263/1 "2016-03-23T17:19:40Z")

</div>

Hi all,

I'm trying to figure out what is the correct syntax to specify a custom location and/or name for the elasticsearch.yml file in 2.2.1 .

In version 1.3.6 the following worked

elasticsearch -Xmx30g -Xms30g -Des.default.path.logs=/ssd/es/${DEVNO}/logs -fD es.config=/etc/elasticsearch/elasticsearch\_devpt.yml

but this doesn't cut it in 2.2.1 (even taking into account that -Xm[xs]30g needs to be --Xm[xs]=30g - still missing on the website Docs).

Also, the -h is minimal, and there is no man page.

Where can I find proper documentation on the command line options for v 2.2.1 ?

Thank you in advance

C

---

<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 5, 2017, 11:05pm UTC](https://discuss.elastic.co/t/syntax-to-specify-a-custom-directory-name-for-the-config-yml-file/45263/2 "2017-07-05T23:05:47Z")

</div>


