Snort mailing list archives

Re: logto 3.0


From: Russ via Snort-users <snort-users () lists snort org>
Date: Wed, 18 Oct 2017 23:46:39 -0400

Snort 3 does log "proactively" based on the event logging configuration. It does not support logging different SIDs to different files so you will need to select your events from your logs based on SID. Also note that not all events are caused by individual raw packets so you will need to look at the events to understand what happened (you may see buffer as opposed to a packet). Pcaps arent' the best choice.

If you provide more info on how you intend to process events we may have better advice.

On 10/18/17 9:56 PM, kahleong_fong via Snort-users wrote:
hi carter,

thank you for the infos. I was expecting the logto to work since running snort with different separate cmd options just to capture an event would be an adhoc/manual activity (ie. reactive) will be too late, as the event has gone by already. A method to log these events to pcap file as part of the rules would be a proactive approach when triggered by events.

thanks.
cheers.


------------------------------------------------------------------------
*From:* Carter Waxman (cwaxman) <cwaxman () cisco com>
*To:* kahleong_fong <kahleong_fong () yahoo com sg>; "snort-users () lists snort org" <snort-users () lists snort org>
*Sent:* Tuesday, 17 October 2017, 21:55
*Subject:* Re: [Snort-users] logto 3.0

For the sake of updating the list… The last post was incorrect
There are a couple things going on. Pasting your rule into logto.rules and running Snort like this:

$ src/snort -c install/etc/snort/snort.lua -R logto.rules

will get this:

Loading logto.rules:
ERROR: logto.rules:1 unknown rule keyword: logto.
ERROR: logto.rules:1 unknown rule keyword: sid=400000001.
Finished logto.rules.

So logto is no longer supported and your rule should look like this:

alert icmp any any -> any any ( sid:400000001; rev:1; )

One way to log to file is like this:

$ src/snort -c install/etc/snort/snort.lua -R logto.rules -r ~/Test/pcaps/ping.pcap --lua "alert_csv = { file = true }"

There are other options. The --lua option is shown here but that could be in your conf. See the manual for details, eg under Usage / Output Files. *From: *Snort-users <snort-users-bounces () lists snort org> on behalf of "Carter Waxman (cwaxman) via Snort-users" <snort-users () lists snort org>
*Reply-To: *"Carter Waxman (cwaxman)" <cwaxman () cisco com>
*Date: *Tuesday, October 17, 2017 at 9:42 AM
*To: *kahleong_fong <kahleong_fong () yahoo com sg>, "snort-users () lists snort org" <snort-users () lists snort org>
*Subject: *Re: [Snort-users] logto 3.0
Hello,
It looks like this was not added to 3.0, however it should have been. Thank you for finding this. We will be adding it back in the future. Until then, it is possible to configure default log paths with the -l command line option.
-Carter
*From: *Snort-users <snort-users-bounces () lists snort org> on behalf of kahleong_fong via Snort-users <snort-users () lists snort org>
*Reply-To: *kahleong_fong <kahleong_fong () yahoo com sg>
*Date: *Tuesday, October 17, 2017 at 3:24 AM
*To: *"snort-users () lists snort org" <snort-users () lists snort org>
*Subject: *[Snort-users] logto 3.0
hi all,
It has been awhile since 2004 that I touched snort! I remembered the logto option to capture pkts used to work. In the 3.0 release , I just cannot seem to get it to capture the pkts to the file. alert icmp any any -> any any (logto:/var/snort/log/logto_log;sid=400000001; rev:1;) I am able to see the alerts however no pkts in the logto_log file. please advise. regards




_______________________________________________
Snort-users mailing list
Snort-users () lists snort org
Go to this URL to change user options or unsubscribe:
https://lists.snort.org/mailman/listinfo/snort-users

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

_______________________________________________
Snort-users mailing list
Snort-users () lists snort org
Go to this URL to change user options or unsubscribe:
https://lists.snort.org/mailman/listinfo/snort-users

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

Current thread: