From: Jason Ish Date: Wed, 16 Sep 2020 16:50:05 +0000 (-0600) Subject: doc/userguide: add info about --set and lists X-Git-Tag: suricata-6.0.0~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f70e1f571e62141b17b9b876a8aebc4c22f5348f;p=thirdparty%2Fsuricata.git doc/userguide: add info about --set and lists --- diff --git a/doc/userguide/partials/options.rst b/doc/userguide/partials/options.rst index d61acad785..cb871e16d0 100644 --- a/doc/userguide/partials/options.rst +++ b/doc/userguide/partials/options.rst @@ -192,11 +192,26 @@ .. option:: --set = 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