Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log File Confusion???

Status
Not open for further replies.

jkc924

MIS
Aug 5, 2002
35
US
Can any/all .log files be removed when large or are there some that cannot? How do I know which ones I can remove that will be automatically recreated, which ones I can remove and need to touch to recreate, and are there any .log files that have to remain intact that can never be removed...
Any advise will be greatly appreciated.. I cannot find any information in any documentation about cleanup of log files or for that matter, any other unneeded files taking up space.

Thanks,

Judy
 
In cron there is a skulker script which you can look at which will cleanup logs. Also the following can be observerd:

/tmp, /var/tmp, /var/preserve - delete older than 7 days.
/var/spool/mqueue - delete older than 7 days.
/var/spool/mail - delete any not modified for 14 days.
/var/spool/qdaemon, /usr/lib/lpd/qdir - delete any file older than 7 days.
/var/lp/logs - delete any file older than 7 days.
core and snapcore - delete after 2 days.
nohup.out - delete after 2 days.
.xerrors - truncate.
mbox- truncate.
smit.log and smit.script - keep .5MB of root; last 1000 lines of others.
/var/adm/wtmp - keep min of 60 days; truncate rest.
/etc/security/failedlogin - keep min of 60 days; truncate rest.
/var/adm/sulog - keep min of 60 days; delete the rest.
/var/adm/cron/log - truncate; keep last 10 lines.
/var/tmp/snmp.log - truncate; keep last 100 lines.
/var/tmp/dpid.log, /var/tmp/dpid2.log, /var/tmp/hostmidb.log, /var/tmp/muxatmd - truncate; keep last 100 lines.
dead.letter - delete.
trcfile - keep 2 days then delete.
/var/adm/messages - keep last 1000 lines.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top