fluent-plugin-norikra
can be installed with the gem install fluent-plugin-norikra
(or fluent-gem
) command.JRUBY_INSTALL_DIRECTORY/bin
.norikra start
command will launch the Norikra server in your console./etc/td-agent/td-agent.conf
. Otherwise, it is located at /etc/fluentd/fluentd.conf
.<match>
section specifies the glob pattern used to look for the matching tags. If the tag of a log is matched, the respective match
configuration is used (i.e. the log is routed accordingly).norikra
attribute specifies the Norikra server's RPC host and port (default: 26571
). By target_map_tag true
and remove_tag_prefix data
, out_norikra
handle the rest of tags (e.g. foo
for data.foo
) as the target, which is the name of the set of events as same as table name of RDBMS.<default>
section specifies which fields are sent to the Norikra server. We can also specify these sets per target with <target NAME>...</target>
. For more details, refer to fluent-plugin-norikra
.curl
command in this example):access
and sent a message with fields of action
and user
.norikra-client
command from the console that has the PATH
to JRuby:user
per 10 second interval, with a 'group by' action
:norikra-client query add
on the CLI:test_query
query:action
for events with user != 0
only, and outputs events at "2014/05/20 21:00:24". At "2014/05/20 21:00:34", just after next 10 seconds, this query reports that no events arrived (These are teardown records, and reported only once).