annotate misc/lnav/prosody.json @ 5787:e79f9dec35c0

mod_c2s_conn_throttle: Reduce log level from error->info Our general policy is that "error" should never be triggerable by remote entities, and that it is always about something that requires admin intervention. This satisfies neither condition. The "warn" level can be used for unexpected events/behaviour triggered by remote entities, and this could qualify. However I don't think failed auth attempts are unexpected enough. I selected "info" because it is what is also used for other notable session lifecycle events.
author Matthew Wild <mwild1@gmail.com>
date Thu, 07 Dec 2023 15:46:50 +0000
parents 1be6e375a7c2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4880
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 {
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2 "$schema" : "https://lnav.org/schemas/format-v1.schema.json",
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 "prosody_log" : {
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 "body-field" : "message",
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 "description" : "The Prosody IM server log format",
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6 "level" : {
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
7 "debug" : "^debug$",
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8 "error" : "^error$",
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
9 "info" : "^info$",
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
10 "warning" : "^warn$"
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11 },
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
12 "level-field" : "loglevel",
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13 "multiline" : false,
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 "ordered-by-time" : true,
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15 "regex" : {
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
16 "standard" : {
5497
1be6e375a7c2 misc/lnav: Fix delimiting of timestamp in pattern
Kim Alvefur <zash@zash.se>
parents: 5496
diff changeset
17 "pattern" : "^(?<timestamp>\\w{3} \\d{2} \\d{2}:\\d{2}:\\d{2}\\s+)(?<loggername>\\S+)\\s+(?<loglevel>debug|info|warn|error)\\s+(?<message>.+)$"
4880
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
18 }
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
19 },
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
20 "sample" : [
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
21 {
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
22 "line" : "Jan 31 11:07:34 c2s565063fff480\tinfo\tClient connected"
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
23 }
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
24 ],
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
25 "timestamp-field" : "timestamp",
5496
3e6d1e248dc1 misc/lnav: Fix timestamp-format to be an array as per schema
Kim Alvefur <zash@zash.se>
parents: 4880
diff changeset
26 "timestamp-format" : [
3e6d1e248dc1 misc/lnav: Fix timestamp-format to be an array as per schema
Kim Alvefur <zash@zash.se>
parents: 4880
diff changeset
27 "%b %d %H:%M:%S "
3e6d1e248dc1 misc/lnav: Fix timestamp-format to be an array as per schema
Kim Alvefur <zash@zash.se>
parents: 4880
diff changeset
28 ],
4880
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
29 "title" : "Prosody log",
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
30 "url" : "https://prosody.im/doc/logging",
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
31 "value" : {
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
32 "loggername" : {
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
33 "identifier" : true,
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
34 "kind" : "string"
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
35 },
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
36 "payload" : {
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
37 "kind" : "xml"
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
38 }
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
39 }
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
40 }
f64d13d9b76b misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff changeset
41 }