Attempting to create logfile dashboard in Kibana via ELK.
Tried simple STDIN which worked and was able to see the data on Kibana as well.
where as file input option not working in windows, especially .log files .
I would appreciate any help here and below is the code snippet
input {
file {
path => "C:/Users/logs/applicationlog.2019-08-14/application.log.2019-08-14.log"
start_position => "beginning"
sincedb_path => "NUL"
}
}
filter {
grok {
match => {
"message" => "%{TIMESTAMP_ISO8601:timestamp}%{SPACE}"
}
}
}
output {
elasticsearch
{
hosts => ["localhost:9200"]
index => "logs-%{+YYYY.MM.dd}"
}
stdout { codec => rubydebug }
}