Skip to content

Add 'metadata' option to include metadata fields #23

Description

@magnusbaeck

Currently the only way (?) to include the metadata fields in an output is by using the rubydebug codec, which is fine if the consumer is human but if a program is to read the data that's not very useful. I suggest that the json_lines codec gets the same treatment. If this is accepted I'll make the same addition to the json codec.

A case in point is the Logstash Filter Verifier tool which currently can't be used to test Logstash configurations that output events with metadata fields set as is relies on being able to parse the Logstash output via the json_lines codec. Being able to test metadata fields was requested in magnusbaeck/logstash-filter-verifier#5.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions