mirror of
https://github.com/tstack/lnav
synced 2024-11-17 15:29:40 +00:00
Add thread id for multithreaded Apache error log
This commit is contained in:
parent
c048290474
commit
70ed1c9af7
@ -546,7 +546,7 @@
|
|||||||
"pattern" : "^(?<level>\\w) \\[(?<timestamp>[^\\]]+)\\] (?<body>.*)"
|
"pattern" : "^(?<level>\\w) \\[(?<timestamp>[^\\]]+)\\] (?<body>.*)"
|
||||||
},
|
},
|
||||||
"apache" : {
|
"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",
|
"level-field": "level",
|
||||||
@ -559,6 +559,11 @@
|
|||||||
"kind" : "integer",
|
"kind" : "integer",
|
||||||
"identifier" : true
|
"identifier" : true
|
||||||
},
|
},
|
||||||
|
"tid": {
|
||||||
|
"kind" : "integer",
|
||||||
|
"identifier" : true,
|
||||||
|
"description" : "The thread id"
|
||||||
|
},
|
||||||
"c_ip" : {
|
"c_ip" : {
|
||||||
"kind" : "string",
|
"kind" : "string",
|
||||||
"collate" : "ipaddress",
|
"collate" : "ipaddress",
|
||||||
@ -586,6 +591,14 @@
|
|||||||
{
|
{
|
||||||
"line": "[Thu Jan 17 02:42:49 2013] [notice] Digest: generating secret for digest authentication ...",
|
"line": "[Thu Jan 17 02:42:49 2013] [notice] Digest: generating secret for digest authentication ...",
|
||||||
"level" : "notice"
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user