This is my conf file:
input {
file {
start_position => "beginning"
path => [ "/home/taraka/Projects/neonion/logs/*.log" ]
type => "syslog"
}
}
filter{
multiline {
pattern => "\[\#\|\d{4}"
negate => true
what => "previous"
}
grok {
match => [ "message", "(?<highlight_created>(highlight_created))"]
break_on_match => false
}
grok {
match => [ "message", "(?<highlight_deleted>(highlight_deleted))"]
break_on_match => false
}
kv {
source => "message"
field_split => ","
value_split => "="
}
}
output {
if[type]=="syslog"{
elasticsearch {host => "localhost"}
stdout { codec => rubydebug}
}
}
and the output looks like this:
I need to have the field comment_created without the number beside. How can I do it?