Skip to content

structured_data_field format #10

@1tft

Description

@1tft

Hello,
tried several hours to find out which format structured_data_field has to be.
E.g. when I set structured_data_field structured_data with following value via record_transformer

 <filter **>
    @type record_transformer
    enable_ruby true
    <record>
       structured_data ${"test@123 {'a' => 'a-value'}"}
    </record>
  </filter>

fluent-plugin-syslog_rfc5424 gives me following output logline:
<14>1 - - - - - test@123 {"a"=>"a-value"} -

As you can see, structured data is not formatted as it should be:
<14>1 - - - - - [test@123 a="a-value"] -

So I wonder, how do I have to commit structured data field to plugin that it produces correct output?

PS: All other fields are working like a charme (-;

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