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

stdout Filter Plugin

This page is simply copied from v0.12 documents, and will be updated later.

The filter_stdout filter plugin prints events to stdout (or logs if launched with daemon mode). This filter plugin is useful for debugging purposes.

Table of Contents

Example Configurations

filter_stdout is included in Fluentd’s core. No installation required.

<filter pattern>
  @type stdout
</filter>

A sample output is as follows:

2017-11-28 11:43:13.814351757 +0900 tag: {"field1":"value1","field2":"value2"}

where the first part shows the output time, the second part shows the tag, and the third part shows the record.

The first part shows the output time, not the time attribute of message event structure as out_stdout does.

Plugin helpers

Parameters

Common Parameters

@type (required)

The value must be stdout.

<format> section

See Format section configurations for more details.

@type

type default version
string stdout 0.14.5

The format of output.

output_type

type default version
string json 0.14.5

This is the option of stdout format. Configure the format of record (third part). Any formatter plugins can be specified.

Learn More

Last updated: 2018-07-18 16:11:32 +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.