yayitaing
(Janeth Gonzalez Rodriguez)
December 5, 2017, 10:08pm
1
I have the following message that is displayed in the kibana brought by filebeat from a linux syslog:
However, I need each field of the message to be shown in the kibana as an independent field to be able to perform metrics, for example the user field:
The configuration of my filter in logstash is the following:
Badger
December 5, 2017, 11:44pm
2
SYSLOGLINE names the parsed message field "message". That field name is the source message, so you end up with an array. This should get you started:
filter {
grok {
match => { "message" => "%{SYSLOGLINE}" }
}
if [message][1] { kv { source => "[message][1]" } }
}
With overwrite => ["message"]
in the grok filter the message
field won't become an array.
system
(system)
Closed
January 3, 2018, 6:30am
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.