bump up version numbers for 3.1.0-beta release
[OpenSRF.git] / examples / opensrf-rsyslog.conf
1 # OpenSRF rsyslog configuration file
2 # Bill Erickson <berick@esilibrary.com>
3
4 # /etc/rsyslog.d/opensrf-rsyslog.conf
5
6 # When turned on, EscapeControlCharactersOnReceive peppers your 
7 # logs with confusing #11's in place of spaces for newlines 
8 # and destroys non-western characters.
9 $EscapeControlCharactersOnReceive off
10
11 # Message format templates
12 # TIMESTAMP:::date-pgsql == YYYY-MM-DD HH:MM:SS
13 $template msgformat,"%TIMESTAMP:::date-pgsql% %HOSTNAME% %syslogtag%%msg:::drop-last-lf%\n"
14
15 # Log file templates -------
16 $template osrfsys,"/var/log/opensrf/%$YEAR%/%$MONTH%/%$DAY%/osrfsys.%$HOUR%.log"
17 $template osrferror,"/var/log/opensrf/%$YEAR%/%$MONTH%/%$DAY%/osrferror.log"
18 $template osrfwarn,"/var/log/opensrf/%$YEAR%/%$MONTH%/%$DAY%/osrfwarn.log"
19 $template activity,"/var/log/opensrf/%$YEAR%/%$MONTH%/%$DAY%/activity.log"
20 $template gateway,"/var/log/opensrf/%$YEAR%/%$MONTH%/%$DAY%/gateway.%$HOUR%.log"
21 $template router,"/var/log/opensrf/%$YEAR%/%$MONTH%/%$DAY%/router.log"
22
23 # Selectors ----------------
24 # local0 : OpenSRF
25 # local1 : OpenSRF "activity"
26 # local2 : OpenSRF router
27 # local6 : Apache
28
29 local0.* ?osrfsys;msgformat
30 local1.* ?activity;msgformat
31 local2.* ?router:msgformat
32 local6.* ?gateway;msgformat
33
34 # Warn
35 local0.warn ?osrfwarn;msgformat
36 local1.warn ?osrfwarn;msgformat
37 local2.warn ?osrfwarn;msgformat
38 local6.warn ?osrfwarn;msgformat
39
40 # Error
41 local0.error ?osrferror;msgformat
42 local1.error ?osrferror;msgformat
43 local2.error ?osrferror;msgformat
44 local6.error ?osrferror;msgformat