[Snort-users] Monitor progress and ETA while running snort

Carter Waxman (cwaxman) cwaxman at cisco.com
Mon Oct 15 09:25:26 EDT 2018


2001-01-02  mfr <roesch at md.prestige.net> fy <fygrave at tigerteam.net>
    * Added SIGUSR1 handler, Snort will dump packet stats to console/syslog

We haven’t removed it, it’s too important for us. If you have snort output running to syslog or being piped somewhere, then that would be where to look.

From: John Byrne <jbyrnescu at gmail.com>
Date: Saturday, October 13, 2018 at 2:23 PM
To: Assaf <assaf.morami at gmail.com>
Cc: "Carter Waxman (cwaxman)" <cwaxman at cisco.com>, "snort-users at lists.snort.org" <snort-users at lists.snort.org>
Subject: Re: [Snort-users] Monitor progress and ETA while running snort

I’m assuming this doesn’t work for snort v2.9.11.1?  It doesn’t work for me. But it seems the snort 3 manual has this.

Do you know when this was added?


John Byrne

On Oct 12, 2018, at 6:49 AM, Assaf via Snort-users <snort-users at lists.snort.org<mailto:snort-users at lists.snort.org>> wrote:

Thanks! I didn't knew about the USR1 trick.
On Thu, Oct 11, 2018, 15:51 Carter Waxman (cwaxman) <cwaxman at cisco.com<mailto:cwaxman at cisco.com>> wrote:
kill –USR1 (snort pid) and snort will dump stats to stdout. See “Packet I/O Totals” for packets read so far.
--pcap-list will run a batch of pcaps, but be aware that Snort resets between each pcap so you would probably still need to do your merge.

From: Snort-users <snort-users-bounces at lists.snort.org<mailto:snort-users-bounces at lists.snort.org>> on behalf of Assaf via Snort-users <snort-users at lists.snort.org<mailto:snort-users at lists.snort.org>>
Reply-To: Assaf <assaf.morami at gmail.com<mailto:assaf.morami at gmail.com>>
Date: Thursday, October 11, 2018 at 12:56 AM
To: "snort-users at lists.snort.org<mailto:snort-users at lists.snort.org>" <snort-users at lists.snort.org<mailto:snort-users at lists.snort.org>>
Subject: [Snort-users] Monitor progress and ETA while running snort

Hi, I just wanted to share how I monitor progress and ETA while running snort from a pcap file.

If I have only one pcap I use pipe viewer (the pv command) like this:

pv x.pcap | snort -r -

If I have more than one pcap, e.g. from a big tcpdump run, I merge all of them on the fly using joincap ( https://github.com/assafmo/joincap ) like this:

joincap *.pcap | pv -s $(du -bc *.pcap | awk '/total/{print $1}') | snort -r -

This way pv print progress and ETA information while snort is running. :-)

Shameless plug - I wrote joincap specifically for these kind of situations, because mergecap and tcpslice does not handle errors very well.
Snort-users mailing list
Snort-users at lists.snort.org<mailto:Snort-users at lists.snort.org>
Go to this URL to change user options or unsubscribe:

To unsubscribe, send an email to:
snort-users-leave at lists.snort.org

Please visit http://blog.snort.org to stay current on all the latest Snort news!

Please follow these rules: https://snort.org/faq/what-is-the-mailing-list-etiquette

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20181015/c256a39a/attachment.html>

More information about the Snort-users mailing list