Skip to content

Set only allows string when it comes to body.service #24952

@jkaufman-LogRhythm

Description

@jkaufman-LogRhythm

Please post all questions and issues on https://discuss.elastic.co/c/beats
before opening a Github Issue. Your questions will reach a wider audience there,
and if we confirm that there is a bug, then you can open a new issue.

For security vulnerabilities please only send reports to security@elastic.co.
See https://www.elastic.co/community/security for more information.

Please include configurations and logs if available.

For confirmed bugs, please report:

request.transforms:
    - set:
       target: body.service
       value: ["directory"]

The work around was to use append for each string (example):
- append:
target: body.service
value: "value1"
- append:
target: body.service
value: "value2"

Sadly the api I am using only allows one string in an array, so still I would require a way to put an array in the set value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs_teamIndicates that the issue/PR needs a Team:* label

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions