LinHES Forums http://forum.linhes.org/ |
|
Log file location http://forum.linhes.org/viewtopic.php?f=24&t=24622 |
Page 1 of 1 |
Author: | nigelpearson [ Fri Feb 03, 2017 7:09 pm ] |
Post subject: | Log file location |
Back in the good old days (of KnoppMyth), useful log files used to be stored in /var/log. e.g. /var/log/mythbackend.log LinHES stored them under a directory of today's date. Which is neater than several days worth of files in /var/log, but harder to access for old-timers like me (muscle memory, et c.). This helps: Code: cd /var/log/`date -Idate` but the filenames still have your server name prepended - too much typing for me. This script, run as a cronjob by root: Code: #!/bin/sh # # simplifyLogs.sh - make symlinks to some of today's LinHES log files: # # % ls -l /var/log/2017-02-04 # mythtv-server_dbus.log mythtv-server_php.log # mythtv-server_lighttpd.log mythtv-server_rsyslogd.log # mythtv-server_maillog.log mythtv-server_sshd.log # mythtv-server_messages.log mythtv-server_sudo.log # mythtv-server_mythbackend.log mythtv-server_su.log # mythtv-server_mythcommflag.log mythtv-server_zmaudit.log # mythtv-server_mythfrontend.log mythtv-server_zmdc.log # mythtv-server_myth_mtc.log mythtv-server_zmupdate.log # mythtv-server_mythpreviewgen.log # cd /var/log/mythtv for i in mythbackend.log mythcommflag.log mythfrontend.log mythpreviewgen.log do ln -sf ../`date -Idate`/*_$i $i done will make things easier. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |