[Opensrf-commits] r2167 - trunk/examples (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Feb 14 08:54:51 EST 2011


Author: erickson
Date: 2011-02-14 08:54:50 -0500 (Mon, 14 Feb 2011)
New Revision: 2167

Added:
   trunk/examples/opensrf-rsyslog.conf
Log:
added sample rsyslog opensrf configuration file

Added: trunk/examples/opensrf-rsyslog.conf
===================================================================
--- trunk/examples/opensrf-rsyslog.conf	                        (rev 0)
+++ trunk/examples/opensrf-rsyslog.conf	2011-02-14 13:54:50 UTC (rev 2167)
@@ -0,0 +1,39 @@
+# OpenSRF rsyslog configuration file
+# Bill Erickson <berick at esilibrary.com>
+# 
+# /etc/rsyslog.d/opensrf-rsyslog.conf
+
+# Message format templates
+# TIMESTAMP:::date-pgsql == YYYY-MM-DD HH:MM:SS
+$template msgformat,"%TIMESTAMP:::date-pgsql% %HOSTNAME% %syslogtag%%msg:::drop-last-lf%\n"
+
+# Log file templates -------
+$template osrfsys,"/var/log/opensrf/%$YEAR%/%$MONTH%/%$DAY%/osrfsys.%$HOUR%.log"
+$template osrferror,"/var/log/opensrf/%$YEAR%/%$MONTH%/%$DAY%/osrferror.log"
+$template osrfwarn,"/var/log/opensrf/%$YEAR%/%$MONTH%/%$DAY%/osrfwarn.log"
+$template activity,"/var/log/opensrf/%$YEAR%/%$MONTH%/%$DAY%/activity.log"
+$template gateway,"/var/log/opensrf/%$YEAR%/%$MONTH%/%$DAY%/gateway.%$HOUR%.log"
+$template router,"/var/log/opensrf/%$YEAR%/%$MONTH%/%$DAY%/router.log"
+
+# Selectors ----------------
+# local0 : OpenSRF
+# local1 : OpenSRF "activity"
+# local2 : OpenSRF router
+# local6 : Apache
+
+local0.* ?osrfsys;msgformat
+local1.* ?activity;msgformat
+local2.* ?router:msgformat
+local6.* ?gateway;msgformat
+
+# Warn
+local0.warn ?osrfwarn;msgformat
+local1.warn ?osrfwarn;msgformat
+local2.warn ?osrfwarn;msgformat
+local6.warn ?osrfwarn;msgformat
+
+# Error
+local0.error ?osrferror;msgformat
+local1.error ?osrferror;msgformat
+local2.error ?osrferror;msgformat
+local6.error ?osrferror;msgformat



More information about the opensrf-commits mailing list