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
[dev.icinga.com #11944] Icinga should log HTTP bodies for API requests #4282
Comments
Updated by mfriedrich on 2016-06-15 09:08:54 +00:00
Look into icinga2.log - what's missing? |
Updated by tclh123 on 2016-06-15 09:20:02 +00:00 dnsmichi wrote:
Oh, I see `HttpServerConnection`. flood by other information and I didn't notice it. |
Updated by tclh123 on 2016-06-15 09:24:18 +00:00 Can I make it contain HTTP params through some config change? |
Updated by mfriedrich on 2016-06-15 09:48:09 +00:00 What exactly do you mean? |
Updated by tclh123 on 2016-06-15 10:08:57 +00:00 dnsmichi wrote:
For example, when I run ``` The log will only record like, which is useless ``` What I want is, ``` Which records the post data. |
Updated by gbeutner on 2016-08-05 06:39:10 +00:00
|
Updated by gbeutner on 2016-08-05 06:39:22 +00:00
|
Updated by gbeutner on 2016-09-02 07:42:32 +00:00
|
HttpUtility::FetchRequestParameters() contains the request body logging already, but only for debug builds. Could become spam-ish if we enable that for the LogInformation level. |
Is this something we really want? I'm itching to close this |
yes, for development or logging what other api users reqest with his access. Enable the icinga2 debug option is very chatty in big stages. |
That really depends on more advanced log filters. Then you may have the chance to add specific logger objects which filter only API requests on a defined level. I wouldn't go the route to just add and log it to the debug log now. The next feature request is probably to log entire cluster messages for debugging. That also may decrease the overall performance in large setups with many requests and messages. |
Actually I don't care much anymore whether the debug log is flooded or not. The patch just removes the debug build ifdefs, I always had that enabled here. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/11944
Created by tclh123 on 2016-06-15 09:05:50 +00:00
Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2016-08-05 06:39:22 +00:00 (in Redmine)
Should icinga provide access log whiich logging api requests?
Relations:
The text was updated successfully, but these errors were encountered: