4 |
- |
1 |
# Begin /etc/rsyslog.d/40-mythtv.conf for MythTV Version 0.26 and on.
|
|
|
2 |
|
|
|
3 |
# Make MythTV logs readable by world
|
|
|
4 |
$FileCreateMode 0644
|
|
|
5 |
|
|
|
6 |
#
|
|
|
7 |
# Sample Log Entry: Aug 31 12:08:11 mythosttname mythlogserver: mythbackend[3139]: I HouseKeeping housekeeper.cpp:221 ...
|
|
|
8 |
#
|
|
|
9 |
|
|
|
10 |
# Control-code conversion. The default is on.
|
|
|
11 |
$EscapeControlCharactersOnReceive off
|
|
|
12 |
|
|
|
13 |
# This template drops the mythlogserver: $programname, so messages APPEAR to have the
|
|
|
14 |
# traditional programname[<PID>] tag (which is really part of the $msg.)
|
|
|
15 |
$template MythTVLog,"%TIMESTAMP% %HOSTNAME% %msg%\n"
|
|
|
16 |
|
|
|
17 |
# For programs that DON'T use mythlogserver. This template will create a log file named
|
|
|
18 |
# /var/log/[Replaced_with_Name_Of_Myth_Program].log.
|
|
|
19 |
$template noLogServerLog,"/var/log/mythtv/%programname%.log"
|
|
|
20 |
|
|
|
21 |
# By default this results in output that matches the default traditional output.
|
|
|
22 |
# This template could used to modify the output
|
|
|
23 |
# $template noLogServerLogFormat,"%TIMESTAMP% %HOSTNAME% %SYSLOGTAG% %msg%\n"
|
|
|
24 |
# and by changing the following line to
|
|
|
25 |
# if $syslogfacility-text == 'local7' and $programname startswith 'myth' then ?noLogServerLog;noLogServerLogFormat
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythbackend' then /var/log/mythtv/mythbackend.log;MythTVLog
|
|
|
30 |
& ~
|
|
|
31 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythfrontend' then /var/log/mythtv/mythfrontend.log;MythTVLog
|
|
|
32 |
& ~
|
|
|
33 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythjobqueue' then /var/log/mythtv/mythjobqueue.log;MythTVLog
|
|
|
34 |
& ~
|
|
|
35 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythmediaserver' then /var/log/mythtv/mythmediaserver.log;MythTVLog
|
|
|
36 |
& ~
|
|
|
37 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythtv-setup' then /var/log/mythtv/mythtv-setup.log;MythTVLog
|
|
|
38 |
& ~
|
|
|
39 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythfilldatabase' then /var/log/mythtv/mythfilldatabase.log;MythTVLog
|
|
|
40 |
& ~
|
|
|
41 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythcommflag' then /var/log/mythtv/mythcommflag.log;MythTVLog
|
|
|
42 |
& ~
|
|
|
43 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythpreviewgen' then /var/log/mythtv/mythpreviewgen.log;MythTVLog
|
|
|
44 |
& ~
|
|
|
45 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythtranscode' then /var/log/mythtv/mythtranscode.log;MythTVLog
|
|
|
46 |
& ~
|
|
|
47 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythmetadatalookup' then /var/log/mythtv/mythmetadatalookup.log;MythTVLog
|
|
|
48 |
& ~
|
|
|
49 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythutil' then /var/log/mythtv/mythutil.log;MythTVLog
|
|
|
50 |
& ~
|
|
|
51 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythwelcome' then /var/log/mythtv/mythwelcome.log;MythTVLog
|
|
|
52 |
& ~
|
|
|
53 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythshutdown' then /var/log/mythtv/mythshutdown.log;MythTVLog
|
|
|
54 |
& ~
|
|
|
55 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythlcdserver' then /var/log/mythtv/mythlcdserver.log;MythTVLog
|
|
|
56 |
& ~
|
|
|
57 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythccextractor' then /var/log/mythtv/mythccextractor.log;MythTVLog
|
|
|
58 |
& ~
|
|
|
59 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythavtest' then /var/log/mythtv/mythavtest.log;MythTVLog
|
|
|
60 |
& ~
|
|
|
61 |
if $syslogfacility-text == 'local7' and $msg startswith ' mythlogserver' then /var/log/mythtv/mythlogserver.log;MythTVLog
|
|
|
62 |
& ~
|
|
|
63 |
if $syslogfacility-text == 'local7' and $programname startswith 'myth' then ?noLogServerLog
|
|
|
64 |
& ~
|
|
|
65 |
|
|
|
66 |
# Set FileCreateMode back to default. This should be the same value as specified
|
|
|
67 |
# in the /etc/rsyslog.conf file.
|
|
|
68 |
$FileCreateMode 0640
|
|
|
69 |
|
|
|
70 |
# End /etc/rsyslog.d/40-mythtv.conf
|