Shan
Shan

Reputation: 2221

Fluentd Plain text output instead of json

Is it possible to have fluentd output logs as it is instead of json, just like tailing with zero modifications.

Please let me know, if there are any output plugins to achieve this.

thanks

Upvotes: 1

Views: 2277

Answers (2)

Akshay
Akshay

Reputation: 1

"format single_value" in output plugin will do.

<match **>
    @type file
    path path-to-file
    format single_value
</match>

Ref - https://docs.fluentd.org/formatter/single_value

Upvotes: 0

repeatedly
repeatedly

Reputation: 718

See following offcial articles:

none section: http://docs.fluentd.org/articles/in_tail
single_value: http://docs.fluentd.org/articles/out_file#format

Upvotes: 1

Related Questions