lnav/test/bad-config/formats/invalid-sample/format.json

42 lines
1.1 KiB
JSON
Raw Normal View History

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