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
05-20-2006 07:26 AM
05-20-2006 07:26 AM
syslog
how to change syslog from syslog.log to oldsyslog.log file what one more thing what are the log files are to be monitored
thanks
siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2006 08:22 AM
05-20-2006 08:22 AM
Re: syslog
The most easy way is to use SAM -> routine tasks and "trim" the file. You also can copy the content to another file (if needed) and clear the content of the original file with any kind of unix tools, e.g. "cp syslog.log myoldsyslog.log" and "cat /dev/null >syslog.log"
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2006 08:31 AM
05-20-2006 08:31 AM
Re: syslog
(e.g. syslog, software distributor, cron, reboot, ...)
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2006 10:10 AM
05-20-2006 10:10 AM
Re: syslog
The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. Logrotate allows for the automatic rotation compression, removal and mailing of log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file gets to a certain size. Normally, logrotate runs as a daily cron job.
http://packages.debian.org/cgi-bin/download.pl?arch=hppa&file=pool%2Fmain%2Fl%2Flogrotate%2Flogrotate_3.7.1-3_hppa.deb&md5sum=b4ff419979984d0d9778aff1733a5330&arch=hppa&type=main
Goodluck
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2006 03:43 PM
05-20-2006 03:43 PM
Re: syslog
Syslog /var/adm/syslog/syslog.log
Old Syslog /var/adm/syslog/OLDsyslog.log
Console messages dmesg (its a command)
Stm chasis code error log /var/stm/log/os/ccerrlog
Rc script log /etc/rc.log
Old rc script log /etc/rc.log.old
EMS events log /var/opt/resmon/log/event.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2006 09:52 PM
05-20-2006 09:52 PM
Re: syslog
The simplest way if you have enough space to copy the syslog file is
cd /var/adm/syslog
cp syslog.log oldsyslog.log
cat /dev/null > syslog.log
If you do not have enough space to have the original syslog file + copy of syslogfile(which you will name as oldsyslog), then stop the syslog daemon, mv the syslogfile
You can stop the syslog daemon as
/sbin/init.d/syslogd stop
ls -l syslog.log [ Note the permissions and ownership of the syslog.log file ]
mv /var/adm/syslog/syslog.log /var/adm/syslog/oldsyslog.log
touch syslog.log
Use chmod and chown to set the permission and ownership of the syslog file as original
/sbin/init.d/syslogd start
The various log file you should monitor are
/var/adm/messages
/etc/rc.log [ Usually only after a system startup ]
/var/adm/syslog/syslog.log
Also check your /etc/syslog.conf to see if its been configured to log to any other files than syslog.log
Also its worth writing a small script which will monitor thr filesystem usage and mail you whenever any critical filesystems/any filesystem is greater then say 90%
You should also check the mails to root using mailx
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2006 01:54 AM
05-21-2006 01:54 AM
Re: syslog
Hi Siva baskaran,
You can also copy the current syslog file to diff filename( oldsyslog.log) when the server is running and latter you can nullify the syslog.log file. ( by # > syslog.log )
Normally this happens during a reboot. ie, syslog will be coppiedn as OLDsyslog.
Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2006 02:08 AM
05-21-2006 02:08 AM
Re: syslog
run control script log -->
/etc/rc.log
EMS events log-- /var/opt/resmon/log/event.log
and
/etc/shutdownlog
also sulog --> for security reasons
Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 06:58 AM
05-22-2006 06:58 AM
Re: syslog
The sequence that seems to work well is
#syslog.sed > syslog
#cat /dev/null > syslog.log
If there aren't any unuseful things in the log, just copy syslog.log to a datesamp file and cat the null onto it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 07:12 AM
05-22-2006 07:12 AM
Re: syslog
The syslog.log file gets changed to OLDsyslog.log when the system is rebooted - manually or the result of a crash. Look into the /sbin/init.d/syslogd file.
/var/adm/wtmp
/var/adm/cron/log
/var/adm/snmpd.log
/var/adm/sulog
/var/adm/syslog/sudo.log
/var/adm/syslog/xferlog
/var/adm/syslog/mail.log
/var/adm/syslog/syslog.log
/var/adm/syslog/ssh.log
Here is an incomplete list. The logs you rotate will depend on your environment. Example, not everybody runs Secure Shell so there will not be a ssh.log file. Also look into the EMS logs, the rc.log, etc.