From 70ed1c9af74746fdb6528563eee0299d91708803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Blondon?= Date: Fri, 17 Jan 2020 12:22:41 +0100 Subject: [PATCH] Add thread id for multithreaded Apache error log --- src/default-log-formats.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/default-log-formats.json b/src/default-log-formats.json index 494fdb27..a2cbdc83 100644 --- a/src/default-log-formats.json +++ b/src/default-log-formats.json @@ -546,7 +546,7 @@ "pattern" : "^(?\\w) \\[(?[^\\]]+)\\] (?.*)" }, "apache" : { - "pattern" : "^\\[(?[^\\]]+)\\] \\[(?:(?[^:]+):)?(?\\w+)\\](?: \\[pid (?\\d+)\\])?(?: \\[client (?[\\w\\.:\\-]+):(?\\d+)\\])? (?.*)" + "pattern" : "^\\[(?[^\\]]+)\\] \\[(?:(?[^:]+):)?(?\\w+)\\](?: \\[pid (?\\d+)(:tid (?\\d+))?\\])?(?: \\[client (?[\\w\\.:\\-]+):(?\\d+)\\])? (?.*)" } }, "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" } ] },