mirror of
https://github.com/tstack/lnav
synced 2024-11-05 21:21:19 +00:00
Merge pull request #709 from sblondon/add_multithread_log_lnav
Add thread id for multithreaded Apache error log
This commit is contained in:
commit
eb426afe36
@ -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"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user