MM-22784 Advanced logging config for audit (#15076)
Adds the advanced logging config for audit. Existing support for auditing to a single file remains for E0 and E10 licenses instances, and a new config item ExperimentalAuditSettings.AdvancedLoggingConfig is added that behaves like LogSettings.AdvancedLoggingConfig. Supported destinations: - file - syslog (with out without TLS) - raw TCP socket (with out without TLS) ExperimentalAuditSettings.AdvancedLoggingConfig can contain a filespec to a config file, a database DSN, or JSON. Co-authored-by: Mattermod <mattermod@users.noreply.github.com> Co-authored-by: Claudio Costa <cstcld91@gmail.com>
Этот коммит содержится в:
@@ -214,10 +214,10 @@ type AppIface interface {
|
||||
IsUsernameTaken(name string) bool
|
||||
// LimitedClientConfigWithComputed gets the configuration in a format suitable for sending to the client.
|
||||
LimitedClientConfigWithComputed() map[string]string
|
||||
// LogAuditRec logs an audit record using default CLILevel.
|
||||
// LogAuditRec logs an audit record using default LvlAuditCLI.
|
||||
LogAuditRec(rec *audit.Record, err error)
|
||||
// LogAuditRecWithLevel logs an audit record using specified Level.
|
||||
LogAuditRecWithLevel(rec *audit.Record, level audit.Level, err error)
|
||||
LogAuditRecWithLevel(rec *audit.Record, level mlog.LogLevel, err error)
|
||||
// MakeAuditRecord creates a audit record pre-populated with defaults.
|
||||
MakeAuditRecord(event string, initialStatus string) *audit.Record
|
||||
// MarkChanelAsUnreadFromPost will take a post and set the channel as unread from that one.
|
||||
|
||||
Ссылка в новой задаче
Block a user