Recent built-in stdout plugin supports formatter. This plugin is no longer needed.
fluent-plugin-stdout_ex
Fluentd out_stdout extension
Introduction
Although the original out_stdout
outputs log messages as:
2010-05-04 12:02:01 +0900 test: {"test":"test"}
this plugin outputs log messages as:
2014-05-02 02:02:21 +0900 [info]: 2010-05-04 12:02:01 +0900 test: {"test":"test"}
where the first time expresses the current time of logging, and the second time expresses the time field of messages, i.e., the time when the message is created, or the time written in application logs.
This behavior is very useful because we can see the latency between receiving (logging) and sending (creating) of messages.
Configuration
<match **>
type stdout_ex
</match>
Parameters
Basically same with out_stdout plugin. See http://docs.fluentd.org/articles/out_stdout
-
format ltsv
The output becomes LTSV format as followings:
current_time:2010-05-04 12:02:01 +0900 time:2010-05-04 12:02:01 +0900 tag:test record:{"test":"test"}
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 new Pull Request
ChangeLog
See CHANGELOG.md for details.
stdoutright
- Copyright (c) 2014- Naotoshi Seo
- See LICENSE for details.