]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc/output: Document multithreaded eve option
authorJeff Lucovsky <jeff@lucovsky.org>
Thu, 30 Jul 2020 11:08:12 +0000 (07:08 -0400)
committerVictor Julien <victor@inliniac.net>
Sun, 2 Aug 2020 18:09:21 +0000 (20:09 +0200)
doc/userguide/output/eve/eve-json-output.rst
doc/userguide/partials/eve-log.yaml

index badc14874d2544aa8f03cd9f8e167bd2c8262f09..a8c7ce9320b410f59dbd3a1ee51c70123bf581af 100644 (file)
@@ -24,6 +24,9 @@ Output types::
 
       filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
       filename: eve.json
+      # Enable for multi-threaded eve.json output; output files are suffixed
+      # with an identifier, e.g., eve.json.9.. Default: off
+      #threaded: off
       #prefix: "@cee: " # prefix to prepend to each log entry
       # the following are valid when type: syslog above
       #identity: "suricata"
@@ -298,6 +301,25 @@ modifiers.
 
 .. _output_eve_rotate:
 
+Threaded file output
+~~~~~~~~~~~~~~~~~~~~
+
+By default, all output is written to the named filename in the outputs section. The ``threaded`` option enables
+each output thread to write to individual files prefixed with the configured ``filenmae``.
+
+::
+
+   outputs:
+     - eve-log:
+         filename: eve.json
+         threaded: on
+
+This example will cause each Suricata thread to write to its own "eve.json" file. Filenames are constructed
+by adding a suffix with the thread id. For example, the thread with id 7 would write to `eve.json.7`.
+
+With ``threaded`` enabled, the output will be split among many files -- each having the same prefix and a unique suffix -- and
+the aggregate of each file's contents must be treated together.
+
 Rotate log file
 ~~~~~~~~~~~~~~~
 
index f4b3c7e15aa5a1003cc2d99c01f59a9b76d79088..d90e409eafc44a230c5a68026fdfe8060a4c7424 100644 (file)
@@ -4,6 +4,9 @@ outputs:
       enabled: yes
       filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
       filename: eve.json
+      # Enable for multi-threaded eve.json output; output files are suffixed
+      # with an identifier, e.g., eve.json.9.
+      #threaded: false
       #prefix: "@cee: " # prefix to prepend to each log entry
       # the following are valid when type: syslog above
       #identity: "suricata"