Skip to content

Commit a578b09

Browse files
catenacybervictorjulien
authored andcommitted
doc: improve documentation about guess-applayer-tx
Ticket: 7199
1 parent b025fe2 commit a578b09

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

doc/userguide/configuration/suricata-yaml.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ The detection-engine builds internal groups of signatures. Suricata loads signat
632632
toserver-groups: 25
633633
sgh-mpm-context: auto
634634
inspection-recursion-limit: 3000
635+
guess-applayer-tx: no
635636

636637
At all of these options, you can add (or change) a value. Most
637638
signatures have the adjustment to focus on one direction, meaning
@@ -666,6 +667,12 @@ complicated issues. It could end up in an 'endless loop' due to a bug,
666667
meaning it will repeat its actions over and over again. With the
667668
option inspection-recursion-limit you can limit this action.
668669

670+
The ``guess-applayer-tx`` option controls whether the engine will try to guess
671+
and tie a transaction to a given alert if the matching signature doesn't have
672+
app-layer keywords. If enabled, AND ONLY ONE LIVE TRANSACTION EXISTS, that
673+
transaction's data will be added to the alert metadata. Note that this may not
674+
be the expected data, from an analyst's perspective.
675+
669676
*Example 4 Detection-engine grouping tree*
670677

671678
.. image:: suricata-yaml/grouping_tree.png

doc/userguide/output/eve/eve-json-output.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ can be used to force the detect engine to tie a transaction
7171
to an alert.
7272
This transaction is not guaranteed to be the relevant one,
7373
depending on your use case and how you define relevant here.
74-
If there are multiple live transactions, none will get
75-
picked up.
76-
The alert event will have ``"tx_guessed": true`` to recognize
77-
these alerts.
78-
74+
**WARNING: If there are multiple live transactions, none will get
75+
picked up.** This is to reduce the chances of logging unrelated data, and may
76+
lead to alerts being logged without metadata, in some cases.
77+
The alert event will have ``tx_guessed: true`` to recognize
78+
such alerts.
7979

8080
Metadata::
8181

doc/userguide/upgrade.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ Upgrading to 7.0.8
6161
behavior.
6262
- Application layer metadata is logged with alerts by default **only for rules that
6363
use application layer keywords**. For other rules, the configuration parameter
64-
``detect.guess-applayer-tx`` can be used to force the detect engine to find a
65-
transaction, which is not guaranteed to be the one you expect.
64+
``detect.guess-applayer-tx`` can be used to force the detect engine to guess a
65+
transaction, which is not guaranteed to be the one you expect. **In this case,
66+
the engine will NOT log any transaction metadata if there is more than one
67+
live transaction, to reduce the chances of logging unrelated data.** This may
68+
lead to what looks like a regression in behavior, but it is a considered choice.
6669

6770
Upgrading 6.0 to 7.0
6871
--------------------

0 commit comments

Comments
 (0)