HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

Retention of log file

 
SOLVED
Go to solution
anu_1_1
Occasional Contributor

Retention of log file

what is the method to configure the log file retention period in HP....? Which files we need to configure to alter the log file retention period....
** for both 11iV2 and prev

Thanks for your help
5 REPLIES
Aneesh Mohan
Honored Contributor

Re: Retention of log file

>>what is the method to configure the log file retention period in HP....?

Which log file you are talking abt ?


Aneesh
anu_1_1
Occasional Contributor

Re: Retention of log file

Sorry ..I should have been more clear..
/var/adm/wtmp
/var/adm/wtmps
/var/adm/sulog
/var/adm/btmp
/var/adm/btmps
/var/adm/syslog/syslog.log
Suraj K Sankari
Honored Contributor

Re: Retention of log file

Hi,

/var/adm/wtmp
/var/adm/wtmps
/var/adm/btmp
/var/adm/btmps

These files, which hold user and accounting information for such commands as last, who, write, and login

/var/adm/sulog
sulog keeps the record who used su (set user or superuser)

/var/adm/syslog/syslog.log
Out of these above logs files only two are important (sulog and syslog.log) rest you can nullify any time..

Suraj
madhuchakkaravarthy
Trusted Contributor
Solution

Re: Retention of log file

hi anu

u can nullify the others as said by suraj

u have to use fwtmp to make wtmps and btmps for human readble format.

regards

MC
Horia Chirculescu
Honored Contributor

Re: Retention of log file

Hello,

There is no such thing as
> log file retention period..

The system would append new info to those files until the maximum size of the files occurred. At that point an exception would be raised and the file would not be updated anymore.

You could install some third party software like logrotate that would make a new file after some customized time


Best regards,
Horia.
Best regards from Romania,
Horia.