[Opensrf-commits] r2179 - branches/rel_2_0/examples (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Feb 22 13:15:21 EST 2011


Author: dbs
Date: 2011-02-22 13:15:18 -0500 (Tue, 22 Feb 2011)
New Revision: 2179

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


Copied: branches/rel_2_0/examples/opensrf-rsyslog.conf (from rev 2167, trunk/examples/opensrf-rsyslog.conf)
===================================================================
--- branches/rel_2_0/examples/opensrf-rsyslog.conf	                        (rev 0)
+++ branches/rel_2_0/examples/opensrf-rsyslog.conf	2011-02-22 18:15:18 UTC (rev 2179)
@@ -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