Stats collector failing to parse log lines, server_name match fails

Bug #671704 reported by Travis W Kiel
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Low
John Dickinson

Bug Description

The proxy-server log_name is defaulted to 'proxy-server'. AccessLogProcessor __init__ tries to get server_name from the log-processor.conf, and when its not defined (like the example conf file), it default's to 'proxy'. This causes log line parsing to fail.

To avoid having to set 'server_name' = 'proxy-server' in [log-processor-access], AccessLogProcessor should instead,

def __init__(self, conf):
    self.server_name = conf.get('server_name', 'proxy-server')

Related branches

Changed in swift:
importance: Undecided → Low
milestone: none → 1.2.0
Revision history for this message
clayg (clay-gerrard) wrote :

I would add that the log-processing.conf-sample in /etc should be updated to reflect 'proxy-server' as well.

tags: added: low-hanging-fruit stats
Changed in swift:
assignee: nobody → John Dickinson (notmyname)
status: New → In Progress
Changed in swift:
status: In Progress → Fix Committed
Chuck Thier (cthier)
Changed in swift:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.