Mercurial > prosody-modules
annotate misc/lnav/prosody.json @ 5416:2393dbae51ed
mod_http_oauth2: Add option for specifying TTL of registered clients
Meant to simplify configuration, since TTL vs ignoring expiration is
expected to be the main thing one would want to configure.
Unsure what the implications of having unlimited lifetime of clients
are, given no way to revoke them currently, short of rotating the
signing secret.
On one hand, it would be annoying to have the client expire.
On the other hand, it is trivial to re-register it.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 04 May 2023 18:41:33 +0200 |
parents | f64d13d9b76b |
children | 3e6d1e248dc1 |
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" : { |
f64d13d9b76b
misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
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>.+)$" |
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", |
f64d13d9b76b
misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
26 "timestamp-format" : "%b %d %H:%M:%S ", |
f64d13d9b76b
misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
27 "title" : "Prosody log", |
f64d13d9b76b
misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
28 "url" : "https://prosody.im/doc/logging", |
f64d13d9b76b
misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
29 "value" : { |
f64d13d9b76b
misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
30 "loggername" : { |
f64d13d9b76b
misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
31 "identifier" : true, |
f64d13d9b76b
misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
32 "kind" : "string" |
f64d13d9b76b
misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
33 }, |
f64d13d9b76b
misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
34 "payload" : { |
f64d13d9b76b
misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
35 "kind" : "xml" |
f64d13d9b76b
misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
36 } |
f64d13d9b76b
misc/lnav: Attempt at log format description for lnav
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
37 } |
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 } |