Fluentd debug logs are forwarded to custom filter plugin

194 views
Skip to first unread message

john

unread,
Jan 27, 2016, 11:53:27 PM1/27/16
to Fluentd Google Group
Hi all,
           I was trying to add my new custom filter plugin in fluentd. For my self debugging, I tried to print my arguments of the main filter function using log.info . I am seeing that the debug prints are automatically passed again to the plugin filter function with tag fluent.info.  Is it expected? Did i make any mistake somewhere?


Thanks,
John

Mr. Fiber

unread,
Jan 28, 2016, 1:01:13 AM1/28/16
to Fluentd Google Group
Is it expected?



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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

john

unread,
Jan 28, 2016, 2:08:45 AM1/28/16
to Fluentd Google Group
I am seeing something different. Logs written inside a plugin is received in the same plugin interface. is this expected?

Mr. Fiber

unread,
Jan 28, 2016, 2:26:43 AM1/28/16
to Fluentd Google Group
 Logs written inside a plugin is received in the same plugin interface.

What does this sentence mean?
Could you show me the example of your expected behaviour?

Mr. Fiber

unread,
Jan 28, 2016, 2:34:43 AM1/28/16
to Fluentd Google Group
Ah, you mean following filter receives own log message, right?

<filter fluent.**>
  @type your_filter
</filter>


john

unread,
Jan 28, 2016, 2:41:04 AM1/28/16
to Fluentd Google Group
yes. You are right
I added <filter> @type your_filter </filter> . This filter receives own log message

Mr. Fiber

unread,
Feb 12, 2016, 12:46:43 AM2/12/16
to Fluentd Google Group
<filter> @type your_filter </filter> is same as  <filter **> @type your_filter </filter> so all logs are filtered by this plugin.
Currently <filter foo.** bar.**> like your tag list is needed.
Hmm... negate or skip `fluent.**` pattern option may be needed.

Reply all
Reply to author
Forward
0 new messages