HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can log files be looped at whatever size we sp...
Operating System - HP-UX
1833825
Members
1976
Online
110063
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
02-21-2007 02:29 AM
02-21-2007 02:29 AM
Hello,
I have an application which will write to a log file while processing.
I would like to know , if there is any setting or environment variable whcih will recreate the file when it hits 1 GB and then start logging activity from where its stopped.
Please tell me whether i need to handle this in the program itself.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 02:34 AM
02-21-2007 02:34 AM
Re: Can log files be looped at whatever size we specify ?
Amith,
I don't think you can move a file opened by an application without causing the application to crash, unless the application was written that way !
Normally the application is stopped and then restarted.
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
You profiles indicates you have only rewarded 5 out of 76 answers.
I don't think you can move a file opened by an application without causing the application to crash, unless the application was written that way !
Normally the application is stopped and then restarted.
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
You profiles indicates you have only rewarded 5 out of 76 answers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 02:35 AM
02-21-2007 02:35 AM
Solution
There is nothing to 'cleanup' logfiles in the OS. The main reason is that many logfiles need scanning and summarizing before being retired. Or more commonly in today's security environment, logfiles must be archived, typically in a compressed format.
I would add some simple code in your application to perform the logfile loop. Be sure that you can afford to lose 100% of the old data. Most logfiles are only useful if they contain some amount of history. By restarting with a new logfile, all the previous data is gone. Might be useful to alternate between logfileA and logfileB and set a smaller size limit. That way a lot of history is always available from the previous file.
Bill Hassell, sysadmin
I would add some simple code in your application to perform the logfile loop. Be sure that you can afford to lose 100% of the old data. Most logfiles are only useful if they contain some amount of history. By restarting with a new logfile, all the previous data is gone. Might be useful to alternate between logfileA and logfileB and set a smaller size limit. That way a lot of history is always available from the previous file.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 02:39 AM
02-21-2007 02:39 AM
Re: Can log files be looped at whatever size we specify ?
Thanks to both of you...
I will reward the answers from here on without any delay.
Sorry for that.
I will reward the answers from here on without any delay.
Sorry for that.
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP