Logstash Config Test Fails with Multiple Files

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?

Anyone?

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