Rsyslog for stats collection.

Asked by Travis W Kiel

Would anybody happen to have an example of using the default rsyslog on Ubuntu for stats collection, as an alternative to the syslog-ng setup described here, http://swift.openstack.org/overview_stats.html?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
Travis W Kiel
Solved:
Last query:
Last reply:
Revision history for this message
Travis W Kiel (twkiel) said :
#1

I think I have this sorted out (the logging part anyways).

Ubuntu Maverick: Commented out privdrop lines in /etc/rsyslog.conf to avoid a permissions issue, switched proxy-server.conf's log_facility to LOG_LOCAL1, and added the following into /etc/rsyslog.d/swift.conf,

# swift proxy over local1
$template SwiftHourly,"/var/log/swift/hourly/%$YEAR%%$MONTH%%$DAY%%$HOUR%"
local1.info -/var/log/swift/proxy.log
local1.info -?SwiftHourly
local1.error -/var/log/swift/proxy.error