Open smcvey opened 1 year ago
The suppression of internal events doesn't necessarily have to be for the sql.log.user_audit
option only, that was just an example. It can gave a wider scope if necessary to include all forms of auditing.
Related: https://github.com/cockroachdb/cockroach/pull/107282
Still need to filter out other internal queries (i.e. the console)
Is your feature request related to a problem? Please describe. When using
sql.log.user_audit
, the audit log records ALL queries generated by the user, even ones that are internally created by viewing the DBConsole etc. There should be an option to only record explicit SQL queries ran externally from clients.Describe the solution you'd like A new cluster setting, which works with
sql.log.user_audit
to disable the logging of anything where the query is generated internally (e.g. ApplicationName is one of$ internal-console
,$ internal-check-is-admin
, etc.Jira issue: CRDB-29113