question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Help Wanted: Clarify Audit Logging Configuration Placement

See original GitHub issue

In 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:open
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
icelandercommented, Apr 25, 2022

@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

config=`jq -c '.' < ./audit_logging.json` 

Then, run this command to set the configuration value:

mmctl config set ExperimentalAuditSettings.AdvancedLoggingConfig $config

If you are trying to automate deployment, you can use mmctl --local and enable Local Mode

1reaction
wiggin77commented, Apr 4, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found