docs/main/administration-guide/comply/compliance-monitoring.mdx
This feature enables compliance exports to be produced from the System Console, with all query and download actions logged in an audit history to enable oversight and prevent unauthorized queries.
Compliance exports can be filtered to date range, user account, and keyword list. Requests from queries can be downloaded from the user interface in .csv format, with a .json metafile documenting the query, as well as placed in a directory set by the system admin.
Daily compliance reports may also be generated, supporting integration with compliance solutions like Global Relay.
By default, all Mattermost deployments retain all messages, including edits and deletes, along with all files uploaded.
To enable the option to generate daily compliance reports:
./data/ if left blank.After enabling compliance reporting:
Your system will now export all new messages posted within a 24-hour period as a .csv file to the location specified in Compliance Report Directory. This feature can be used in conjunction with centralized compliance reporting systems that move.
Compliance reports are exports of all messages in Mattermost that match the report criteria. To run a report:
Go to System Console > Compliance > Compliance Monitoring.
Fill in the following:
- Job Name: Name the compliance report you are about to run (e.g. "HR Audit 455").
- From: Start date for search in YYYY-MM-DD format (e.g. "2016-03-11").
- To: End date of search in YYYY-MM-DD format (e.g. "2016-05-11").
- Emails: Comma-separated list of email addresses of users whose posted messages you want to search (e.g.
[email protected], [email protected]).- Keywords: Indicate the words that would be contained in a message for it to be included in the compliance report results.
Select Run Compliance Report.
The report will be queued in the display below the fields described above. The properties of each compliance report run is explained as follows:
running indicates the report is being run; finished indicates the report is complete and ready for download.adhoc indicates the report was requested by completing query fields; daily indicates the report is a daily export.Each compliance report includes a Download link which downloads a compressed file named adhoc-[UNIQUE_ID].zip. Inside the file is meta.json, which includes the parameters of the search executed and posts.csv which includes the contents of messages found by the request.
meta.jsonThe meta.json file contains the following information about the compliance query:
posts.csv fileposts.csv contains the following information about the compliance query results, one search result per row:
Mattermost daily compliance reports are compatible with Global Relay compliance solutions through the conversion of Mattermost .CSV exports into Global Relay EML files.
We recommend using the new Compliance Export feature for Global Relay exports.