Skip to content

Commit 808bf33

Browse files
Add back cometbft-json.lnav.json
Still seems useful to have. [force] Signed-off-by: Martin Florian <martin.florian@digitalasset.com>
1 parent 54c26e5 commit 808bf33

File tree

2 files changed

+78
-1
lines changed

2 files changed

+78
-1
lines changed

TESTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ If you have never used `lnav` to inspect Canton or CometBFT logs, then we recomm
323323
3. Create the following symlinks to automatically keep the format definitions up to date:
324324
```
325325
ln -sf $PWD/canton/canton-json.lnav.json $LNAV_CONFIG_DIR/formats/installed/canton_logstash_json.json
326-
ln -sf $PWD/support/cometbft-json.lnav.json $LNAV_CONFIG_DIR/formats/installed/cometbft-json.json
326+
ln -sf $PWD/network-health/cometbft-json.lnav.json $LNAV_CONFIG_DIR/formats/installed/cometbft-json.json
327327
```
328328
4. Type `lnav log/canton_network_test.clog` to inspect the test logs.
329329
5. Take the time to familiarize yourself with docs for the `lnav` [UI](https://docs.lnav.org/en/latest/ui.html#ui)
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
3+
"cometbft_json": {
4+
"title": "CometBFT JSON Log",
5+
"url": "https://github.com/DACH-NY/canton-drivers/tree/main/drivers/cometbft/canton-network/abci",
6+
"description": "CometBFT log files",
7+
"json": true,
8+
"hide-extra": false,
9+
"file-pattern": ".*cometbft.*\\.log.*",
10+
"line-format": [
11+
{ "field" : "ts" }, " [", { "field": "level", "text-transform": "uppercase" }, "] - ",
12+
{ "field": "module" }, " (", {"field": "height", "default-value" : ""}, ") - ",
13+
{ "field" : "_msg" }
14+
],
15+
"timestamp-field" : "ts",
16+
"body-field" : "_msg",
17+
"level-field" : "level",
18+
"level" : {
19+
"trace" : "trace",
20+
"debug" : "debug",
21+
"info" : "info",
22+
"error" : "error",
23+
"warning" : "warn"
24+
},
25+
"opid-field" : "height",
26+
"value" : {
27+
"msg" : {
28+
"kind" : "string",
29+
"identifier" : false
30+
},
31+
"module" : {
32+
"kind" : "string",
33+
"identifier" : true
34+
},
35+
"impl" : {
36+
"kind" : "string",
37+
"identifier" : true
38+
},
39+
"hash" : {
40+
"kind" : "string",
41+
"identifier" : true
42+
},
43+
"block_hash" : {
44+
"kind" : "string",
45+
"identifier" : true
46+
},
47+
"commit_round" : {
48+
"kind" : "integer",
49+
"identifier" : true
50+
},
51+
"round" : {
52+
"kind" : "integer",
53+
"identifier" : true
54+
},
55+
"height" : {
56+
"kind" : "integer",
57+
"identifier" : true
58+
},
59+
"current" : {
60+
"kind" : "string",
61+
"identifier" : true
62+
},
63+
"addr" : {
64+
"kind" : "string",
65+
"identifier" : true
66+
},
67+
"validator" : {
68+
"kind" : "string",
69+
"identifier" : true
70+
},
71+
"pubkey" : {
72+
"kind" : "string",
73+
"identifier" : true
74+
}
75+
}
76+
}
77+
}

0 commit comments

Comments
 (0)