Skip to content

Commit 9743de3

Browse files
Combs7thgithub-actions[bot]esethna
authored
Remove unused audit log file rotation settings from docs (#8771)
* Remove unused audit log file rotation settings from docs From Mattermost server v11.4, the following ExperimentalAuditSettings file rotation settings were removed as unused (mattermost/mattermost#35170): - FileMaxSizeMB - FileMaxAgeDays - FileMaxBackups - FileCompress File rotation for audit logs is now configured via AdvancedLoggingJSON. Updated files: - environment-configuration-settings.rst: Remove 4 rotation setting sections - experimental-configuration-settings.rst: Remove 4 rotation setting sections; update description to direct admins to AdvancedLoggingJSON for file rotation - logging.rst: Remove rotation settings from Cloud defaults list - telemetry.rst: Remove rotation settings from telemetry data list Co-authored-by: Combs7th <Combs7th@users.noreply.github.com> * Remove FileMaxQueueSize from ExperimentalAuditSettings docs (v11.6) Also remove FileMaxQueueSize from all doc locations: - environment-configuration-settings.rst: remove queue size section, add AdvancedLoggingJSON pointer note - experimental-configuration-settings.rst: fix intro text (was "file name and queue size", now "file name only"), remove queue size section - logging.rst: remove FileMaxQueueSize from cloud defaults list - telemetry.rst: remove enum FileMaxQueueSize from ExperimentalAuditSettings Aligns with mattermost/mattermost#35170 which removes 5 fields from ExperimentalAuditSettings: FileMaxSizeMB, FileMaxAgeDays, FileMaxBackups, FileCompress, FileMaxQueueSize. Co-authored-by: Combs7th <Combs7th@users.noreply.github.com> * Delete source/administration-guide/manage/telemetry.rst * Update environment-configuration-settings.rst * Restore telemetry.rst; remove only the 5 deprecated ExperimentalAuditSettings fields The page documents features (Security Alerts, Error & Diagnostic Reporting) still present in v11.6. Full deletion was out of PR scope. Only removes FileMaxSizeMB, FileMaxAgeDays, FileMaxBackups, FileCompress, FileMaxQueueSize from the telemetry enumeration list, matching the server-side removal in mattermost/mattermost#35170. Co-authored-by: Combs7th <Combs7th@users.noreply.github.com> * Remove audit logging settings duplicated in environment config settings page * Update logging.rst --------- Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Combs7th <Combs7th@users.noreply.github.com> Co-authored-by: Eric Sethna <14333569+esethna@users.noreply.github.com>
1 parent 771cddd commit 9743de3

3 files changed

Lines changed: 2 additions & 286 deletions

File tree

source/administration-guide/configure/environment-configuration-settings.rst

Lines changed: 1 addition & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -3660,97 +3660,7 @@ Audit file name
36603660

36613661
.. note::
36623662

3663-
The file name must be set to `enable <#auditlog-fileenabled>`__ audit logging.
3664-
3665-
.. config:setting:: auditlog-filemaxsizemb
3666-
:displayname: Maximum audit file size (Audit Logging)
3667-
:systemconsole: Compliance > Audit Logging
3668-
:configjson: .ExperimentalAuditSettings.FileMaxSizeMB
3669-
:environment: MM_EXPERIMENTALAUDITSETTINGS_FILEMAXSIZEMB
3670-
:description: The maximum size in megabytes for audit log files before they are rotated. Default is 100 MB.
3671-
3672-
Maximum file size
3673-
^^^^^^^^^^^^^^^^^
3674-
3675-
+--------------------------------------------------+----------------------------------------------------------------------------------------+
3676-
| The maximum size in megabytes for audit log | - System Config path: **Compliance > Audit Logging** |
3677-
| files before they are rotated. | - ``config.json`` setting: ``ExperimentalAuditSettings`` > ``FileMaxSizeMB`` > ``100`` |
3678-
| | - Environment variable: ``MM_EXPERIMENTALAUDITSETTINGS_FILEMAXSIZEMB`` |
3679-
| Numerical input. Default is **100** MB. | |
3680-
+--------------------------------------------------+----------------------------------------------------------------------------------------+
3681-
3682-
.. config:setting:: auditlog-filemaxagedays
3683-
:displayname: Maximum audit file age (Audit Logging)
3684-
:systemconsole: Compliance > Audit Logging
3685-
:configjson: .ExperimentalAuditSettings.FileMaxAgeDays
3686-
:environment: MM_EXPERIMENTALAUDITSETTINGS_FILEMAXAGEDAYS
3687-
:description: The maximum age in days for audit log files before they are deleted. Default is 0 (no limit).
3688-
3689-
Maximum file age
3690-
^^^^^^^^^^^^^^^^
3691-
3692-
+--------------------------------------------------+----------------------------------------------------------------------------------------+
3693-
| The maximum age in days for audit log files | - System Config path: **Compliance > Audit Logging** |
3694-
| before they are deleted. | - ``config.json`` setting: ``ExperimentalAuditSettings`` > ``FileMaxAgeDays`` > ``0`` |
3695-
| | - Environment variable: ``MM_EXPERIMENTALAUDITSETTINGS_FILEMAXAGEDAYS`` |
3696-
| Numerical input. Default is **0** (no limit). | |
3697-
+--------------------------------------------------+----------------------------------------------------------------------------------------+
3698-
3699-
.. config:setting:: auditlog-filemaxbackups
3700-
:displayname: Maximum audit file backups (Audit Logging)
3701-
:systemconsole: Compliance > Audit Logging
3702-
:configjson: .ExperimentalAuditSettings.FileMaxBackups
3703-
:environment: MM_EXPERIMENTALAUDITSETTINGS_FILEMAXBACKUPS
3704-
:description: The maximum number of audit log file backups to retain. Default is 0 (no limit).
3705-
3706-
Maximum file backups
3707-
^^^^^^^^^^^^^^^^^^^^
3708-
3709-
+--------------------------------------------------+----------------------------------------------------------------------------------------+
3710-
| The maximum number of audit log file backups | - System Config path: **Compliance > Audit Logging** |
3711-
| to retain. | - ``config.json`` setting: ``ExperimentalAuditSettings`` > ``FileMaxBackups`` > ``0`` |
3712-
| | - Environment variable: ``MM_EXPERIMENTALAUDITSETTINGS_FILEMAXBACKUPS`` |
3713-
| Numerical input. Default is **0** (no limit). | |
3714-
+--------------------------------------------------+----------------------------------------------------------------------------------------+
3715-
3716-
.. config:setting:: auditlog-filecompress
3717-
:displayname: Compress audit log files (Audit Logging)
3718-
:systemconsole: Compliance > Audit Logging
3719-
:configjson: .ExperimentalAuditSettings.FileCompress
3720-
:environment: MM_EXPERIMENTALAUDITSETTINGS_FILECOMPRESS
3721-
:description: Whether to compress rotated audit log files.
3722-
3723-
- **true**: Rotated audit log files are compressed.
3724-
- **false**: **(Default)** Rotated audit log files aren't compressed.
3725-
3726-
Compress audit log files
3727-
^^^^^^^^^^^^^^^^^^^^^^^^
3728-
3729-
+--------------------------------------------------+-------------------------------------------------------------------------------------------+
3730-
| Whether to compress rotated audit log files. | - System Config path: **Compliance > Audit Logging** |
3731-
| | - ``config.json`` setting: ``ExperimentalAuditSettings`` > ``FileCompress`` > ``false`` |
3732-
| - **true**: Rotated audit log files are | - Environment variable: ``MM_EXPERIMENTALAUDITSETTINGS_FILECOMPRESS`` |
3733-
| compressed. | |
3734-
| - **false**: **(Default)** Rotated audit log | |
3735-
| files aren't compressed. | |
3736-
+--------------------------------------------------+-------------------------------------------------------------------------------------------+
3737-
3738-
.. config:setting:: auditlog-filemaxqueuesize
3739-
:displayname: Audit log queue size (Audit Logging)
3740-
:systemconsole: Compliance > Audit Logging
3741-
:configjson: .ExperimentalAuditSettings.FileMaxQueueSize
3742-
:environment: MM_EXPERIMENTALAUDITSETTINGS_FILEMAXQUEUESIZE
3743-
:description: The maximum number of audit log entries that can be queued. Default is 1000.
3744-
3745-
Audit log queue size
3746-
^^^^^^^^^^^^^^^^^^^^
3747-
3748-
+--------------------------------------------------+--------------------------------------------------------------------------------------------+
3749-
| The maximum number of audit log entries that | - System Config path: **Compliance > Audit Logging** |
3750-
| can be queued. | - ``config.json`` setting: ``ExperimentalAuditSettings`` > ``FileMaxQueueSize`` > ``1000`` |
3751-
| | - Environment variable: ``MM_EXPERIMENTALAUDITSETTINGS_FILEMAXQUEUESIZE`` |
3752-
| Numerical input. Default is **1000**. | |
3753-
+--------------------------------------------------+--------------------------------------------------------------------------------------------+
3663+
When `output audit logs to file <#auditlog-fileenabled>`__ is enabled, the file name must be set. To configure file rotation and advanced audit log output, use the :ref:`AdvancedLoggingJSON <administration-guide/configure/environment-configuration-settings:output audit logs to multiple targets>` setting.
37543664

37553665
.. config:setting:: auditlog-certificate
37563666
:displayname: Audit log certificate (Audit Logging)

source/administration-guide/configure/experimental-configuration-settings.rst

Lines changed: 0 additions & 186 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Experimental configuration settings
77
Review and manage the following :ref:`experimental <administration-guide/manage/feature-labels:experimental>` configuration options in the System Console by selecting the **Product** |product-list| menu, selecting **System Console**, and then selecting **Experimental > Features**:
88

99
- `Experimental System Console configuration settings <#experimental-system-console-configuration-settings>`__
10-
- `Experimental audit logging configuration settings <#experimental-audit-logging-configuration-settings>`__
1110
- `Experimental job configuration settings <#experimental-job-configuration-settings>`__
1211
- `Experimental configuration settings for self-hosted deployments only <#experimental-configuration-settings-for-self-hosted-deployments-only>`__
1312

@@ -756,191 +755,6 @@ Enable Bleve for autocomplete queries
756755
| This feature's ``config.json`` setting is ``"EnableAutocomplete": false`` with options ``true`` and ``false``. |
757756
+-----------------------------------------------------------------------------------------------------------------+
758757

759-
----
760-
761-
Experimental audit logging configuration settings
762-
--------------------------------------------------------
763-
764-
Enable the following settings to output audit events in the System Console by going to **Compliance > Audit Logging**, or in the ``config.json`` file.
765-
766-
.. note::
767-
768-
The ability to enable and configure audit logging is currently in :ref:`Beta <administration-guide/manage/feature-labels:beta>`.
769-
770-
.. config:setting:: advanced-logging
771-
:displayname: Advanced Logging (Audit Logging > Cloud)
772-
:systemconsole: Experimental > Features
773-
:configjson: AdvancedLoggingJSON
774-
:environment: N/A
775-
:description: Output log and audit records to any combination of console, local file, syslog, and TCP socket targets for a Mattermost Cloud deployment.
776-
777-
Advanced logging
778-
~~~~~~~~~~~~~~~~
779-
780-
.. include:: ../../_static/badges/entry-ent.rst
781-
:start-after: :nosearch:
782-
783-
Output log and audit records to any combination of console, local file, syslog, and TCP socket targets for a Mattermost Cloud deployment. See the :ref:`advanced logging <administration-guide/manage/logging:advanced logging>` documentation for details about logging options.
784-
785-
.. config:setting:: enable-audit-logging
786-
:displayname: Enable audit logging (Audit Logging > Self-Hosted)
787-
:systemconsole: Experimental > Features
788-
:configjson: FileEnabled
789-
:environment: N/A
790-
:description: Write audit files locally for a self-hosted deployment.
791-
792-
Enable audit logging
793-
~~~~~~~~~~~~~~~~~~~~~
794-
795-
.. include:: ../../_static/badges/ent-plus.rst
796-
:start-after: :nosearch:
797-
798-
When audit logging is enabled in a self-hosted instance, you can specify size, backup interval, compression, maximium age to manage file rotation, and timestamps for audit logging, as defined below. You can specify these settings independently for audit events and AD/LDAP events.
799-
800-
**True**: Audit logging files are enabled, and audit files are written locally to a file for a self-hosted deployment.
801-
802-
**False**: Audit logging files aren't enabled, and audit logs aren't written locally to a file for a self-hosted deployment.
803-
804-
+--------------------------------------------------------------------------------------------------------------------------------------+
805-
| This feature's ``config.json`` setting is ``".ExperimentalAuditSettings.FileEnabled": false",`` with options ``true`` and ``false``. |
806-
+--------------------------------------------------------------------------------------------------------------------------------------+
807-
808-
.. config:setting:: file-name
809-
:displayname: File name (Audit Logging > Self-Hosted)
810-
:systemconsole: Experimental > Features
811-
:configjson: FileName
812-
:environment: N/A
813-
:description: Specify the path to the audit file for a self-hosted deployment.
814-
815-
File name
816-
~~~~~~~~~
817-
818-
.. include:: ../../_static/badges/ent-plus.rst
819-
:start-after: :nosearch:
820-
821-
Specify the path to the audit file for a self-hosted deployment.
822-
823-
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
824-
| This feature's ``config.json`` setting is ``".ExperimentalAuditSettings.FileName": ""`` with string input consisting of a user-defined path (e.g. ``/var/log/mattermost_audit.log``). |
825-
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
826-
827-
.. config:setting:: max-file-size
828-
:displayname: File max size MB (Audit Logging > Self-Hosted)
829-
:systemconsole: Experimental > Features
830-
:configjson: FileMaxSizeMB
831-
:environment: N/A
832-
:description: This is the maximum size (measured in megabytes) that the file can grow before triggering rotation for a self-hosted deployment.. Default is **100** MB.
833-
834-
Max file size
835-
~~~~~~~~~~~~~
836-
837-
.. include:: ../../_static/badges/ent-plus.rst
838-
:start-after: :nosearch:
839-
840-
This is the maximum size, in megabytes, that the file can grow before triggering rotation for a self-hosted deployment. The default setting is ``100``.
841-
842-
+---------------------------------------------------------------------------------------------------------------------+
843-
| This feature's ``config.json`` setting is ``".ExperimentalAuditSettings.FileMaxSizeMB": 100`` with numerical input. |
844-
+---------------------------------------------------------------------------------------------------------------------+
845-
846-
.. config:setting:: max-file-age
847-
:displayname: File max age days (Audit Logging > Self-Hosted)
848-
:systemconsole: Experimental > Features
849-
:configjson: FileMaxAgeDays
850-
:environment: N/A
851-
:description: This is the maximum age in days a file can reach before triggering rotation for a self-hosted deployment.. The default value is **0**, indicating no limit on the age.
852-
853-
Max file age
854-
~~~~~~~~~~~~~
855-
856-
.. include:: ../../_static/badges/ent-plus.rst
857-
:start-after: :nosearch:
858-
859-
This is the maximum age, in days, a file can reach before triggering rotation for a self-hosted deployment. The default value is ``0``, indicating no limit on the age.
860-
861-
+--------------------------------------------------------------------------------------------------------------------+
862-
| This feature's ``config.json`` setting is ``".ExperimentalAuditSettings.FileMaxAgeDays": 0`` with numerical input. |
863-
+--------------------------------------------------------------------------------------------------------------------+
864-
865-
.. config:setting:: maximum-file-backups
866-
:displayname: File max backups (Audit Logging > Self-Hosted)
867-
:systemconsole: Experimental > Features
868-
:configjson: FileMaxBackups
869-
:environment: N/A
870-
:description: This is the maximum number of rotated files kept for a self-hosted deployment. The oldest is deleted first. The default value is **0**, indicating no limit on the number of backups.
871-
872-
Maximum file backups
873-
~~~~~~~~~~~~~~~~~~~~
874-
875-
.. include:: ../../_static/badges/ent-plus.rst
876-
:start-after: :nosearch:
877-
878-
This is the maximum number of rotated files kept for a self-hosted deployment. The oldest is deleted first. The default value is ``0``, indicating no limit on the number of backups.
879-
880-
+--------------------------------------------------------------------------------------------------------------------+
881-
| This feature's ``config.json`` setting is ``".ExperimentalAuditSettings.FileMaxBackups": 0`` with numerical input. |
882-
+--------------------------------------------------------------------------------------------------------------------+
883-
884-
.. config:setting:: file-compression
885-
:displayname: File compress (Audit Logging > Self-Hosted)
886-
:systemconsole: Experimental > Features
887-
:configjson: FileCompress
888-
:environment: N/A
889-
:description: When ``true``, rotated files are compressed using ``gzip`` in a self-hosted deployment. Default value is **false**.
890-
891-
File compression
892-
~~~~~~~~~~~~~~~~
893-
894-
.. include:: ../../_static/badges/ent-plus.rst
895-
:start-after: :nosearch:
896-
897-
When ``true``, rotated files are compressed using ``gzip`` in a self-hosted deployment.
898-
899-
+-------------------------------------------------------------------------------------------------------------------------------------+
900-
| This feature's ``config.json`` setting is ``".ExperimentalAuditSettings.FileCompress": false`` with options ``true`` and ``false``. |
901-
+-------------------------------------------------------------------------------------------------------------------------------------+
902-
903-
.. config:setting:: maximum-file-queue
904-
:displayname: File max queue size (Audit Logging > Self-Hosted)
905-
:systemconsole: Experimental > Features
906-
:configjson: FileMaxQueueSize
907-
:environment: N/A
908-
:description: This setting determines how many audit records can be queued/buffered at any point in time when writing to a file for a self-hosted deployment. Default is **1000** records.
909-
910-
Maximum file queue
911-
~~~~~~~~~~~~~~~~~~~
912-
913-
.. include:: ../../_static/badges/ent-plus.rst
914-
:start-after: :nosearch:
915-
916-
This setting determines how many audit records can be queued/buffered at any point in time when writing to a file for a self-hosted deployment. The default is ``1000`` records.
917-
This setting can be left as default unless you are seeing audit write failures in the server log and need to adjust the number accordingly.
918-
919-
+-------------------------------------------------------------------------------------------------------------------------+
920-
| This feature's ``config.json`` setting is ``".ExperimentalAuditSettings.FileMaxQueueSize": 1000`` with numerical input. |
921-
+-------------------------------------------------------------------------------------------------------------------------+
922-
923-
.. config:setting:: audit-logging-certificate
924-
:displayname: Audit logging certificate upload (Audit Logging > Cloud Enterprise)
925-
:systemconsole: Audit Log Settings > Certificate
926-
:configjson: N/A
927-
:environment: N/A
928-
:description: Cloud Enterprise customers can upload and manage a certificate for audit logging encryption on Syslog or TCP logging targets.
929-
930-
Certificate
931-
~~~~~~~~~~~~
932-
933-
Cloud Enterprise customers can upload and manage a certificate for audit logging encryption on Syslog or TCP logging targets. The ability to upload a certificate is only available when the feature flag ``ExperimentalAuditSettingsSystemConsoleUI`` is enabled.
934-
935-
Upload the certificate PEM file in the System Console by going to **System Console > Audit Log Settings > Certificate** and selecting **File/Remove Certificate**. The certificate file can be stored in the filestore or stored locally on the filesystem.
936-
937-
.. config:setting:: advanced-logging
938-
:displayname: Advanced Logging (Audit Logging > Self-Hosted)
939-
:systemconsole: Experimental > Features
940-
:configjson: AdvancedLoggingJSON
941-
:environment: N/A
942-
:description: Output log and audit records to any combination of console, local file, syslog, and TCP socket targets for a Mattermost self-hosted deployment.
943-
944758
Experimental configuration settings for self-hosted deployments only
945759
--------------------------------------------------------------------
946760

source/administration-guide/manage/logging.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -235,15 +235,7 @@ You can enable and customize advanced audit logging in Mattermost to record acti
235235
.. note::
236236

237237
- From Mattermost v10.11, Cloud deployments include certificate-based audit logging capabilities not available within self-hosted deployments.
238-
- Cloud-based deployments use the following self-hosted audit logging default values:
239-
240-
- FileEnabled: false
241-
- FileMaxSizeMB: 100
242-
- FileMaxAgeDays: 0 (no limit)
243-
- FileMaxBackups: 0 (retain all)
244-
- FileCompress: false
245-
- FileMaxQueueSize: 1000
246-
238+
- Cloud-based deployments use the following self-hosted audit logging default values: `FileEnabled: false`
247239
- Cloud deployments can't configure local file-based audit logging, and all file-related settings are hidden.
248240

249241
----

0 commit comments

Comments
 (0)