[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Solaris log files



Forrest said:
: One that took me awhile to find when I first started was the /var/cron/log
: file.  This can be helpful if you use a lot of cron jobs.

This raises an interesting philosophical issue related to the organization
of the filesystem tree; in this case,
	* Does it make more sense to keep all of the files related to cron together?
	* Does it make more sense to keep all of the log files together?

I tend to think that the answer is likely to depend on your style of 
management and the nature of your system, but it's valuable to think
through such things, imho. For active systems, you have to decide whether
it's better to have
	/var/log/1999/02/20/cron
	/var/log/1999/02/20/lpd
	/var/log/1999/02/20/messages
	/var/log/1999/02/20/ftp
&c., or to have
	/var/log/cron/1999/02/20
	/var/log/lpd/1999/02/20
	/var/log/messages/1999/02/20
	/var/log/ftp/1999/02/20
(where the `messages' file might have everything else -- it should
probably be named `general' or `misc').




On a related note: what does Solaris' hier(7) say about /var/adm? Linux
seemed to copy it, but an early (1993) hier(7) for Linux mentions
       /usr/adm
              This often contains various log files.
This was before the clear distinction was made between /usr and /var.