Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-01-25 12:25:13 +0300
committerGitHub <noreply@github.com>2022-01-25 12:25:13 +0300
commit272f4cd6df791733a6376679bcc936fe492d9e61 (patch)
tree000f674ea3b3a141640ed2ad369389d8f6196eb6 /config
parent562c5730052b83a36b647bbd2db653dc57227f16 (diff)
parent497c5841fc60b587dba84dd9ea14e4cccee656fd (diff)
Merge pull request #30763 from nextcloud/feature/noid/allow-to-log-audit-to-syslog
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php27
1 files changed, 26 insertions, 1 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 3dcde590d89..1e883aef358 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -847,6 +847,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``.
*
@@ -855,7 +862,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).
*/
@@ -880,6 +895,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