logstash-filter-rest
logstash-filter-rest copied to clipboard
Option to send the entire event as JSON in request body
It would be nice if there was a config option to simply send the entire logstash event as a json in the POST body (by using event.to_json
). In my use case, the server needs to most of the event data, and it's much easier to parse the POST body as a JSON object that to handle each parameter independently.
Hi @bradvido,
I'm not sure whether this is a step too far (as this was originally intended as a filter plugin). Couldn't this be realised using the logstash http output plugin and format => "json"
? Do you need the possibility to handle the rest response?
The idea is that the entire event JSON would be sent to an "enrichment webservice" and it would return the entire enriched JSON. It's simpler for my use case to send the entire event than specifying 10-20 different parameters in the HTTP request.