nest-log4j
{
"inputs": [
{
"detail": {
"IncludeEnv": {
"LOGGER": "nest-log4j"
},
"Stderr": true,
"BeginLineCheckLength": 15,
"Stdout": true,
"BeginLineRegex": "\\d{2}:\\d{2}:\\d{2},.*"
},
"type": "service_docker_stdout"
}
],
"processors": [
{
"detail": {
"KeepSource": true,
"NoMatchError": true,
"Keys": [
"time",
"level",
"class",
"line",
"message"
],
"NoKeyError": true,
"Regex": "(\\d{2}:\\d{2}:\\d{2},\\d{1,3})\\s+(\\w+)\\s(.+?):(\\d+)\\s-\\s(.*)",
"SourceKey": "content"
},
"type": "processor_regex"
}
]
}
spring-logback
{
"inputs": [
{
"detail": {
"IncludeEnv": {
"LOGGER": "spring-logback"
},
"Stderr": true,
"BeginLineCheckLength": 15,
"Stdout": true,
"BeginLineRegex": "\\d{4}-\\d{2}-\\d{2} .*"
},
"type": "service_docker_stdout"
}
],
"processors": [
{
"detail": {
"KeepSource": true,
"NoMatchError": true,
"timeKey": "time",
"timeFormat": "%Y-%m-%d %H:%M:%S",
"Keys": [
"time",
"level",
"pid",
"thread",
"class",
"message"
],
"NoKeyError": true,
"Regex": "(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{1,3})\\s+(\\w+)\\s+(\\d+)\\s+---\\s+\\[\\s*([^\\]]+)\\]\\s([^ ]+)\\s*:\\s*(.*)",
"SourceKey": "content"
},
"type": "processor_regex"
}
]
}
swarm-logback
{
"inputs": [
{
"detail": {
"IncludeEnv": {
"LOGGER": "swarm-logback"
},
"BeginLineRegex": "\\d{4}-\\d{2}-\\d{2} .*",
"Stderr": true,
"BeginLineCheckLength": 15,
"Stdout": true,
"IncludeLabel": {},
"ExcludeLabel": {},
"ExcludeEnv": {},
"IncludeK8sLabel": {},
"ExcludeK8sLabel": {},
"ExternalEnvTag": {},
"ExternalK8sLabelTag": {}
},
"type": "service_docker_stdout"
}
],
"processors": [
{
"detail": {
"SourceKey": "content",
"Regex": "(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2},\\d{1,3})\\s+(\\w+)\\s+\\[(.*?),(.*?),(.*?)(,.*)?\\]\\s+---\\s+\\[\\s*([^\\]]+)\\]\\s([^\\s]+)\\s*:\\s*(.*)",
"Keys": [
"time",
"level",
"service",
"trace_id",
"span_id",
"export",
"thread",
"class",
"message"
],
"timeFormat": "%Y-%m-%d %H:%M:%S",
"KeepSource": true,
"NoKeyError": true,
"timeKey": "time",
"NoMatchError": true
},
"type": "processor_regex"
}
],
"global": {
"AlwaysOnline": true
}
}