Released fluent-plugin-extract_query_params 0.0.1
fluent-plugin-extract_query_params has been released. You can download and install it from both GitHub and RubyGems.
- https://github.com/kentaro/fluent-plugin-extract_query_params
- https://rubygems.org/gems/fluent-plugin-extract_query_params
This plugin extracts key/value pairs from URL query parameters. Imagin you have a config as below:
<match test.**> type extract_query_params key url add_tag_prefix extracted. only foo, baz </match>
And you feed such a value into fluentd:
"test" => { "url" => "http://example.com/?foo=bar&baz=qux&hoge=fuga" }
Then you'll get re-emmited tag/record-s below:
"extracted.test" => { "url" => "http://example.com/?foo=bar&baz=qux&hoge=fuga" "foo" => "bar", "baz" => "qux" }
As you can see:
foo
andbaz
key and their values are extracted and added into the recordhoge
parameter is not extracted becauseonly
param is setfoo, baz
.
For details, see the documentation at GitHub.
Enjoy!