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

Option to send the entire event as JSON in request body #2

Open
bradvido opened this issue Jun 23, 2015 · 2 comments
Open

Option to send the entire event as JSON in request body #2

bradvido opened this issue Jun 23, 2015 · 2 comments

Comments

@bradvido
Copy link

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.

@lucashenning
Copy link
Owner

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?

@bradvido
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants