LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2015, 09:39 AM   #1
neo4891
LQ Newbie
 
Registered: Dec 2014
Posts: 12

Rep: Reputation: Disabled
Log Purging for /var/log/secure


Hi All,

I know log purging happens for /var/log/secure on daily basis. I am not able to understand what triggers log purging?

I have a linux device for which /var/log/secure is growing, now it has secure.1 secure.2 secure.3 and secure.4 files.

Any input is appreciated.
 
Old 02-20-2015, 10:07 AM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 7,988
Blog Entries: 11

Rep: Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169
man logrotate

See /etc/logrotate.conf and/or contents of /etc/logrotate.d/
 
Old 02-20-2015, 10:48 AM   #3
neo4891
LQ Newbie
 
Registered: Dec 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hi Habitual,

I didnt find any information on .secure file in vi /etc/logrotate.conf and /etc/logrotate.d. I didnt find any information with command "man logrotate".
 
Old 02-20-2015, 10:58 AM   #4
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 7,988
Blog Entries: 11

Rep: Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169Reputation: 2169
http://manpages.ubuntu.com/manpages/...grotate.8.html
 
Old 02-23-2015, 07:29 AM   #5
neo4891
LQ Newbie
 
Registered: Dec 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hi All,

This is what I got from logrotate.conf.
weekly

rotate 4

create

compress

include /etc/logrotate.d

It seems by default, there will be file 5 log files a week.
After one week, it will clear older one.
In my case each log file was 50MB of size. And there are 5 instance of each. like /var/log/secure, secure.1, secure.2, secure.3 and secure.4.

This appears to be an expected behavior. Isnt it?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between /var/log/btmp and /var/log/secure neo4891 Linux - Newbie 4 02-20-2015 02:32 PM
/var/log/secure johnynixon Linux - Security 8 08-07-2009 05:58 AM
Can Samhain log my entries in /var/log/secure and /var/log/mesage to a central server abefroman Linux - Software 2 04-13-2008 04:13 PM
/var/log/secure ??? MikeFoo1 Linux - Security 2 06-22-2005 03:42 AM
/var/log/secure dragon Linux - Security 6 12-02-2003 08:45 AM


All times are GMT -5. The time now is 01:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration