LinHES Forums http://forum.linhes.org/ |
|
/var/log/<date> http://forum.linhes.org/viewtopic.php?f=21&t=22566 |
Page 1 of 1 |
Author: | stinga [ Thu Mar 29, 2012 3:22 am ] |
Post subject: | /var/log/<date> |
G'day, Is there anything that will delete these files? Code: drwxr-xr-x 2 root root 4096 Mar 24 00:02 2012-03-21 drwxr-xr-x 2 root root 4096 Mar 25 00:02 2012-03-22 drwxr-xr-x 2 root root 4096 Mar 28 00:02 2012-03-23 drwxr-xr-x 2 root root 4096 Mar 28 00:02 2012-03-24 drwxr-xr-x 2 root root 4096 Mar 28 00:02 2012-03-25 drwxr-xr-x 2 root root 4096 Mar 29 00:02 2012-03-26 drwxr-xr-x 2 root root 4096 Mar 27 00:08 2012-03-27 drwxr-xr-x 2 root root 4096 Mar 28 13:08 2012-03-28 drwxr-xr-x 2 root root 4096 Mar 29 00:05 2012-03-29 I don't hve many yet, but they will soon mount up! |
Author: | rsay [ Tue Aug 07, 2012 12:59 pm ] |
Post subject: | Re: /var/log/<date> |
Those are directories containing your myth related log data, divided up by day. I think its actually a pretty clever way to keep the logs more readable. They should get automatically logrotated out before they become a problem, so you can delete them, but you don't have to delete them. |
Author: | Big boy stan [ Mon Aug 27, 2012 1:39 pm ] |
Post subject: | Re: /var/log/<date> |
Does anyone understand how the file names are created? My log files start with the name of the computer and end with what appears to be a random number. I am sure there is some system to this but I cant figure out which backend log follows which. |
Author: | welner [ Mon Aug 27, 2012 4:08 pm ] |
Post subject: | Re: /var/log/<date> |
the number is the pid of the process Code: [mythtv@mythtv log]$ cd 2012-08-27 [mythtv@mythtv 2012-08-27]$ ls -la total 216 drwxr-xr-x 2 root root 4096 Aug 27 08:08 . drwxr-xr-x 18 root root 4096 Aug 27 03:11 .. -rw-r--r-- 1 root root 278 Aug 27 08:08 mythtv_dhcpcd.log -rw-r--r-- 1 root root 1754 Aug 27 05:46 mythtv_kernel.log -rw-r--r-- 1 root root 37233 Aug 27 16:27 mythtv_messages.log -rw-r--r-- 1 root root 50057 Aug 27 18:21 mythtv_mythbackend.31808.log -rw-r--r-- 1 root root 8747 Aug 27 03:02 mythtv_mythbackend.5300.log -rw-r--r-- 1 root root 27704 Aug 27 02:14 mythtv_mythfilldatabase.26664.log -rw-r--r-- 1 root root 485 Aug 27 03:38 mythtv_mythfrontend.0.log -rw-r--r-- 1 root root 584 Aug 27 03:38 mythtv_mythfrontend.2151.log -rw-r--r-- 1 root root 274 Aug 27 03:11 mythtv_php.log -rw-r--r-- 1 root root 303 Aug 27 13:38 mythtv_smartd.log -rw-r--r-- 1 root root 33608 Aug 27 14:58 mythtv_smbd.log -rw-r--r-- 1 root root 1695 Aug 27 16:27 mythtv_sshd.log -rw-r--r-- 1 root root 273 Aug 27 04:25 mythtv_sudo.log -rw-r--r-- 1 root root 1111 Aug 27 10:20 mythtv_su.log [mythtv@mythtv 2012-08-27]$ ps -ef | grep 31808 mythtv 11859 734 0 18:25 pts/2 00:00:00 grep 31808 mythtv 31808 31776 0 03:11 ? 00:00:34 /usr/bin/mythbackend -q --syslog local6 [mythtv@mythtv 2012-08-27]$ ps -ef | grep 5300 mythtv 11867 734 0 18:26 pts/2 00:00:00 grep 5300 [mythtv@mythtv 2012-08-27]$ ps -ef | grep 26664 mythtv 11878 734 0 18:26 pts/2 00:00:00 grep 26664 [mythtv@mythtv 2012-08-27]$ ps -ef | grep 2151 mythtv 2151 2006 0 Aug11 ? 02:29:31 /usr/bin/mythfrontend -d --syslog local6 mythtv 11888 734 0 18:26 pts/2 00:00:00 grep 2151 in the above example, there are two backend logs. one with a pid of 5300 and the other with a pid of 31808. the pid 5300 probably no longer exists because of my 3 am backup cronjob |
Author: | Big boy stan [ Mon Aug 27, 2012 6:50 pm ] |
Post subject: | Re: /var/log/<date> |
Seems like it might make more sense to put the time or some sequential number in the file name rather then the PID. With only the PID in the file name, its not easy to follow from one log to the next. |
Author: | jams [ Sun Sep 02, 2012 11:01 am ] |
Post subject: | Re: /var/log/<date> |
doing it by pid is a mythtv "feature", it was done to make debugging easier..but in practice it's just a mess. |
Author: | christ [ Sun Sep 02, 2012 6:41 pm ] |
Post subject: | Re: /var/log/<date> |
jams wrote: but in practice it's just a mess. You're not kidding!!! At least the log files do have the full time stamp for each entry though. So it should be straight forward for some clever script writer to create a myth log viewer. Probably just a reassembly based on time stamp which you can pipe into your favourite editor or less/more. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |