I managed to get the result that I was looking for by doing the following:
input {
file {
path => "C:\Dev\sample.log"
start_position => beginning
}
}
filter{
grok {
match => [ "message", "%{TIMESTAMP_ISO8601:logdate}" ]
}
date {
match => [ "logdate", "YYYY-MM-dd HH:mm:ss,SSS"]
}
}
output {
elasticsearch { host => localhost
index => "test"
}
stdout { codec => rubydebug }
}
, , , - . , ( ) ( ) ? , - - . !