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