Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ If you have never used `lnav` to inspect Canton or CometBFT logs, then we recomm
3. Create the following symlinks to automatically keep the format definitions up to date:
```
ln -sf $PWD/canton/canton-json.lnav.json $LNAV_CONFIG_DIR/formats/installed/canton_logstash_json.json
ln -sf $PWD/support/cometbft-json.lnav.json $LNAV_CONFIG_DIR/formats/installed/cometbft-json.json
ln -sf $PWD/network-health/cometbft-json.lnav.json $LNAV_CONFIG_DIR/formats/installed/cometbft-json.json
```
4. Type `lnav log/canton_network_test.clog` to inspect the test logs.
5. Take the time to familiarize yourself with docs for the `lnav` [UI](https://docs.lnav.org/en/latest/ui.html#ui)
Expand Down
77 changes: 77 additions & 0 deletions network-health/cometbft-json.lnav.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
"cometbft_json": {
"title": "CometBFT JSON Log",
"url": "https://github.com/DACH-NY/canton-drivers/tree/main/drivers/cometbft/canton-network/abci",
"description": "CometBFT log files",
"json": true,
"hide-extra": false,
"file-pattern": ".*cometbft.*\\.log.*",
"line-format": [
{ "field" : "ts" }, " [", { "field": "level", "text-transform": "uppercase" }, "] - ",
{ "field": "module" }, " (", {"field": "height", "default-value" : ""}, ") - ",
{ "field" : "_msg" }
],
"timestamp-field" : "ts",
"body-field" : "_msg",
"level-field" : "level",
"level" : {
"trace" : "trace",
"debug" : "debug",
"info" : "info",
"error" : "error",
"warning" : "warn"
},
"opid-field" : "height",
"value" : {
"msg" : {
"kind" : "string",
"identifier" : false
},
"module" : {
"kind" : "string",
"identifier" : true
},
"impl" : {
"kind" : "string",
"identifier" : true
},
"hash" : {
"kind" : "string",
"identifier" : true
},
"block_hash" : {
"kind" : "string",
"identifier" : true
},
"commit_round" : {
"kind" : "integer",
"identifier" : true
},
"round" : {
"kind" : "integer",
"identifier" : true
},
"height" : {
"kind" : "integer",
"identifier" : true
},
"current" : {
"kind" : "string",
"identifier" : true
},
"addr" : {
"kind" : "string",
"identifier" : true
},
"validator" : {
"kind" : "string",
"identifier" : true
},
"pubkey" : {
"kind" : "string",
"identifier" : true
}
}
}
}
Loading