Snort mailing list archives

Re: Rotating '-b' logs without stopping snort? (0% data loss...)


From: Dave Cinege <dcinege () psychosis com>
Date: Tue, 24 Jul 2001 17:26:46 -0400

"Migus, Adam" wrote:

-----Original Message-----
From: Dave Cinege [mailto:dcinege () psychosis com]
Sent: Tuesday, July 24, 2001 3:56 PM
To: snort-users () work mumble org uk
Cc: snort-users () lists sourceforge net
Subject: Re: [Snort-users] Rotating '-b' logs without stopping snort?
(0% data loss...)


snort-users () work mumble org uk wrote:


pig$ mkfifo /tmp/snort
pig$ snort -b /tmp/snort
pig$ cat /tmp/snort | ssh -e none remote.host cat
\>/var/log/snort/machine1

Actually I just thought of something similar to this last night...
Writing a small C proggie to read from a pipe, and have that handle
rotating the logs out, and think this is what I'll do...

I did something like that many moons ago to handle 2GB+ of Cisco PIX
firewall logs.  It worked wonderfully.  I did it in perl though...

I was considering just python'ing (perl yuck) it out, but figured
it would bottle neck snort under high load...

_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
http://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: