Add thread id for multithreaded Apache error log

This commit is contained in:
Stéphane Blondon 2020-01-17 12:22:41 +01:00
parent c048290474
commit 70ed1c9af7

View File

@ -546,7 +546,7 @@
"pattern" : "^(?<level>\\w) \\[(?<timestamp>[^\\]]+)\\] (?<body>.*)"
},
"apache" : {
"pattern" : "^\\[(?<timestamp>[^\\]]+)\\] \\[(?:(?<module>[^:]+):)?(?<level>\\w+)\\](?: \\[pid (?<pid>\\d+)\\])?(?: \\[client (?<c_ip>[\\w\\.:\\-]+):(?<c_port>\\d+)\\])? (?<body>.*)"
"pattern" : "^\\[(?<timestamp>[^\\]]+)\\] \\[(?:(?<module>[^:]+):)?(?<level>\\w+)\\](?: \\[pid (?<pid>\\d+)(:tid (?<tid>\\d+))?\\])?(?: \\[client (?<c_ip>[\\w\\.:\\-]+):(?<c_port>\\d+)\\])? (?<body>.*)"
}
},
"level-field": "level",
@ -559,6 +559,11 @@
"kind" : "integer",
"identifier" : true
},
"tid": {
"kind" : "integer",
"identifier" : true,
"description" : "The thread id"
},
"c_ip" : {
"kind" : "string",
"collate" : "ipaddress",
@ -586,6 +591,14 @@
{
"line": "[Thu Jan 17 02:42:49 2013] [notice] Digest: generating secret for digest authentication ...",
"level" : "notice"
},
{
"line" : "[Thu May 12 08:28:57.652118 2011] [core:error] [pid 8777:tid 4326490112] [client ::1:58619] File does not exist: /usr/local/apache2/htdocs/favicon.ico",
"level" : "error"
},
{
"line" : "[Thu Jan 02 22:23:07.368853 2020] [http:info] [pid 4784:tid 139701043291904] [client 66.220.149.10:45948] AH01593: chunked Transfer-Encoding forbidden: /",
"level" : "info"
}
]
},