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-08-2003 02:53 AM
04-08-2003 02:53 AM
Please Help
Solved! Go to Solution.
- Tags:
- syslog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 03:08 AM
04-08-2003 03:08 AM
SolutionPurge and compress it on a daily basis
/sbin/init.d/syslogd stop
mv /var/adm/syslog/syslog.log /var/adm/syslog/syslog.`date`
gzip /var/adm/syslog/syslog.`date`
find /var/adm/syslog ! -newer /var/adm/syslog/syslog.`date` -exec rm {}\;
Then restart which will create a new file
/sbin/init.d/syslogd start
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 03:47 AM
04-08-2003 03:47 AM
Re: syslog
But till I get around to doing this...I recommend just writing a quick script to clean out any verbose and just informational type statements. And/or maybe a script that looks for important/critical things and sends you a page (or email) for the message...then puts the message in a special file and removes it from syslog. So far these have worked for me to keep syslog from growing too fast.
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 03:58 AM
04-08-2003 03:58 AM
Re: syslog
I prefer putting Steven's script in crontab file, saving only last weeks syslog files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 06:35 PM
04-08-2003 06:35 PM
Re: syslog
But, after running gzip won't it have a 'gz' extension?
i.e.
syslog.`date`.gz ??
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 06:50 PM
04-08-2003 06:50 PM
Re: syslog
cp /var/adm/syslog/syslog.log /tmp/syslog.log.$DATEVAR
> /var/adm/syslog/syslog.log
Zeros the little guy out.
Keeps a copy. DATEVAR has yyyymmdd in it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 01:04 PM
04-09-2003 01:04 PM
Re: syslog
Like Steve P using a cron job
I copy the sys log file
and then Compress the Copy
to save space
echo "" > /var/adm/syslog/syslog.log
zero out the file keep you from haveing to stop and start
cron.
If you don't care about lots of history.
I would use via cron.
/sbin/init.d/syslog stop;
/sbin/init.d/syslog start;
This process would give you a OLDsyslog.log as if you rebooted.
Rory