HOW-TO:Send xbmc.log to rsyslog

The following has been tested with Ubuntu 10.04 and should work with any distribution which include rsyslog and the imfile module.


 * Create the following file with contents as below:

/etc/rsyslog.d/10-xbmc.conf 

Note: Text in bold will need to be adapted to value which are relevant to your system.

# $ModLoad imfile # $InputFileName /home/xbmc/.xbmc/temp/xbmc.log $InputFileTag tag_xbmc_log: $InputFileStateFile xbmc_log $InputFileSeverity debug $InputFileFacility local3 $InputRunFileMonitor # $InputFilePollingInterval 10 # local3.debug @
 * 1) /home/xbmc/.xbmc/temp/xbmc.log
 * 1) check for new lines every 10 seconds
 * 1) send the log to a remote host: (optional)


 * restart rsyslog:

Send xbmc.log across network
Centralized rsyslog server monitoring


 * Server side:

Uncomment these lines in /etc/rsyslog.conf

$ModLoad imtcp $InputTCPServerRun 514


 * restart rsyslog:


 * Client side:

Add these lines to the MODULES section in /etc/rsyslog.conf

$WorkDirectory /rsyslog/work   # default location for work (spool) files $ActionQueueType LinkedList    # use asynchronous processing $ActionQueueFileName srvrfwd   # set file name, also enables disk mode $ActionResumeRetryCount -1     # infinite retries on insert failure $ActionQueueSaveOnShutdown on  # save in-memory data if rsyslog shuts down
 * .* @@


 * restart rsyslog: