We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In decode_json_fields processor, expanded notation works only if target is left to "". In fact, in source code ( beats/decode_json_fields.go at master · elastic/beats · GitHub ) there is a clear if section:
if target != "" { _, err = event.PutValue(target, output) } else { switch t := output.(type) { case map[string]interface{}: jsontransform.WriteJSONKeys(event, t, f.expandKeys, f.overwriteKeys, f.addErrorKey) default: errs = append(errs, "failed to add target to root") } }
According to https://discuss.elastic.co/t/expand-keys-doesnt-work-if-target-option-is-used-in-decode-json-fields-beat-processor/305276 this is a bug
- type: filestream id: audit_elasticsearch enabled: true paths: - /var/log/elasticsearch/mycluster_audit.json processors: - decode_json_fields: fields: message max_depth: 8 expand_keys: true overwrite_keys: False target: json
The text was updated successfully, but these errors were encountered:
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)
Sorry, something went wrong.
This issue doesn't have a Team:<team> label.
Team:<team>
decode_json_fields
Folks, this is still an issue in latest 7.17.x, looks like the change has not been backported, e.g: #32014 did not get merged
kvch
Successfully merging a pull request may close this issue.
In decode_json_fields processor, expanded notation works only if target is left to "".
In fact, in source code ( beats/decode_json_fields.go at master · elastic/beats · GitHub ) there is a clear if section:
According to https://discuss.elastic.co/t/expand-keys-doesnt-work-if-target-option-is-used-in-decode-json-fields-beat-processor/305276 this is a bug
The text was updated successfully, but these errors were encountered: