how to parse first as json, then as grok pattern?

16 views
Skip to first unread message

Robert Chen

unread,
Feb 23, 2018, 10:03:21 AM2/23/18
to Fluentd Google Group
say the message is in json format:

{
"timestamp": “2018-02-16-11:22:11",
"loglevel": "warn",
"message": "account number 123456 paid $355"
}


I want to parse first first as json, then as grok pattern for message in this json, how can I do it in fluentd? 

Mr. Fiber

unread,
Feb 23, 2018, 11:16:05 AM2/23/18
to Fluentd Google Group
How about using parser filter?



Masahiro

--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages