- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Deleting operating system logs
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 05:41 AM
12-05-2005 05:41 AM
Deleting operating system logs
Could you tell me, what kind of logs can i delete from all my unix system?
For example: var/adm/syslog.log
/var/spool/
what kind of log's can i delete every week for example?
can i delete /var/spool/mqueue ??
can i delete /var/spool/pwgr ??
what another logs can i delete?
Thanks, Manuales
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 05:43 AM
12-05-2005 05:43 AM
Re: Deleting operating system logs
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 05:45 AM
12-05-2005 05:45 AM
Re: Deleting operating system logs
Use 'cat /dev/null > $filename' to empty the contents of respective file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 06:42 AM
12-05-2005 06:42 AM
Re: Deleting operating system logs
You can delete/trim following files/logs but make sure that this data is either not required or backed up.
Log files are necessary to troubleshoot problems and to study the behaviour of the application.
1. /var/adm/syslog/syslog.log
2. /var/opt/
3. /var/tmp/
4. wtmp file
5. btmp file
6. Core files that get generated
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 08:50 AM
12-05-2005 08:50 AM
Re: Deleting operating system logs
attached is a script that I use to keep logfiles managed. Hope this helps!
CHristine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 09:11 AM
12-05-2005 09:11 AM
Re: Deleting operating system logs
If you dont need to keep the log , You can nullify this log files , which grows much more :
/var/adm/syslog/syslog.log
/var/adm/wtmp
/var/adm/syslog/mail.log
/var/adm/cron/log
And it can recover filesystem space,
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 09:28 AM
12-05-2005 09:28 AM
Re: Deleting operating system logs
i uderstand very well Christine Hartman, thank you very much ...