Versions | v1.0 (td-agent3) | v0.12 (td-agent2)

json Formatter Plugin

The json formatter plugin converts an event to json.

By default, json formatter result doesn’t contain tag and time field.

Table of Contents

Parameters

add_newline

type default version
bool true 0.14.12

Add \n to the result.

Example

tag:    app.event
time:   1362020400
record: {"host":"192.168.0.1","size":777,"method":"PUT"}

This incoming event is formatted to:

{"host":"192.168.0.1","size":777,"method":"PUT"}

With include_tag_key true and tag_key event_tag, result is:

{"host":"192.168.0.1","size":777,"method":"PUT","event_tag":"app.event"}
Last updated: 2018-06-19 14:34:45 +0000

Versions | v1.0 (td-agent3) | v0.12 (td-agent2)

If this article is incorrect or outdated, or omits critical information, please let us know. Fluentd is a open source project under Cloud Native Computing Foundation (CNCF). All components are available under the Apache 2 License.