mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* MM-23222 add file target (with rotation) to audit
* MM-23222 mirror syslog audits to local filesystem
* provides config options for file name, max size, max age
* rotates files based on max size and max age; delete as needed based on max backups
* include cluster id in log records
* sort meta data fields
22 lines
438 B
Go
22 lines
438 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package audit
|
|
|
|
const (
|
|
DefMaxQueueSize = 1000
|
|
|
|
KeyAPIPath = "api_path"
|
|
KeyEvent = "event"
|
|
KeyStatus = "status"
|
|
KeyUserID = "user_id"
|
|
KeySessionID = "session_id"
|
|
KeyClient = "client"
|
|
KeyIPAddress = "ip_address"
|
|
KeyClusterID = "cluster_id"
|
|
|
|
Success = "success"
|
|
Attempt = "attempt"
|
|
Fail = "fail"
|
|
)
|