# Unrecognised option '--path.setting'

**URL:** <https://discuss.elastic.co/t/unrecognised-option-path-setting/83837>\
**Category:** Logstash\
**Created:** [April 27, 2017, 10:13am UTC](https://discuss.elastic.co/t/unrecognised-option-path-setting/83837 "2017-04-27T10:13:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DOB](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@DOB](https://discuss.elastic.co/u/DOB)\
**Post date:** [April 27, 2017, 10:13am UTC](https://discuss.elastic.co/t/unrecognised-option-path-setting/83837/1 "2017-04-27T10:13:36Z")

</div>

When running logstash directly I always get this warning message:

> WARNING: Could not find logstash.yml which is typically located in $LS\_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults

Even if it has no negative effect I would like to get rid of it. I tried it by using:

> bin/logstash --path.setting=/etc/logstash -t -f /etc/logstash/conf.d/logstash.conf

But this lead to an error message:

> ERROR: Unrecognised option '--path.setting'  
> See: 'bin/logstash --help'

However 'bin/logstash --help' leads to:

> --path.settings SETTINGS\_DIR Directory containing logstash.yml file. This can also be  
> set through the LS\_SETTINGS\_DIR environment variable.  
> (default: "/usr/share/logstash/config")

Obviously there is something I'm doing in the wrong way, but I don't have a clue what this is. I would appreciate if anyone could lead me to the right direction.

---

<div class="post-metadata">

**Author:** ![DOB](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@DOB](https://discuss.elastic.co/u/DOB)\
**Post date:** [April 27, 2017, 10:15am UTC](https://discuss.elastic.co/t/unrecognised-option-path-setting/83837/2 "2017-04-27T10:15:44Z")

</div>

Just got aware ot the missing "s" at --path.settingS. Sorry...

---

<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:** [May 25, 2017, 10:17am UTC](https://discuss.elastic.co/t/unrecognised-option-path-setting/83837/3 "2017-05-25T10:17:21Z")

</div>

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