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

45 lines
1.1 KiB
JSON

{
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
"invalid_props_log": {
"title": "invalid properties",
"regex": {
"std": {
"pattern": "^(?<timestamp>\\d+): (?<pid>\\w+) (?<body>.*)$"
}
},
"timestamp-field": "ts",
"subsecond-field": "ts-sub",
"sample": [
{
"line": "1428634687123: 1234 abc"
}
],
"value": {
"non-existent": {
"kind": "string"
}
},
"highlights": {
"hl1": {
"color": "not a color",
"background-color": "also not a color"
}
},
"tags": {
"badtag": {
"paths": []
},
"badtag2": {
"pattern": ""
},
"badtag3": {
"pattern": "invalid(abc"
}
},
"search-table": {
"bad_table_regex": {
"pattern": "abc(def"
}
}
}
}