File: README.event_queue

package info (click to toggle)
snort 2.3.2-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 22,244 kB
  • ctags: 11,282
  • sloc: ansic: 70,376; sh: 4,364; makefile: 744; perl: 478; sql: 212
file content (69 lines) | stat: -rw-r--r-- 1,974 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Snort Multi-Event Logging (Event Queue)
---------------------------------------
Author: Daniel Roelker

Snort supports logging multiple events per packet/stream that are prioritized
with different insertion methods, such as max content length or event
ordering.  This document explains how to configure the event queue that
facilitates logging multiple events.

The general configuration of the event queue is as follows:

config event_queue: [max_events [size]] [log [size]] [order_events [TYPE]]

Event Queue Configuration Options
---------------------------------

There are three configuration options to the configuration parameter
'event_queue'.

max_queue
----------

This determines the maximum size of the event queue.  For example, if the
event queue has a max size of 8, only 8 events will be stored for a single
packet or stream.

The default value is 8.

log
---

This determines the number of events to log for a given packet or stream.
You can't log more than the max_event number that was specified.

The default value is 3.

order_events
------------

This argument determines the way that the incoming events are ordered.  We
currently have two different methods:

  * priority - The highest priority (1 being the highest) events are ordered
    first.

  * content_length - Rules are ordered before decode or preprocessor alerts,
    and rules that have a longer content are ordered before rules with
    shorter contents.

The method in which events are ordered does not affect rule types such as
pass, alert, log, etc.

The default value is content_length.

Examples
--------

# this is the default value configuration
config event_queue: max_queue 8 log 3 order_events content_length

# reconfigure the entire event queue
config event_queue: max_queue 10 log 3 order_events content_length

# leave defaults but change the way events are ordered
config event_queue: order_events priority

# change the number of events logged
config event_queue: log 2