Hi,
I have a logstash installation, and it suddenly has stopped reading from files. The sincedb_path is created but files are not read. I have tried only stdin and stdout, and that works
Below is the config file:-
input {
file {
path => "/apps/elk/rawfiles/hostd.log"
start_position => beginning
sincedb_path => '/opt/logstash/hostd.db'
sincedb_write_interval => 0
type => 'hostdlog'
}
}
filter {
multiline {
patterns_dir => [ "/etc/logstash/conf.d/pattern" ]
pattern => "%{DATE_YMD}"
negate => true
what => "previous"
}
grok {
patterns_dir => [ "/etc/logstash/conf.d/pattern" ]
match => [ "message","%{DATE_YMD:logdate}T%{TIME:logtime}Z [%{DATA}](?<log_message>.*$)" ]
mutate { replace => [ "message", "%{log_message}" ] }
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => 'hostd'
}
stdout {
codec => rubydebug
}
}
Regards,
Debarun.