From: Victor Julien Date: Wed, 15 May 2024 09:12:45 +0000 (+0200) Subject: doc/userguide: document new threshold config options X-Git-Tag: suricata-8.0.0-beta1~1081 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e362a01f8d5cdccec84ff442bda8f22771294289;p=thirdparty%2Fsuricata.git doc/userguide: document new threshold config options --- diff --git a/doc/userguide/configuration/global-thresholds.rst b/doc/userguide/configuration/global-thresholds.rst index a5b3bd6d86..f78f6c552b 100644 --- a/doc/userguide/configuration/global-thresholds.rst +++ b/doc/userguide/configuration/global-thresholds.rst @@ -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 ---------------- diff --git a/doc/userguide/configuration/suricata-yaml.rst b/doc/userguide/configuration/suricata-yaml.rst index 8171d5c150..36107eeb5d 100644 --- a/doc/userguide/configuration/suricata-yaml.rst +++ b/doc/userguide/configuration/suricata-yaml.rst @@ -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 ~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/doc/userguide/rules/thresholding.rst b/doc/userguide/rules/thresholding.rst index 44a8aa5e92..e56830cb41 100644 --- a/doc/userguide/rules/thresholding.rst +++ b/doc/userguide/rules/thresholding.rst @@ -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`