You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the input always writes an empty body (content-length 0) instead of an empty object {} when I try to configure this. I see there is an explicit empty check performed when encoding the output. 1
# WRONG: generates empty body
request.body: {}
# ERROR: cannot target body directly
request.transforms:
- set:
target: body
value_type: json
value: '{}'
Hi!
We just realized that we haven't looked into this issue in a while. We're sorry!
We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!
I want to be able to send an empty object in the body of a POST request. This is what my desired request would look like.
But the input always writes an empty body (content-length 0) instead of an empty object
{}
when I try to configure this. I see there is an explicit empty check performed when encoding the output. 1Footnotes
https://github.com/elastic/beats/blob/ba3bce42590dbf722061d7d92bfdb0bd903e9014/x-pack/filebeat/input/httpjson/encoding.go#L106-L108 ↩
The text was updated successfully, but these errors were encountered: