log file : INFO [Thread-6] (newcleintt.java:1400) - Trying to connect to broker: local-broker (ssl://localhost:1234)
filter used :
grok {
match => {"message" => "%{LOGLEVEL:loglevel} \{%{YEAR:year}-%{MONTHNUM:month}-%{MONTHDAY:day} %{HOUR:hour}:%{MINUTE:minute}:%{SECOND:second},%{INT}\} %{GREEDYDATA:message}"}
overwrite => [ "message"]
}
mutate {
add_field => {"logtimeStamp" => "%{year}-%{month}-%{day} %{hour}:%{minute}:%{second}"}
}
mutate {
remove_field => [ "year", "month", "day", "hour", "minute", "second" ]
}
mutate {
split => ["host", "."]
add_field => { "hostname" => "%{[host][0]}" }
add_field => { "myName" => "%{[host][1]}" }
add_field => { "ignore" => "%{[host][2]}" }
remove_field => ["ignore", "host"]
}
mutate {
remove_field => ["@timestamp", "@version"]
}
"message" => "8PRF/abcbcbcbcbcbcbcbcbcO0tlFYQXBl",
"myName" => "abc-a7",
"tags" => [
[0] "_grokparsefailure"
],
"logtimeStamp" => "%{year}-%{month}-%{day} %{hour}:%{minute}:%{second}",
"hostname" => "abc-br-01abcdef",
"type" => "abc",
"path" => "/abc/logs/abc.log.3"
The logtimeStamp is not changed and there is grokparse failure.