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

hash Formatter Plugin

The hash formatter plugin converts an event to ruby hash.

By default, hash 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"}
Last updated: 2018-04-23 17:29:39 +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.