Help Wanted: Clarify Audit Logging Configuration Placement
See original GitHub issueIn the Audit Log v2 docs under Configuring Audit Log in Mattermost it says this:
Open config.json and navigate to the audit settings under ExperimentalAuditSettings. Within the setting AdvancedLoggingConfig you are able to specifiy a filespec to another config file, a database DSN, or JSON.
However, it does not provide an example of what this looks like in the config.json
, nor a reference to describe what a filespec
means.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8 (5 by maintainers)
Top Results From Across the Web
How to change the log location for Audit.log
Option 1: With a configuration change the location of all Sitefinity logs can be changed by moving all logs to a database using...
Read more >Vertex AI audit logging information - Google Cloud
If you're looking for information on audit logs created by Vertex AI Workbench, see the audit logging pages for managed notebooks or user-managed...
Read more >Issues · mattermost/docs - GitHub
Help Wanted: Improve Kubernetes Operator product documentation Area/Content ... Help Wanted: Clarify Audit Logging Configuration Placement ...
Read more >Audit events - GitLab Docs
The Audit Events API returns dates and times in UTC by default, or the configured time zone on a self-managed GitLab instance. In...
Read more >MariaDB Audit Plugin - Log Settings
Because of the TABLE option, you may disable query logging and still know who accessed which tables. You might want to disable QUERY...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Gregesp I was able to get the audit logging to work with configuration in database like this:
First, put the audit logging settings into a JSON file, e.g.
audit_logging.json
Next, run this command to use set a shell variable to the escaped JSON using
jq
Then, run this command to set the configuration value:
If you are trying to automate deployment, you can use
mmctl --local
and enable Local Mode@untergeek, when embedding the AdvancedLoggingConfig in
config.json
the config should be embedded as a string containing escaped JSON. I know this is not ideal, and I’ll create a ticket to allow non-escaped JSON embedding, but for now that is what the code will accept. A tool like this https://www.freeformatter.com/json-escape.html can be used to escape the JSON to something that be included as a string.