No configuration found in the configured sources

I am looking to create a simple logstash configuration in the Linux command line according to the first example shown here Logstash Configuration Examples | Logstash Reference [6.3] | Elastic .

Here is all that is uncommented in logstash.yml :

path.data: /var/lib/logstash
path.config: /etc/logstash/conf.d/log-apache-filter.conf
path.logs: /var/log/logstash \\

And here is pipelines.yml :

pipeline.id: main
path.config: "/etc/logstash/conf.d/log-apache-filter.conf" >

My configuration is:

input { stdin { } }
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" }
}
date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}
}
output {
elasticsearch { hosts => ["localhost:9200"] }
stdout { codec => rubydebug }
}

And when i type logstash -f log-apache-filter.conf the error I am receiving is:

[ERROR] 2018-06-11 13:12:55.165 [Ruby-0-Thread-1: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/task.rb:22] sourceloader - No configuration found in the configured sources.

Please help, I've tried looking at other's posts over this same issue but still can't seem to figure it out.

And you're starting Logstash from /etc/logstash/conf.d, i.e. that's your current directory?

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