# Logstash Config Test Fails with Multiple Files

**URL:** <https://discuss.elastic.co/t/logstash-config-test-fails-with-multiple-files/73070>\
**Category:** Logstash\
**Created:** [January 27, 2017, 11:51pm UTC](https://discuss.elastic.co/t/logstash-config-test-fails-with-multiple-files/73070 "2017-01-27T23:51:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kopacko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kopacko/32/10733_2.png) [@kopacko](https://discuss.elastic.co/u/kopacko)\
**Post date:** [January 27, 2017, 11:51pm UTC](https://discuss.elastic.co/t/logstash-config-test-fails-with-multiple-files/73070/1 "2017-01-27T23:51:19Z")

</div>

If use this command:

> sudo /usr/share/logstash/bin/logstash -t --log.level=debug -l /usr/share/logstash/logs --path. settings /etc/logstash/ -f /etc/logstash/conf.d/1\*

I get this as a result:

> ERROR: Unknown command '/etc/logstash/conf.d/16514-input-LOGSTASH-tcp36514.conf'

> See: 'bin/logstash --help'

There are two files that start with the number 1.

* * *

* * *

**If I do this** :

> sudo /usr/share/logstash/bin/logstash -t --log.level=debug -l /usr/share/logstash/logs --path. settings /etc/logstash/ -f /etc/logstash/conf.d/12\*

**I get this** :

> Sending Logstash's logs to /usr/share/logstash/logs which is now configured via log4j2.properties  
> Configuration OK

* * *

* * *

**If I do this** :

> sudo /usr/share/logstash/bin/logstash -t --log.level=debug -l /usr/share/logstash/logs --path.settings /etc/logstash/ -f /etc/logstash/conf.d/16\*

**I get this** :

> Sending Logstash's logs to /usr/share/logstash/logs which is now configured via log4j2.properties  
> Configuration OK

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![kopacko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kopacko/32/10733_2.png) [@kopacko](https://discuss.elastic.co/u/kopacko)\
**Post date:** [January 31, 2017, 4:29pm UTC](https://discuss.elastic.co/t/logstash-config-test-fails-with-multiple-files/73070/2 "2017-01-31T16:29:21Z")

</div>

Anyone?

---

<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:** [February 28, 2017, 4:29pm UTC](https://discuss.elastic.co/t/logstash-config-test-fails-with-multiple-files/73070/3 "2017-02-28T16:29:28Z")

</div>

Closed on February 28, 2017, 4:29pm UTC

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