priya08
(priya)
February 20, 2019, 11:55am
1
Hi Team,
I am using KV filter for my log statement , sample log statement
[INFO]|logtype:SYSLOG|datetime:2019-02-20T16:59:55.045+0530|hostname:ABCD|threadId:87-pool-3-thread-8(main)|userId:null|payload:<?xml version="1.0" encoding="UTF-8"?>KeyWords="|ABCD:XYZ:ABCD:2|EF:KL:UV:2
I don't want to split in side payload field(Example : |ABCD:XYZ:ABCD:2|EF:KL:UV:2") , could you please suggest me how can we achieve this .
Thanks in advance.
Badger
February 20, 2019, 1:04pm
2
Use grok to capture it separately, and mutate+gsub to remove it.
grok { match => { "message" => [ 'KeyWords="%{GREEDYDATA:keywords}' ] } }
mutate { gsub => [ "message", 'KeyWords=".*', '' ] }
priya08
(priya)
February 21, 2019, 10:12am
3
Thanks for the response..
But its not working, its not replacing .
system
(system)
Closed
March 21, 2019, 10:17am
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.