# Cofig test is not working

**URL:** <https://discuss.elastic.co/t/cofig-test-is-not-working/128149>\
**Category:** Logstash\
**Created:** [April 16, 2018, 9:26am UTC](https://discuss.elastic.co/t/cofig-test-is-not-working/128149 "2018-04-16T09:26:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amritesh\_mishra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amritesh_mishra/32/50251_2.png) [@amritesh\_mishra](https://discuss.elastic.co/u/amritesh_mishra)\
**Post date:** [April 16, 2018, 9:26am UTC](https://discuss.elastic.co/t/cofig-test-is-not-working/128149/1 "2018-04-16T09:26:37Z")

</div>

[root@ukmr0xtmd01 opt]# /usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/siae.conf -configtest  
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  
ERROR: Unrecognised option '-c'

See: 'bin/logstash --help'  
[ERROR] 2018-04-16 10:15:57.535 [main] Logstash - java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit  
[root@ukmr0xtmd01 opt]# /usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/siae.conf -configtest  
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  
ERROR: Unrecognised option '-c'

See: 'bin/logstash --help'  
[ERROR] 2018-04-16 10:15:57.535 [main] Logstash - java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 16, 2018, 11:36am UTC](https://discuss.elastic.co/t/cofig-test-is-not-working/128149/2 "2018-04-16T11:36:32Z")

</div>

Did you try running `bin/logstash --help` to get help on which command-line options are available?

---

<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 14, 2018, 11:36am UTC](https://discuss.elastic.co/t/cofig-test-is-not-working/128149/3 "2018-05-14T11:36:40Z")

</div>

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