- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- GZIP syslog.log
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
04-10-2007 08:29 AM
04-10-2007 08:29 AM
I'm using HPUX 11
Please I would like to know what happen with my syslog.log because I have some servers that is on the same situation in the same time.
There is something that is running in my Servers that is gziping my syslog and I don't know what... below:
/var/adm/syslog> ll
total 400
-r--r--r-- 1 root root 115447 Apr 10 06:02 mail.log
-rw------- 1 root root 24047 Mar 30 09:09 sudo.log
-rw-r--r-- 1 root root 72 Apr 10 17:07 syslog.log
-rw-r--r-- 1 root sys 1411 Apr 10 17:07 syslog.log.1.gz
-rw-r--r-- 1 root sys 3964 Apr 3 17:07 syslog.log.2.gz
-rw-r--r-- 1 root root 1314 Mar 6 18:08 syslog.log.3.gz
-rw-r--r-- 1 root root 3796 Feb 27 18:07 syslog.log.4.gz
-rw-r--r-- 1 root sys 1204 Feb 20 19:07 syslog.log.5.gz
Please, could someone saw something like that and give me a help?
Thanks a lot!
clefeitosa
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 08:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 08:38 AM
04-10-2007 08:38 AM
Re: GZIP syslog.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 03:00 PM
04-10-2007 03:00 PM
Re: GZIP syslog.log
Now these gzip'ed files are read just as easily as the standard syslog.log. Use the zcat command as in:
zcat syslog.log.3.gz | grep -e fail -e warn -e err
Note that the files are quite small so you can change the crontab entry to once a month rather than once a week.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 03:01 PM
04-10-2007 03:01 PM
Re: GZIP syslog.log
javascript:postAnswerSubmit('submit');
Submit
Now these gzip'ed files are read just as easily as the standard syslog.log. Use the zcat command as in:
zcat syslog.log.3.gz | grep -e fail -e warn -e err
Note that the files are quite small so you can change the crontab entry to once a month rather than once a week.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 11:21 PM
04-10-2007 11:21 PM
Re: GZIP syslog.log
Unhappyly I don't have anything in my crontab...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 11:33 PM
04-10-2007 11:33 PM
Re: GZIP syslog.log
(logged in as root)
find $HOME /usr/local /usr/contrib -type f -perm -111 -exec ll {} +
The script or program doing this will probably show up with a name containing the words log or zip or rotate.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 11:47 PM
04-10-2007 11:47 PM
Re: GZIP syslog.log
/opt/logrotate
or try
swlist | grep -i logrotate
logrotate is a program that has this same behavior.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 02:59 AM
04-12-2007 02:59 AM
Re: GZIP syslog.log
#:>/var/spool/cron/atjobs> ll
total 0
I dont have the directory /opt/logrotate and nothing with swlist | grep -i logrotate
When I tried the command:
find $HOME /usr/local /usr/contrib -type f -perm -111 -exec ll {} +
... i didn't have success.
I'm studying...
thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2007 06:24 PM
04-13-2007 06:24 PM
Re: GZIP syslog.log
If you cannot find an atjob or crontab for any UID=0 user on this system, that might mean that the crontab is elsewhere. If you really find nothing locally, run:
# last -R
and then look for weekly root logins that match that timestamp.