LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 12-09-2005, 08:08 PM   #1
clintcan
LQ Newbie
 
Registered: Sep 2005
Posts: 7

Rep: Reputation: 0
how to logrotate auth.log files?


Hi guys,

I'm a bit new in creating logrotate files, but, is this the proper way to do it?

/var/log/auth.log {
missingok
daily
mail www@site.org
compress
rotate 4
}

Thanks.
 
Old 12-10-2005, 04:55 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
Looks good.
You may find the mail command doesn't send it outside of your box tho'

You could use nail..
eg..
postrotate
/usr/bin/nail -s "Dansguardian access.log" -a /var/log/dansguardian/access.log.1.gz -A andrzej www@site.org < /root/dg.msg
endscript

It requires detailing the -A account used and a message file to provide text fot the email body.
 
  


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
suspicious entry in /var/log/auth.log buehler Linux - Security 5 04-27-2005 05:11 PM
/var/log/auth.log entries buehler Linux - Security 1 04-23-2005 04:45 PM
weird stuff in /var/log/auth.log bschiett Linux - Security 3 03-12-2005 08:29 AM
logrotate log files - keeping in order when using grep or cat and bash dmellem Linux - Software 6 02-11-2005 01:05 PM
How to add my log files in logrotate Groucho Slackware 2 10-03-2003 08:16 AM


All times are GMT -5. The time now is 09:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration