Adding proxy-logging to the pipeline is not enough for access logging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Adding proxy-logging to the pipeline is not enough for access logging.
According to this chunk of code:
108 access_log_conf = {}
109 for key in ('log_facility', 'log_name', 'log_level', 'log_udp_host',
110 'log_udp_port', 'log_statsd_host', 'log_statsd_port',
111 'log_statsd_
112 'log_statsd_
113 'log_statsd_
114 value = conf.get('access_' + key, conf.get(key, None))
115 if value:
116 access_
117 self.access_logger = logger or get_logger(
118 log_route=
http://
The following configuration parameter are required to turn it on:
access_log_facility
access_log_level
Dave
Changed in swift: | |
status: | New → Invalid |
So the proxy-logging middleware is there to emit access long lines at the INFO level to the configured logger - you don't *have* to configure a separate access logger - most of the time the middleware will just use logger already configured for your proxy server.
You can even do some syslog config to redirect *just* INFO lines on the configured log_facility to a separate file so you have a "access.log" that you can use just for processing proxy request logs.
But there's a *few* other messages the proxy daemon will also log at INFO level. So you have the *option* of *also* configuring a *separate* logger instance that will *only* be used for access log messages. You can set that to a different facility if it simplifies your syslog config to redirect those to a different file that is just for access logs - if you want - it's an option.
You may have known all of that. Or maybe it's no longer working as intended. I'm not really sure what the bug being reported is exactly?