Skip to content

Conflicting information about json formatter defaults #381

@virullius

Description

@virullius

Describe the bug

The How To Use section of the Formatter Plugins page states "each line is a single JSON object with "time" and "tag fields to retain the event's timestamp and tag". However, the json formatter page states "By default, json formatter result doesn't contain tag and time fields." and gives no indication how to configure it to include the time and tag fields.

Taking a look at formatter_json.rb, there does not appear a way to include the time and tag field in any configuration.

Link to the problematic documentation

https://docs.fluentd.org/formatter#how-to-use

Expected explanation

Change the Formatter documentation to reflect the actual functionality.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions