diff options
author | Joas Schilling <coding@schilljs.com> | 2022-01-19 18:16:09 +0300 |
---|---|---|
committer | Vincent Petry (Rebase PR Action) <PVince81@users.noreply.github.com> | 2022-02-16 16:52:21 +0300 |
commit | c612ae78d7e49e2c653fe961b33e57a4d09a2e71 (patch) | |
tree | a562604172a21ff394616fca3d9842a480072346 /config/config.sample.php | |
parent | 3f42547b0155d0cd7234505c89e54b121f41ac34 (diff) |
Allow write audit log to syslog and systemdlog
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'config/config.sample.php')
-rw-r--r-- | config/config.sample.php | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/config/config.sample.php b/config/config.sample.php index 05fdfd13d2a..432793c5787 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -838,6 +838,13 @@ $CONFIG = [ 'log_type' => 'file', /** + * This parameter determines where the audit logs are sent. See ``log_type`` for more information. + * + * Defaults to ``file`` + */ +'log_type_audit' => 'file', + +/** * Name of the file to which the Nextcloud logs are written if parameter * ``log_type`` is set to ``file``. * @@ -846,7 +853,15 @@ $CONFIG = [ 'logfile' => '/var/log/nextcloud.log', /** - * Log file mode for the Nextcloud loggin type in octal notation. + * Name of the file to which the audit logs are written if parameter + * ``log_type`` is set to ``file``. + * + * Defaults to ``[datadirectory]/audit.log`` + */ +'logfile_audit' => '/var/log/audit.log', + +/** + * Log file mode for the Nextcloud logging type in octal notation. * * Defaults to 0640 (writeable by user, readable by group). */ @@ -871,6 +886,16 @@ $CONFIG = [ 'syslog_tag' => 'Nextcloud', /** + * If you maintain different instances and aggregate the logs, you may want + * to distinguish between them. ``syslog_tag_audit`` can be set per instance + * with a unique id. Only available if ``log_type`` is set to ``syslog`` or + * ``systemd``. + * + * The default value is the value of ``syslog_tag``. + */ +'syslog_tag_audit' => 'Nextcloud', + +/** * Log condition for log level increase based on conditions. Once one of these * conditions is met, the required log level is set to debug. This allows to * debug specific requests, users or apps |