I am using Logstash 7.4 in AWS EC2 (Amazon Linux 2)
following command works
#/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf --debug // this is reading application log file
But
this command is not reading application log file but only starts logstash
#initctl start logstash // this is not reading application log file but only starts logstash
My logstash.conf file
input {
file {
path => "/home/ec2-user/xxxx/testservice.log"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
output {
stdout { codec => rubydebug }
}
what is the issue ? how to fix it ?