-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
[💡 FEATURE REQUEST]: Filter logs #2073
Comments
Hey @devnev 👋🏻 |
@rustatian I'm probably going to have to redact some of it, is there any particular bit you're looking for? |
Yeah, logs section |
Logs section is logs:
encoding: json
level: info
mode: production |
I think that you may simply use channels. |
I don't think that works for me as I want to have the http logs in general but filter out certain logs (namely successful healthcheck requests) |
Yeah, in that case it makes sense. |
I'm actually having the same (or actually more of an issue, same cause but harder to mitigate) with metrics. My RR metrics now include the healthcheck traffic, which makes them less useful. Would it be possible to run two http server in RR on different ports, with separable logs and metrics? |
The |
I'm using the status plugin, but the exported metrics don't (and can't) include the HTTP URI that would be needed to filter them. |
Not sure I'm following. The status plugin works by the |
I'm sending healthcheck requests into the actual worker, to make sure the worker is able to process requests. Because these are http requests received by roadrunner and passed into the worker, these requests appear in logs, and are counted in metrics. I would like to have logs and metrics that exclude these healthcheck requests. For logs, I can post-process the logs to filter out the healtcheck URI. For metrics though, there is no way to exclude the healthcheck requests, as they are aggregated into the request counter and latency histogram metrics without any way of distinguishing them. And my suggestion is to follow one of two possible approaches:
|
Plugin
Logger
I have an idea!
In short, add an option to discard logs matching certain properties/patterns.
Motivation:
I have a global loadbalancer set up, which sends health checks to determine if the backend service is healthy. Previously these were handled by an nginx, with access logs disabled for that particular route. I've now changed the loadbalancer so the healthcheck traverses the full stack, all the way into the PHP worker managed by roadrunner. Now roadrunner is logging these requests, causing a lot of noise between logs of actual traffic. It would be great to be able to stop roadrunner from even emitting these logs.
The text was updated successfully, but these errors were encountered: