- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reduce the logfile size and logfile encapsulator
Operating System - HP-UX
1753797
Members
7378
Online
108805
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО03-09-2004 08:39 PM
тАО03-09-2004 08:39 PM
Reduce the logfile size and logfile encapsulator
hello!
I created a logFile template to report in a message browser ERROR messages.
Then, I created a template to monitor this logfile (on NT boxes). When this file is bigger than n bytes, I reduce its size, I saved only last 100 lines on this file.
After this automatic action, my logfile template report last ERROR msg as if new error messages while they are old messages...
What must i do to not report these old messages? I must save the last 100 lines in my log file...
Any idea ?
Thank you vry much to help me...
I created a logFile template to report in a message browser ERROR messages.
Then, I created a template to monitor this logfile (on NT boxes). When this file is bigger than n bytes, I reduce its size, I saved only last 100 lines on this file.
After this automatic action, my logfile template report last ERROR msg as if new error messages while they are old messages...
What must i do to not report these old messages? I must save the last 100 lines in my log file...
Any idea ?
Thank you vry much to help me...
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2004 08:45 PM
тАО03-09-2004 08:45 PM
Re: Reduce the logfile size and logfile encapsulator
Hi,
Stop logging.
tail -100 logfile >> logfile.new
mv logfile.new logfile
Start logging.
HTH,
Gideon
Stop logging.
tail -100 logfile >> logfile.new
mv logfile.new logfile
Start logging.
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2004 08:47 PM
тАО03-09-2004 08:47 PM
Re: Reduce the logfile size and logfile encapsulator
Hi,
Use a tool like logrotate.
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/logrotate-2.5/
But I'm not shore where to find something like this for NT.
Regards,
Robert-Jan
Use a tool like logrotate.
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/logrotate-2.5/
But I'm not shore where to find something like this for NT.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2004 08:59 PM
тАО03-09-2004 08:59 PM
Re: Reduce the logfile size and logfile encapsulator
From a unix point of view grab a copy of cygwin from www.cygwin.com
Then stop logging
#tail -100 logfile > temp_logfile
#mv temp_logfile logfile
finally start logging
HTH
Regards,
Dave.
Then stop logging
#tail -100 logfile > temp_logfile
#mv temp_logfile logfile
finally start logging
HTH
Regards,
Dave.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP