----
For information about the ``pcre`` keyword, check the :doc:`pcre` page.
-
-fast_pattern
-------------
-
-For information about the ``fast_pattern`` keyword, check the
-:doc:`fast-pattern` page.
:maxdepth: 2
pcre
- fast-pattern
Payload keywords inspect the content of the payload of a packet or
stream.
----
For information about pcre check the :doc:`pcre` page.
-
-fast_pattern
-------------
-
-For information about fast_pattern check the :doc:`fast-pattern` page.
-Fast Pattern
-============
+=====================
+Prefiltering Keywords
+=====================
+
+.. _rules-keyword-fast_pattern:
+fast_pattern
+============
.. toctree::
fast-pattern-explained
keywords, and all mentioned HTTP-modifiers.
fast_pattern:only
------------------
+~~~~~~~~~~~~~~~~~
Sometimes a signature contains only one content. In that case it is
not necessary Suricata will check it any further after a match has
is still indicated with 'fast_pattern:only;'. Although Suricata does
not need fast_pattern:only, it does support it.
-Fast_pattern: 'chop'
---------------------
+fast_pattern:'chop'
+~~~~~~~~~~~~~~~~~~~~
If you do not want the MPM to use the whole content, you can use
fast_pattern 'chop'.
content: “aaaaaaaaabc”; fast_pattern:8,4;
This way, MPM uses only the last four characters.
+
+
+prefilter
+=========
+The prefilter engines for other non-MPM keywords can be enabled in specific rules by using the 'prefilter' keyword.
+
+In the following rule the TTL test will be used in prefiltering instead of the single byte pattern:
+
+::
+
+ alert ip any any -> any any (ttl:123; prefilter; content:"a"; sid:1;)
+
+For more information on how to configure the prefilter engines, see :ref:`suricata-yaml-prefilter`
+++ /dev/null
-Prefilter
-=========
-
-The prefilter engines for other non-MPM keywords can be enabled in specific rules by using the 'prefilter' keyword.
-
-In the following rule the TTL test will be used in prefiltering instead of the single byte pattern:
-
-::
-
- alert ip any any -> any any (ttl:123; prefilter; content:"a"; sid:1;)
-
-For more information on how to configure the prefilter engines, see :ref:`suricata-yaml-prefilter`
-