Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jkaufman-LogRhythm opened this issue Apr 6, 2021 · 1 comment · Fixed by #25074
Closed

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

jkaufman-LogRhythm opened this issue Apr 6, 2021 · 1 comment · Fixed by #25074
Labels
needs_team Indicates that the issue/PR needs a Team:* label

Comments

@jkaufman-LogRhythm
Copy link

jkaufman-LogRhythm commented Apr 6, 2021

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.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Apr 6, 2021
@botelastic
Copy link

botelastic bot commented Apr 6, 2021

This issue doesn't have a Team:<team> label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant