Archive:HOW-TO:Send xbmc.log to rsyslog: Difference between revisions
Jump to navigation
Jump to search
>NedBot m (Robot: Cosmetic changes) |
>NedBot m (Robot: Changing Category:How To to Category:How-to) |
||
Line 27: | Line 27: | ||
sudo restart rsyslog | sudo restart rsyslog | ||
[[Category:How | [[Category:How-to]] | ||
[[Category:Linux]] | [[Category:Linux]] |
Revision as of 22:35, 11 September 2011
The following has been tested with Ubuntu 10.04 but should work with any distribution which include rsyslog and the imfile module.
Note: Test in bold will need to be adapted to value which are relevant to your system.
- Create the following file:
/etc/rsyslog.d/10-xbmc.conf
# $ModLoad imfile # # /home/xbmc/.xbmc/temp/xbmc.log $InputFileName /home/xbmc/.xbmc/temp/xbmc.log $InputFileTag tag_xbmc_log: $InputFileStateFile xbmc_log $InputFileSeverity debug $InputFileFacility local3 $InputRunFileMonitor # # check for new lines every 10 seconds $InputFilePollingInterval 10 # # send the log to a remote host: (optional) local3.debug @<remote_host>
- restart rsyslog:
sudo restart rsyslog