Hello everyone, I am trying to use file input plugin instead of tcp, but it doesn't work (there are no injected files in elasticsearch), here's a minimal configuration for logstash:
input {
file {
path => ["/home/ibrahimsharaf/docker-elk/logs/**/*.log"]
codec => multiline {
pattern => "^%{TIMESTAMP_ISO8601} "
negate => true
what => previous
}
sincedb_path => "/dev/null"
start_position => "beginning"
}
}
output {
stdout {
codec => rubydebug
}
elasticsearch {
hosts => "elasticsearch:9200"
}
}