Snort mailing list archives

Re: Snort Logs


From: Demetri Mouratis <dmourati () cm math uiuc edu>
Date: Wed, 17 Sep 2003 13:31:43 -0500 (CDT)


On Wed, 17 Sep 2003, Keaton, Lindamaria wrote:

Hello,

I'm running snort 2.0 on Linux 9.0. Does anyone know how to rotate
/var/log/snort/alert when it reaches certain size?

You could use logrotate with the size option for this.

       "/var/log/snort/alert" {
           rotate 30
           size=100k
           postrotate
                                kill -HUP `pidof /usr/local/bin/snort`
           endscript
       }

And upgrade to snort 2.0.1 while you are at it.
---------------------------------------------------------------------
Demetri Mouratis
dmourati () linfactory com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: