]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc/userguide: document new threshold config options
authorVictor Julien <vjulien@oisf.net>
Wed, 15 May 2024 09:12:45 +0000 (11:12 +0200)
committerVictor Julien <vjulien@oisf.net>
Fri, 28 Jun 2024 07:46:34 +0000 (09:46 +0200)
doc/userguide/configuration/global-thresholds.rst
doc/userguide/configuration/suricata-yaml.rst
doc/userguide/rules/thresholding.rst

index a5b3bd6d86755d2e7f1da97addba1c9fb35399c7..f78f6c552b53b7b9524772738c169ea850ca2733 100644 (file)
@@ -6,6 +6,9 @@ Thresholds can be configured in the rules themselves, see
 their intelligence for creating a rule combined with a judgement on how often
 a rule will alert.
 
+Thresholds are tracked in a hash table that is sized according to configuration, see:
+:ref:`suricata-yaml-thresholds`.
+
 Threshold Config
 ----------------
 
index 8171d5c1508a55c8d9c769cfe0f5c9b22fa67163..36107eeb5d1b495b88677110358c4e1cfec5497c 100644 (file)
@@ -739,6 +739,22 @@ To let Suricata make these decisions set default to 'auto':
     prefilter:
       default: auto
 
+.. _suricata-yaml-thresholds:
+
+Thresholding Settings
+~~~~~~~~~~~~~~~~~~~~~
+
+Thresholding uses a central hash table for tracking thresholds of the types: by_src, by_dst, by_both.
+
+::
+
+  detect:
+    thresholds:
+      hash-size: 16384
+      memcap: 16mb
+
+``detect.thresholds.hash-size`` controls the number of hash rows in the hash table.
+``detect.thresholds.memcap`` controls how much memory can be used for the hash table and the data stored in it.
 
 Pattern matcher settings
 ~~~~~~~~~~~~~~~~~~~~~~~~
index 44a8aa5e92d4e4c9a532ca3d99462af2f89fa290..e56830cb419938201d11fd26efcd7f10e02696a7 100644 (file)
@@ -4,6 +4,9 @@ Thresholding Keywords
 Thresholding can be configured per rule and also globally, see
 :doc:`../configuration/global-thresholds`.
 
+Thresholds are tracked in a hash table that is sized according to configuration, see:
+:ref:`suricata-yaml-thresholds`.
+
 *Note: mixing rule and global thresholds is not supported in 1.3 and
 before. See bug #425.* For the state of the support in 1.4 see
 :ref:`global-thresholds-vs-rule-thresholds`