Fluent::Plugin::RabbitMQJSONTraceParser::Parser
Fluentd Parser plugin for RabbitMQ Trace log in JSON format.
Installation
Add this line to your application's Gemfile:
gem 'fluent-plugin-rabbitmq-json-trace-parser'
And then execute:
$ bundle
Or install it yourself as:
$ gem fluent-plugin-rabbitmq-json-trace-parser
Configuration
<source>
@type tail
path /path/to/log
tag rabbitmq.trace
format rabbitmq_json_trace
payload_type 'json'
</source>
You can use two values for payload_type
:
base64
(default) — to decode payload from Base64 to something meaningfuljson
— to decode payload from Base64 and then treat it like a JSON object
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.