I'm installed logstash on one of our linux server and i'm trying to forward application log to ES and visualize in Kibana.
Any New Line being written to the log are being visualized but the file from beginning is not being read. Here is my config, please advise if there's anything wrong with my config.
input {
file {
start_position => "beginning"
path => "/var/log/app/access.log"
type => "app"
}
}
output {
if [type] == "app" {
elasticsearch {
hosts => [ "<i.p>:9200" ]
manage_template => false
index => "logstash-%{+YYYY.MM.dd}"
}
}
}