Versions | v0.12 (td-agent2)

relabel Output Plugin

The relabel output plugin re-labels events.

Table of Contents

Example Configuration

out_relabel is included in Fluentd’s core. No additional installation process is required.

<match pattern>
  @type relabel
  @label @foo
</match>

<label @foo>
  <match patter>
    ...
  </match>
</label>

The above example puts a label @foo to matched events, and the label directive can take care of these events.

FYI: All of input and output plugins also have @label parameter provided by Fluentd core. The relabel plugin is a plugin which actually does nothing, but supports only @label parameter.

Parameters

type (required)

The value must be relabel.

@label

The label.

log_level option

The log_level option allows the user to set different levels of logging for each plugin. The supported log levels are: fatal, error, warn, info, debug, and trace.

Please see the logging article for further details.

Last updated: 2015-12-01 21:20:32 UTC

Versions | 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), invented and sponsored by Treasure Data, Inc. under the Apache 2.0 Licence.

Interested in the Fluentd Newsletters?