The life cycle of System logfiles | Unix Linux Forums | HP-UX

  Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

The life cycle of System logfiles

HP-UX


Tags
hp-unix, lifecycle, logfile

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-25-2013
enabbou enabbou is offline
Registered User
 
Join Date: Mar 2013
Last Activity: 25 March 2013, 11:30 AM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
The life cycle of System logfiles

Hi ,
The log files of the system are located in /var/admin/syslog , I want to know on which way the files are generated. To be more clear for example old log files are deleted automatically from the sytem ( is that configured ? if yes what is the criteria: is it file volume or file date or ..) Please help!!
Sponsored Links
    #2  
Old 03-25-2013
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 29 August 2014, 3:18 PM EDT
Location: Switzerland - GE
Posts: 5,647
Thanks: 152
Thanked 391 Times in 370 Posts
The default ( I dont know about the latest releases since I have none to look at...) was the file lives its life till next reboot where it becomes an OLDlogfil.log overwriting any existent and a new log file and a new one created...
Sponsored Links
    #3  
Old 03-25-2013
enabbou enabbou is offline
Registered User
 
Join Date: Mar 2013
Last Activity: 25 March 2013, 11:30 AM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hi ,

Thanks for your Reply. If understand well you mean all the logfiles located in /var/adm/syslog will be overwritten if any rebbot happens?? So for any old previous reboot we can not get the old log files!!

Thanks for your collaboration
    #4  
Old 03-25-2013
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 29 August 2014, 3:18 PM EDT
Location: Switzerland - GE
Posts: 5,647
Thanks: 152
Thanked 391 Times in 370 Posts
The current will become OLD* and you will have a new one created...
So you always have current and a previous...
I can gues what you mean because I had to modify/create an alternative for an old 10.20 server in the countryside... when the security people once a month but randomly decided to test the electricity genertor, they would switch off the mains... and after 10 minutes once happy cut the generator and put the mains back on...
For months I was struggling to understand what was happening because in OLD I would have a reboot after crash that when just strting oracle ends...

So I you have more than ONE reboot then yes your OLD would not be very usefull...
Sponsored Links
    #5  
Old 03-25-2013
enabbou enabbou is offline
Registered User
 
Join Date: Mar 2013
Last Activity: 25 March 2013, 11:30 AM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

Thanks for your Reply. I think now I am clear.
All the log files concerning the sytem are not deleted. the number of the log files are equal to the number of Reboot
Sponsored Links
    #6  
Old 03-25-2013
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 29 August 2014, 3:18 PM EDT
Location: Switzerland - GE
Posts: 5,647
Thanks: 152
Thanked 391 Times in 370 Posts
Not quite ...
You will always have e.g. syslog.log:
syslog.log -> the current always a new file ater reboot
OLDsyslog.log -> the previous (always overwritten...)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
split monthly logfiles into daily logfiles clzupp Shell Programming and Scripting 1 11-07-2008 07:07 PM
system logs' life xramm Solaris 1 03-31-2008 10:01 AM
End of Life / Life Cycle Information robertmcol UNIX for Advanced & Expert Users 2 03-24-2008 06:45 PM



All times are GMT -4. The time now is 12:13 PM.