]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: add documentation for eve-log file permissions 2626/head
authorMats Klepsland <mats.klepsland@gmail.com>
Wed, 22 Feb 2017 06:54:26 +0000 (07:54 +0100)
committerMats Klepsland <mats.klepsland@gmail.com>
Tue, 28 Mar 2017 11:07:39 +0000 (13:07 +0200)
doc/userguide/output/eve/eve-json-output.rst

index 800bf11750d4bccd88140ff0279d00ef50732a50..d89430ebef48b841f9d6021e84c3e6589d185540 100644 (file)
@@ -268,6 +268,23 @@ For most output types, you can add multiple:
 
 Except for ``drop`` for which only a single logger instance is supported.
 
+File permissions
+~~~~~~~~~~~~~~~~
+
+Log file permissions can be set individually for each logger. ``filemode`` can be used to
+control the permissions of a log file, e.g.:
+
+::
+
+  outputs:
+    - eve-log:
+        enabled: yes
+        filename: eve.json
+        filemode: 600
+
+The example above sets the file permissions on ``eve.json`` to 600, which means that it is
+only readable and writable by the owner of the file.
+
 JSON flags
 ~~~~~~~~~~