I have a question. I started using docker-elk but ı have a problem because Logstash syslog is not working.Actually the default conf file was working.
This using : https://github.com/deviantony/docker-elk
But I was working this way;
nc localhost 5000 </var/log/syslog
But now I want to work on the logstash.conf file but I can't do it
default logstash.conf
input {
tcp {
port => 5000
}
}
## Add your filters / logstash plugins configuration here
output {
elasticsearch {
hosts => "elasticsearch:9200"
}
}
logstash.conf
input {
file {
path => "/var/log/syslog"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
output {
elasticsearch {
hosts => ["elasticsearch:9200"]
}
stdout { codec => rubydebug }
}
Why does this conf file not work? How do I run it?
thanks in advance