-
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
HTTP Body without Response Raw #179
Comments
As it's configured now, Packetbeat exports all the headers for all http transactions and the body only for the http transaction with a json attachment. I am not sure I understand what fills up the 80GB. Are the headers the problem as they are stored for all transactions? Would you like to export the selected headers only for some http transactions? |
If I set send_response=false and have include_body_for=["application/json"] the body of the message does not show up in kibana. Part of my problem before was that I had include_body_for=["txt/html", "application/json"]. That was probably a large part of the 80GB index. Now however, I just want the body to be in its own field, for example: instead of: { "Status":{ "Status":"Success", "StatusCode":200 }, "resultInfo":{ "totalNumberOfResults":2, "pageNumber":1, "totalNumberOfPages":1, "resultsPerPage":2 }, "result":{ "genders":[ "Female", "Male" ] } } |
In the current version, the body is added to the "response" field for the http transactions that have a json attachment if you set both:
I agree it's not a good solution what we have now and it needs improvements. Adding the body in a extra field makes sense to me. |
@dahendel I hope generic filtering solves better your use case. For more questions please the Beats forum. |
This is awesome. Thank you very much! Will certainly help.
|
Can I get the body of the http response without enabling response_raw? servers all sending response raw is giving me 80GB indexes just for http data. because of an api call we have been troubleshooting it would be really helpful to have the json response logged. Thanks in advance for any help.
I am on 0.5.0. 3
Config excerpt--
[protocols.http]
ports = [80, 8080, 7200]
send_response = true
[http]
include_body_for=["application/json"]
send_headers = ["User-Agent", "Host", "Referer", "Set-Cookie", "Cookie"]
split_coookie = true
real_ip_header = "X-Forwarded-For"
The text was updated successfully, but these errors were encountered: