how to grep multi match fluentd

239 views
Skip to first unread message

muhmmad Alzril

unread,
Sep 29, 2017, 6:02:20 AM9/29/17
to Fluentd Google Group
Dear All,

I am newbie in fluentd. i would like to filter multi match grep in conf fluentd ? like command line grep "word1 word2 word3".

this my fluentd configuration : 

<source>
 type tail
 format none
 path /tmp/mule-app-biller-switch.log
 pos_file /var/log/td-agent/mule-app-biller-switch.log.pos
 tag mule-app-biller-switch_inquiry_req
</source>

<filter mule-app-biller-switch_inquiry_req>
 @type grep
 regexp1 message InquiryPrepaidRequestProcessor
 regexp2 foo Inquiry
 regexp3 bar Request
</filter>

<match mule-app-biller-switch_inquiry_req>
   type exec_placeholder
   command /etc/td-agent/scripts/parse_inq_req.sh "${message}${foo}${bar}"
</match>

please help, any suggestion, advice and sample configuration to grep /filter.
thanks 

Alzril 

Mr. Fiber

unread,
Oct 3, 2017, 3:57:17 AM10/3/17
to Fluentd Google Group
 like command line grep "word1 word2 word3".

This sentence is unclear.
Do you want to use whitespace in match pattern, right?


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