Last active
March 29, 2021 13:50
-
-
Save etam/63c012ad08fe9a4aa995a2acc82997e2 to your computer and use it in GitHub Desktop.
Lnav yagna format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://lnav.org/schemas/format-v1.schema.json", | |
"yagna_log" : { | |
"title" : "Yagna Log Format", | |
"regex" : { | |
"basic" : { | |
"pattern" : "^\\[(?<timestamp>\\d{4}-\\d{2}-\\d{2}(T| )\\d{2}:\\d{2}:\\d{2}(Z|,\\d{3})) (?<level>\\w+) +(?<component>[\\w:.]+)\\] (?<body>.*)$" | |
} | |
}, | |
"level" : { | |
"error" : "ERROR", | |
"warning" : "WARN", | |
"info": "INFO", | |
"debug": "DEBUG" | |
}, | |
"value" : { | |
"component" : { | |
"kind" : "string" | |
} | |
}, | |
"sample" : [ | |
{ | |
"line": "[2021-03-25T10:42:50Z INFO ya_market::db::dao::offer] Clean market offers: 2583 cleaned", | |
"level": "info" | |
}, | |
{ | |
"line": "[2021-03-24T23:10:30Z WARN ya_activity::provider::service] activity bbdac3b24c884f09aa913a98f8d77749 unresponsive after 5s", | |
"level": "warning" | |
}, | |
{ | |
"line": "[2021-03-25T10:47:48Z ERROR ya_service_bus::connection] protocol error Connection reset by peer (os error 104)", | |
"level": "error" | |
}, | |
{ | |
"line": "[2021-03-29 12:07:27,876 DEBUG yapapi.events] CommandStdOut(agr_id='71a994ba76fbf7c2f778b0c761e5bc17ad3a5414d3b2fe665b26bc58ee0469eb', task_id='1', cmd_idx=4, output='Fra:0 Mem:51.10M (0.00M, Peak 51.34M) ')", | |
"level": "debug" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment