Ask Your Question
0

Rsyslog for stats collection.

asked 2010-11-03 18:33:24 -0500

twkiel gravatar image

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 (http://swift.openstack.org/overview_s...)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2010-11-04 00:11:23 -0500

twkiel gravatar image

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2010-11-03 18:33:24 -0500

Seen: 67 times

Last updated: Nov 04 '10