Hey all,
I'm at a bit of a loss on this one after spending a couple hours on Google and checking through about a dozen articles I'm still not getting this resolved.
I have a flat *.log file that I'm trying to read from, my config file is:
input
{
stdin
{
}
file
{
path => "C:/Program Files (x86)/Mitel/MiContact Center/Logs/MaintenanceAlarmDispatcher.log"
start_position => "beginning"
}
}
filter
{
grok
{
match => ["message", "%{LOGLEVEL:level}:%{SPACE}(?\d{4}-\w{3}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{3})%{SPACE}%{GREEDYDATA:log_line}"]
tag_on_failure => [ '' ]
}
date
{
match => ["timestamp", "YYYY-MMM-dd HH:mm:ss.SSS"]
}
}
output
{
elasticsearch
{
host => localhost
port => 9301
}
stdout
{
}
}
Now, if I paste in a log line manually through the console it comes through into elastic ok - so I know my grok matching is good, which means something is wrong with the file input.
Any ideas on where to go from here?