Bug #2816
closedLighttpd error conditional log
Description
In regards to the Lighttpd error-conditional log:
http://blog.lighttpd.net/articles/2006/04/02/log-condition-handling-the-hidden-feature-for-debuging/
Would it be possible to log the Query (SRC IP) address to the log?
It currently only logs the host and socket but not the real Source IP address:
2017-01-27 18:01:09: (log.c.217) server started
20172017-06-29 21:21:34: (conf2017-06-30 21:10:30: (configfile-glue.c.615) 1 (unc2017-07-01
22:49:51: (configfile-glue.c.694) === start of condition block ===
2017-07-01 22:49:51: (configfile-glue.c.557) HTTP["host"] ( static.chartbeat.com ) compare to .*
2017-07-01 22:49:51: (configfile-glue.c.615) 1 (uncached) result: true
2017-07-01 22:49:51: (configfile-glue.c.694) === start of condition block ===
2017-07-01 22:49:51: (configfile-glue.c.557) SERVER["socket"] ( 0.0.0.0:8443 ) compare to 0.0.0.0:8443
2017-07-01 22:49:51: (configfile-glue.c.615) 2 (uncached) result: true
2017-07-01 22:49:51: (configfile-glue.c.694) === start of condition block ===
2017-07-01 22:49:51: (configfile-glue.c.350) go parent global/SERVERsocket==0.0.0.0:8443
2017-07-01 22:49:51: (configfile-glue.c.622) 2 (cached) result: true
Updated by gstrauss almost 7 years ago
- Status changed from New to Invalid
- Priority changed from Normal to Low
- Target version deleted (
1.4.x)
See documentation for other debugging options: DebugVariables
Don't file "bugs" to ask questions.
Don't file "bugs" to ask questions about debug output for debug modes.
Would it be possible to log the Query (SRC IP) address to the log?
Possible? Yes. Feel free write a patch to log con->dst_addr_buf (stringified source IP).
It is unlikely that conditional processing debug logging will be rewritten to add IP. If you're having trouble processing conditions, it would be better if you created a small test environment to reproduce that condition with a single request, rather than attempting to differentiate between multiple requests. As it is, lighttpd is single-threaded and when lighttpd does condition processing for a request, each block of condition debug logging is for a single request.
Also available in: Atom