Hi,
I am new to ELK. I had some log files indexed. Then I deleted the indexes using XDELETE and _all.
Now when i run logstash, and try to see if the files get indexed again. it does not show any index.
Please help.
The Conf. file looks like this
input
{
file {
path => ['/var/log/logstash/ETLLogs/*.log']
sincedb_path => "dev/null"
codec => multiline
{
pattern => "^%{TIMESTAMP_ISO8601}"
what => "previous"
negate => "true"
}
}
}
filter
{
grok {
match => {"message"=> "%{WORD:Exception}%{GREEDYDATA:shortmessage}"}
tag_on_failure => []
}
date {
match => ["event_timestamp", "yyyy/MM/dd HH:mm:ss"]
}
}
output
{
elasticsearch {
index => "%{logstash-}%{+yyyy-mm-dd}"
}
stdout {
codec => rubydebug
}
}