Hello,
I am running ELK stack in docker container. Everything is working fine.
However I am having an issue with Logstash, that whenever I use a input type file and provide a path to my logfile, the Logstash is not creating an index in the Kibana UI.
But when I use input type as stdin, it creates the index, only issue is with input type as file.
I checked that logstash is having permissions to access the logfile.
My pipeline example is as below.
file {
type => log
path => ["/data/logstash/nginx-error.log"]
start_position => "beginning"
sincedb_path => "/dev/null"
# ignore_older => 0
}
}
output {
elasticsearch{
hosts => ["https://elasticsearch-node1:9200"]
user => "admin"
password => "admin"
action => "create"
index => "index_nginx-test-%{+YYYY.MM.dd}"
ssl => false
ssl_certificate_verification => false
}
}```
Please suggest if I am missing anything or the configuration is not correct.