mirror of
https://github.com/coltoneshaw/CS-Repro-Mattermost.git
synced 2025-12-23 10:01:30 +01:00
fixed the advanced logging settings
This commit is contained in:
@@ -88,7 +88,6 @@ services:
|
|||||||
- ./volumes/mattermost/bleve-indexes:/mattermost/bleve-indexes:rw
|
- ./volumes/mattermost/bleve-indexes:/mattermost/bleve-indexes:rw
|
||||||
- ./license.mattermost:/mattermost/config/license.mattermost-enterprise:ro
|
- ./license.mattermost:/mattermost/config/license.mattermost-enterprise:ro
|
||||||
- ./files/mattermost/samlCert.crt:/mattermost/config/saml-cert.crt
|
- ./files/mattermost/samlCert.crt:/mattermost/config/saml-cert.crt
|
||||||
- ./files/mattermost/advancedLogging.json:/mattermost/config/advancedLogging.json:ro
|
|
||||||
- ./files/mattermost/defaultConfig.json:/mattermost/config/defaultConfig.json:ro
|
- ./files/mattermost/defaultConfig.json:/mattermost/config/defaultConfig.json:ro
|
||||||
- ./files/mattermost/replicaConfig.json:/mattermost/config/replicaConfig.json:ro
|
- ./files/mattermost/replicaConfig.json:/mattermost/config/replicaConfig.json:ro
|
||||||
- ./files/mattermost/rtcdConfig.json:/mattermost/config/rtcdConfig.json:ro
|
- ./files/mattermost/rtcdConfig.json:/mattermost/config/rtcdConfig.json:ro
|
||||||
@@ -227,7 +226,6 @@ services:
|
|||||||
- ./volumes/mattermost_2/bleve-indexes:/mattermost/bleve-indexes:rw
|
- ./volumes/mattermost_2/bleve-indexes:/mattermost/bleve-indexes:rw
|
||||||
- ./license.mattermost:/mattermost/config/license.mattermost-enterprise:ro
|
- ./license.mattermost:/mattermost/config/license.mattermost-enterprise:ro
|
||||||
- ./files/mattermost/samlCert.crt:/mattermost/config/saml-cert.crt
|
- ./files/mattermost/samlCert.crt:/mattermost/config/saml-cert.crt
|
||||||
- ./files/mattermost/advancedLogging.json:/mattermost/config/advancedLogging.json:ro
|
|
||||||
- ./files/mattermost/defaultConfig.json:/mattermost/config/defaultConfig.json:ro
|
- ./files/mattermost/defaultConfig.json:/mattermost/config/defaultConfig.json:ro
|
||||||
- ./files/mattermost/replicaConfig.json:/mattermost/config/replicaConfig.json:ro
|
- ./files/mattermost/replicaConfig.json:/mattermost/config/replicaConfig.json:ro
|
||||||
|
|
||||||
@@ -263,7 +261,7 @@ services:
|
|||||||
mitmproxy:
|
mitmproxy:
|
||||||
container_name: cs-repro-mitmproxy
|
container_name: cs-repro-mitmproxy
|
||||||
image: mitmproxy/mitmproxy
|
image: mitmproxy/mitmproxy
|
||||||
command: mitmweb --web-host 0.0.0.0 --set confdir=/certs
|
command: mitmweb --web-host 0.0.0.0 --set confdir=/certs --mode transparent
|
||||||
volumes:
|
volumes:
|
||||||
- ./files/mitmproxy:/certs
|
- ./files/mitmproxy:/certs
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
{
|
|
||||||
"console-log": {
|
|
||||||
"Type": "console",
|
|
||||||
"Format": "json",
|
|
||||||
"Levels": [
|
|
||||||
{"ID": 10, "Name": "stdlog", "Stacktrace": false},
|
|
||||||
{"ID": 5, "Name": "debug", "Stacktrace": false},
|
|
||||||
{"ID": 4, "Name": "info", "Stacktrace": false, "color": 36},
|
|
||||||
{"ID": 3, "Name": "warn", "Stacktrace": false, "color": 33},
|
|
||||||
{"ID": 2, "Name": "error", "Stacktrace": true, "color": 31},
|
|
||||||
{"ID": 1, "Name": "fatal", "Stacktrace": true},
|
|
||||||
{"ID": 0, "Name": "panic", "Stacktrace": true}
|
|
||||||
],
|
|
||||||
"Options": {
|
|
||||||
"Out": "stdout"
|
|
||||||
},
|
|
||||||
"MaxQueueSize": 1000
|
|
||||||
},
|
|
||||||
"file-log": {
|
|
||||||
"Type": "file",
|
|
||||||
"Format": "json",
|
|
||||||
"Levels": [
|
|
||||||
{"ID": 10, "Name": "stdlog", "Stacktrace": false},
|
|
||||||
{"ID": 5, "Name": "debug", "Stacktrace": false},
|
|
||||||
{"ID": 4, "Name": "info", "Stacktrace": false},
|
|
||||||
{"ID": 3, "Name": "warn", "Stacktrace": false},
|
|
||||||
{"ID": 2, "Name": "error", "Stacktrace": true},
|
|
||||||
{"ID": 1, "Name": "fatal", "Stacktrace": true},
|
|
||||||
{"ID": 0, "Name": "panic", "Stacktrace": true}
|
|
||||||
],
|
|
||||||
"Options": {
|
|
||||||
"Compress": true,
|
|
||||||
"Filename": "./logs/traceLogs.json",
|
|
||||||
"MaxAgeDays": 15,
|
|
||||||
"MaxBackups": 3,
|
|
||||||
"MaxSizeMB": 100
|
|
||||||
},
|
|
||||||
"MaxQueueSize": 1000
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -15,7 +15,145 @@
|
|||||||
"EnableWebhookDebugging": true,
|
"EnableWebhookDebugging": true,
|
||||||
"EnableDiagnostics": true,
|
"EnableDiagnostics": true,
|
||||||
"EnableSentry": true,
|
"EnableSentry": true,
|
||||||
"AdvancedLoggingConfig": "./advancedLogging.json"
|
"AdvancedLoggingJSON": {
|
||||||
|
"console-log": {
|
||||||
|
"Type": "console",
|
||||||
|
"Format": "json",
|
||||||
|
"Levels": [
|
||||||
|
{
|
||||||
|
"ID": 10,
|
||||||
|
"Name": "stdlog",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 5,
|
||||||
|
"Name": "debug",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 4,
|
||||||
|
"Name": "info",
|
||||||
|
"Stacktrace": false,
|
||||||
|
"color": 36
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 3,
|
||||||
|
"Name": "warn",
|
||||||
|
"Stacktrace": false,
|
||||||
|
"color": 33
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 2,
|
||||||
|
"Name": "error",
|
||||||
|
"Stacktrace": true,
|
||||||
|
"color": 31
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 1,
|
||||||
|
"Name": "fatal",
|
||||||
|
"Stacktrace": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 0,
|
||||||
|
"Name": "panic",
|
||||||
|
"Stacktrace": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Options": {
|
||||||
|
"Out": "stdout"
|
||||||
|
},
|
||||||
|
"MaxQueueSize": 1000
|
||||||
|
},
|
||||||
|
"file-log": {
|
||||||
|
"Type": "file",
|
||||||
|
"Format": "json",
|
||||||
|
"Levels": [
|
||||||
|
{
|
||||||
|
"ID": 10,
|
||||||
|
"Name": "stdlog",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 5,
|
||||||
|
"Name": "debug",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 4,
|
||||||
|
"Name": "info",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 3,
|
||||||
|
"Name": "warn",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 2,
|
||||||
|
"Name": "error",
|
||||||
|
"Stacktrace": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 1,
|
||||||
|
"Name": "fatal",
|
||||||
|
"Stacktrace": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 0,
|
||||||
|
"Name": "panic",
|
||||||
|
"Stacktrace": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Options": {
|
||||||
|
"Compress": true,
|
||||||
|
"Filename": "./logs/advancedLogs.log",
|
||||||
|
"MaxAgeDays": 15,
|
||||||
|
"MaxBackups": 3,
|
||||||
|
"MaxSizeMB": 100
|
||||||
|
},
|
||||||
|
"MaxQueueSize": 1000
|
||||||
|
},
|
||||||
|
"ldap_logs": {
|
||||||
|
"Type": "file",
|
||||||
|
"Format": "json",
|
||||||
|
"Levels": [
|
||||||
|
{
|
||||||
|
"ID": 140,
|
||||||
|
"Name": "LDAPError",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 141,
|
||||||
|
"Name": "LDAPWarn",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 142,
|
||||||
|
"Name": "LDAPInfo",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 143,
|
||||||
|
"Name": "LDAPDebug",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 144,
|
||||||
|
"Name": "LDAPTrace",
|
||||||
|
"Stacktrace": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Options": {
|
||||||
|
"Compress": true,
|
||||||
|
"Filename": "./logs/advancedLdapLogs.log",
|
||||||
|
"MaxAgeDays": 15,
|
||||||
|
"MaxBackups": 3,
|
||||||
|
"MaxSizeMB": 100
|
||||||
|
},
|
||||||
|
"MaxQueueSize": 1000
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"AdvancedLoggingConfig": ""
|
||||||
},
|
},
|
||||||
"ExperimentalAuditSettings": {
|
"ExperimentalAuditSettings": {
|
||||||
"FileEnabled": false,
|
"FileEnabled": false,
|
||||||
@@ -25,7 +163,27 @@
|
|||||||
"FileMaxBackups": 0,
|
"FileMaxBackups": 0,
|
||||||
"FileCompress": false,
|
"FileCompress": false,
|
||||||
"FileMaxQueueSize": 1000,
|
"FileMaxQueueSize": 1000,
|
||||||
"AdvancedLoggingConfig": "./advancedLogging.json"
|
"AdvancedLoggingJSON": {
|
||||||
|
"audit_logs": {
|
||||||
|
"Type": "file",
|
||||||
|
"Format": "json",
|
||||||
|
"Levels": [
|
||||||
|
{ "id": 100, "name": "audit-api" },
|
||||||
|
{ "id": 101, "name": "audit-content" },
|
||||||
|
{ "id": 102, "name": "audit-permissions" },
|
||||||
|
{ "id": 103, "name": "audit-cli" }
|
||||||
|
],
|
||||||
|
"Options": {
|
||||||
|
"Compress": true,
|
||||||
|
"Filename": "./logs/advancedAudit.log",
|
||||||
|
"MaxAgeDays": 0,
|
||||||
|
"MaxBackups": 0,
|
||||||
|
"MaxSizeMB": 200
|
||||||
|
},
|
||||||
|
"MaxQueueSize": 1000
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"AdvancedLoggingConfig": ""
|
||||||
},
|
},
|
||||||
"NotificationLogSettings": {
|
"NotificationLogSettings": {
|
||||||
"EnableConsole": true,
|
"EnableConsole": true,
|
||||||
@@ -36,7 +194,105 @@
|
|||||||
"FileLevel": "INFO",
|
"FileLevel": "INFO",
|
||||||
"FileJson": true,
|
"FileJson": true,
|
||||||
"FileLocation": "",
|
"FileLocation": "",
|
||||||
"AdvancedLoggingConfig": "./advancedLogging.json"
|
"AdvancedLoggingJSON": {
|
||||||
|
"console-log": {
|
||||||
|
"Type": "console",
|
||||||
|
"Format": "json",
|
||||||
|
"Levels": [
|
||||||
|
{
|
||||||
|
"ID": 10,
|
||||||
|
"Name": "stdlog",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 5,
|
||||||
|
"Name": "debug",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 4,
|
||||||
|
"Name": "info",
|
||||||
|
"Stacktrace": false,
|
||||||
|
"color": 36
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 3,
|
||||||
|
"Name": "warn",
|
||||||
|
"Stacktrace": false,
|
||||||
|
"color": 33
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 2,
|
||||||
|
"Name": "error",
|
||||||
|
"Stacktrace": true,
|
||||||
|
"color": 31
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 1,
|
||||||
|
"Name": "fatal",
|
||||||
|
"Stacktrace": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 0,
|
||||||
|
"Name": "panic",
|
||||||
|
"Stacktrace": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Options": {
|
||||||
|
"Out": "stdout"
|
||||||
|
},
|
||||||
|
"MaxQueueSize": 1000
|
||||||
|
},
|
||||||
|
"file-log": {
|
||||||
|
"Type": "file",
|
||||||
|
"Format": "json",
|
||||||
|
"Levels": [
|
||||||
|
{
|
||||||
|
"ID": 10,
|
||||||
|
"Name": "stdlog",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 5,
|
||||||
|
"Name": "debug",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 4,
|
||||||
|
"Name": "info",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 3,
|
||||||
|
"Name": "warn",
|
||||||
|
"Stacktrace": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 2,
|
||||||
|
"Name": "error",
|
||||||
|
"Stacktrace": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 1,
|
||||||
|
"Name": "fatal",
|
||||||
|
"Stacktrace": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ID": 0,
|
||||||
|
"Name": "panic",
|
||||||
|
"Stacktrace": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Options": {
|
||||||
|
"Compress": true,
|
||||||
|
"Filename": "./logs/advancedNotificationLogs.log",
|
||||||
|
"MaxAgeDays": 15,
|
||||||
|
"MaxBackups": 3,
|
||||||
|
"MaxSizeMB": 100
|
||||||
|
},
|
||||||
|
"MaxQueueSize": 1000
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"LdapSettings": {
|
"LdapSettings": {
|
||||||
"Enable": true,
|
"Enable": true,
|
||||||
@@ -73,7 +329,7 @@
|
|||||||
"LoginButtonColor": "#0000",
|
"LoginButtonColor": "#0000",
|
||||||
"LoginButtonBorderColor": "#2389D7",
|
"LoginButtonBorderColor": "#2389D7",
|
||||||
"LoginButtonTextColor": "#2389D7",
|
"LoginButtonTextColor": "#2389D7",
|
||||||
"Trace": true
|
"Trace": false
|
||||||
},
|
},
|
||||||
"SamlSettings": {
|
"SamlSettings": {
|
||||||
"Enable": true,
|
"Enable": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user