]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc/userguide: add info about --set and lists
authorJason Ish <jason.ish@oisf.net>
Wed, 16 Sep 2020 16:50:05 +0000 (10:50 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 28 Sep 2020 09:32:07 +0000 (11:32 +0200)
doc/userguide/partials/options.rst

index d61acad785aeeb4296bd18ae4ced7d6d8f560f03..cb871e16d06c6c609b054cb53ddd07205efad810 100644 (file)
 .. option:: --set <key>=<value>
 
    Set a configuration value. Useful for overriding basic
-   configuration parameters in the configuration. For example, to
-   change the default log directory::
+   configuration parameters. For example, to change the default log
+   directory::
 
      --set default-log-dir=/var/tmp
 
+   This option cannot be used to add new entries to a list in the
+   configuration file, such as a new output. It can only be used to
+   modify a value in a list that already exists.
+
+   For example, to disable the ``eve-log`` in the default
+   configuration file::
+
+     --set outputs.1.eve-log.enabled=no
+
+   Also note that the index values may change as the ``suricata.yaml``
+   is updated.
+
+   See the output of ``--dump-config`` for existing values that could
+   be modified with their index.
+
 .. option:: --engine-analysis
 
    Print reports on analysis of different sections in the engine and