How to install a 'fluend-filter plugin' locally in MacOS

10 views
Skip to first unread message

learning

unread,
Nov 28, 2016, 10:34:34 AM11/28/16
to Fluentd Google Group

module Fluent

    class SplitMsgFilter < Filter

        Fluent::Plugin.register_output('split_msg', self)

        

        # config_param works like other plugins

        def configure(conf)

            super

        end

        

        def filter(tag, time, record)

            msgs = record['message'].split("\t")

            event_time = msgs[0]

            ip = msgs[2]

            # replace profile4 or add ip to record or etc...

            record

        end

    end

end


How can we install and use this filter locally in macOS and use it with fluentd config.

Mr. Fiber

unread,
Nov 28, 2016, 11:11:05 AM11/28/16
to Fluentd Google Group
See this article: http://docs.fluentd.org/articles/plugin-management
This article describes several ways to use plugins.


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