-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Filebeat][httpjson input] Unable to create body with single value list #25060
Comments
We could either change the default behavior, or we would need some config option for this, is there a reason why the first value is not a list when using |
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
Was a matter of consistency with |
Follow-up from discussion here https://discuss.elastic.co/t/header-transform-concern-need-help/269064/19.
There does not seem to be any good way or workaround to create a body with a single value list.
The append documentation states:
https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#_append
Appends a value to a list. If the field does not exist, the first entry will be a scalar value, and subsequent additions will convert the value to a list.
Relevant code is here: https://github.com/elastic/beats/blob/master/x-pack/filebeat/input/httpjson/internal/v2/transform_append.go#L136
The text was updated successfully, but these errors were encountered: