Logging using rsyslog
It is very useful to get logs from various Swift services, and this can be achieved by configuring proxy-server.conf
and rsyslog
:
- In order to receive logs from the proxy server, we modify the
/etc/swift/proxy-server.conf
configuration file by adding the following lines:log_name = name log_facility = LOG_LOCALx log_level = LEVEL
Let's describe these entries. The
name
parameter can be any name that you want to see in the logs. The letterx
inLOG_LOCALx
can be any number between 0 and 7.LEVEL
can be any one of emergency, alert, critical, error, warning, notification, informational, or debug. - Next, we modify
/etc/rsyslog.conf
to add the following line of code in theGLOBAL_DIRECTIVES
section:$PrivDropToGroup adm
- Also, we create ...
Get OpenStack Object Storage (Swift) Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.