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 meaningful -
json
— 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.
Thanks
This gem was made as a part of my regular job in Excursiopedia, we successfully debuged some message passing quirks with Fluentd and this small gem.
License
The gem is available as open source under the terms of the MIT License.