2010-01-14, 14:23
Hi there
I am hoping an Ubuntu guru can help. I log all my system logs to a remote log server, and I would also like to log my xbmc logs as well. I was wondering if anyone knows a way I can send the xbmc.log to syslog (my syslog is set up to send all logs to the remote server, so I need to just send them to syslog).
I thought I could use logger (so logger -t xbmc -f ~/.xbmc/temp/xbmc.log) but this only sends the whole log each time, not just the changes.
I then thought of using logger and tail so:
tail -f .xbmc.log | logger -t xbmc
But for some reason, tail doesn't seem to register any changes to the xbmc.log (I tried by playing and then stopping a video file, although the log file changed, tail didn't seem to notice..).
Thus, has anyone got any ideas of how I can get changes to the xbmc.log into syslog??
Cheers
I am hoping an Ubuntu guru can help. I log all my system logs to a remote log server, and I would also like to log my xbmc logs as well. I was wondering if anyone knows a way I can send the xbmc.log to syslog (my syslog is set up to send all logs to the remote server, so I need to just send them to syslog).
I thought I could use logger (so logger -t xbmc -f ~/.xbmc/temp/xbmc.log) but this only sends the whole log each time, not just the changes.
I then thought of using logger and tail so:
tail -f .xbmc.log | logger -t xbmc
But for some reason, tail doesn't seem to register any changes to the xbmc.log (I tried by playing and then stopping a video file, although the log file changed, tail didn't seem to notice..).
Thus, has anyone got any ideas of how I can get changes to the xbmc.log into syslog??
Cheers