2015-07-20 13:33:52 +00:00
|
|
|
{
|
2020-12-19 06:35:23 +00:00
|
|
|
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
|
2015-07-20 13:33:52 +00:00
|
|
|
"bad_sample_log": {
|
|
|
|
"title": "invalid sample test",
|
|
|
|
"regex": {
|
|
|
|
"std": {
|
2020-12-19 06:35:23 +00:00
|
|
|
"pattern": "^(?<timestamp>\\d+): (?<pid>\\w+) (?<body>.*)$"
|
2015-07-20 13:33:52 +00:00
|
|
|
},
|
|
|
|
"semi": {
|
|
|
|
"pattern": "^(?<timestamp>\\d+); (?<body>\\w+)$"
|
2022-04-12 23:07:13 +00:00
|
|
|
},
|
|
|
|
"bad-time": {
|
|
|
|
"pattern": "^(?<timestamp>\\w+): (?<body>\\w+)$"
|
|
|
|
},
|
|
|
|
"with-level": {
|
|
|
|
"pattern": "^(?<timestamp>\\d+)\\| (?<level>\\w+) (?<body>\\w+)$"
|
2015-07-20 13:33:52 +00:00
|
|
|
}
|
|
|
|
},
|
2022-04-12 23:07:13 +00:00
|
|
|
"timestamp-format": [
|
2015-07-20 13:33:52 +00:00
|
|
|
"%i"
|
|
|
|
],
|
2020-12-19 06:35:23 +00:00
|
|
|
"value": {
|
|
|
|
"pid": {
|
|
|
|
"kind": "foo"
|
|
|
|
}
|
|
|
|
},
|
2022-04-12 23:07:13 +00:00
|
|
|
"level-field": "level",
|
2015-07-20 13:33:52 +00:00
|
|
|
"sample": [
|
2022-04-12 23:07:13 +00:00
|
|
|
{
|
|
|
|
"line": "abc: foo"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"line": "1428634687123| debug hello",
|
|
|
|
"level": "info"
|
|
|
|
},
|
2015-07-20 13:33:52 +00:00
|
|
|
{
|
|
|
|
"line": "1428634687123; foo bar"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|