diff --git a/auditbeat/auditbeat.reference.yml b/auditbeat/auditbeat.reference.yml index 049ba139cac..3619003c146 100644 --- a/auditbeat/auditbeat.reference.yml +++ b/auditbeat/auditbeat.reference.yml @@ -790,5 +790,9 @@ logging.files: # Number of rotated log files to keep. Oldest files will be deleted first. #keepfiles: 7 + # The permissions mask to apply when rotating log files. The default value is 0600. + # Must be a valid Unix-style file permissions mask expressed in octal notation. + #permissions: 0600 + # Set to true to log messages in json format. #logging.json: false diff --git a/filebeat/filebeat.reference.yml b/filebeat/filebeat.reference.yml index 058d4d88dee..cf7cd8b6c96 100644 --- a/filebeat/filebeat.reference.yml +++ b/filebeat/filebeat.reference.yml @@ -1210,5 +1210,9 @@ logging.files: # Number of rotated log files to keep. Oldest files will be deleted first. #keepfiles: 7 + # The permissions mask to apply when rotating log files. The default value is 0600. + # Must be a valid Unix-style file permissions mask expressed in octal notation. + #permissions: 0600 + # Set to true to log messages in json format. #logging.json: false diff --git a/heartbeat/heartbeat.reference.yml b/heartbeat/heartbeat.reference.yml index c3b0ebdce58..ccef31e1b3e 100644 --- a/heartbeat/heartbeat.reference.yml +++ b/heartbeat/heartbeat.reference.yml @@ -939,5 +939,9 @@ logging.files: # Number of rotated log files to keep. Oldest files will be deleted first. #keepfiles: 7 + # The permissions mask to apply when rotating log files. The default value is 0600. + # Must be a valid Unix-style file permissions mask expressed in octal notation. + #permissions: 0600 + # Set to true to log messages in json format. #logging.json: false diff --git a/libbeat/_meta/config.reference.yml b/libbeat/_meta/config.reference.yml index 478a48e97cc..8a5e3ef02f5 100644 --- a/libbeat/_meta/config.reference.yml +++ b/libbeat/_meta/config.reference.yml @@ -725,5 +725,9 @@ logging.files: # Number of rotated log files to keep. Oldest files will be deleted first. #keepfiles: 7 + # The permissions mask to apply when rotating log files. The default value is 0600. + # Must be a valid Unix-style file permissions mask expressed in octal notation. + #permissions: 0600 + # Set to true to log messages in json format. #logging.json: false diff --git a/libbeat/docs/loggingconfig.asciidoc b/libbeat/docs/loggingconfig.asciidoc index 681bb909f30..5ed329723a9 100644 --- a/libbeat/docs/loggingconfig.asciidoc +++ b/libbeat/docs/loggingconfig.asciidoc @@ -139,13 +139,12 @@ in the range of 2 to 1024 files. [float] ==== `logging.files.permissions` -//REVIEWERS: Noticed that his is not in the beat.reference.yml file. Should it be? Or is the option old? - -The permission mask to apply when rotating log files. The default value is 0600. The - `permissions` options must be a valid Unix-style file permissions mask expressed +The permissions mask to apply when rotating log files. The default value is 0600. The + `permissions` option must be a valid Unix-style file permissions mask expressed in octal notation. In Go, numbers in octal notation must start with '0'. Examples: + * 0644: give read and write access to the file owner, and read access to all others. * 0600: give read and write access to the file owner, and no access to all others. * 0664: give read and write access to the file owner and members of the group diff --git a/metricbeat/metricbeat.reference.yml b/metricbeat/metricbeat.reference.yml index 482c60539c0..43031e761bb 100644 --- a/metricbeat/metricbeat.reference.yml +++ b/metricbeat/metricbeat.reference.yml @@ -1169,5 +1169,9 @@ logging.files: # Number of rotated log files to keep. Oldest files will be deleted first. #keepfiles: 7 + # The permissions mask to apply when rotating log files. The default value is 0600. + # Must be a valid Unix-style file permissions mask expressed in octal notation. + #permissions: 0600 + # Set to true to log messages in json format. #logging.json: false diff --git a/packetbeat/packetbeat.reference.yml b/packetbeat/packetbeat.reference.yml index 58e72b6228c..7f0237efa01 100644 --- a/packetbeat/packetbeat.reference.yml +++ b/packetbeat/packetbeat.reference.yml @@ -1177,5 +1177,9 @@ logging.files: # Number of rotated log files to keep. Oldest files will be deleted first. #keepfiles: 7 + # The permissions mask to apply when rotating log files. The default value is 0600. + # Must be a valid Unix-style file permissions mask expressed in octal notation. + #permissions: 0600 + # Set to true to log messages in json format. #logging.json: false diff --git a/winlogbeat/winlogbeat.reference.yml b/winlogbeat/winlogbeat.reference.yml index 668b3deac40..d2a530a4795 100644 --- a/winlogbeat/winlogbeat.reference.yml +++ b/winlogbeat/winlogbeat.reference.yml @@ -754,5 +754,9 @@ logging.files: # Number of rotated log files to keep. Oldest files will be deleted first. #keepfiles: 7 + # The permissions mask to apply when rotating log files. The default value is 0600. + # Must be a valid Unix-style file permissions mask expressed in octal notation. + #permissions: 0600 + # Set to true to log messages in json format. #logging.json: false