lnav/test/expected/test_format_loader.sh_3f1d6f35e8a9ae4fd3e91ffaa82a037b5a847ab7.err
2022-08-01 14:56:48 -07:00

12 KiB

✘ error: “abc(def” is not a valid regular expression for property “/invalid_props_log/search-table/bad_table_regex/pattern
reason: missing )
--> {test_dir}/bad-config/formats/invalid-properties/format.json:24
| "pattern": "abc(def"
--> /invalid_props_log/search-table/bad_table_regex/pattern
| abc(def
| ^ missing )
= help: Property Synopsis
/invalid_props_log/search-table/bad_table_regex/pattern <regex>
Description
The regular expression for this search table.
✘ error: “^(?<timestamp>\d+: (?<body>.*)$” is not a valid regular expression for property “/bad_regex_log/regex/std/pattern
reason: missing )
--> {test_dir}/bad-config/formats/invalid-regex/format.json:6
| "pattern": "^(?<timestamp>\\d+: (?<body>.*)$"
--> /bad_regex_log/regex/std/pattern
| ^(?<timestamp>\d+: (?<body>.*)$
| ^ missing )
= help: Property Synopsis
/bad_regex_log/regex/std/pattern <message-regex>
Description
The regular expression to match a log message and capture fields.
✘ error: “(foo” is not a valid regular expression for property “/bad_regex_log/level/error
reason: missing )
--> {test_dir}/bad-config/formats/invalid-regex/format.json:13
| "error": "(foo"
--> /bad_regex_log/level/error
| (foo
| ^ missing )
= help: Property Synopsis
/bad_regex_log/level/error <pattern|integer>
Description
The regular expression used to match the log text for this level. For JSON logs with numeric levels, this should be the number for the corresponding level.
✘ error: “abc(” is not a valid regular expression for property “/bad_regex_log/highlights/foobar/pattern
reason: missing )
--> {test_dir}/bad-config/formats/invalid-regex/format.json:25
| "pattern": "abc("
--> /bad_regex_log/highlights/foobar/pattern
| abc(
| ^ missing )
= help: Property Synopsis
/bad_regex_log/highlights/foobar/pattern <regex>
Description
A regular expression to highlight in logs of this format.
✘ error: “foo” is not a valid value for option “/bad_sample_log/value/pid/kind
--> {test_dir}/bad-config/formats/invalid-sample/format.json:24
| "kind": "foo"
= help: Property Synopsis
/bad_sample_log/value/pid/kind <data-type>
Description
The type of data in the field
Allowed Values
string, integer, float, boolean, json, struct, quoted, xml
✘ error: 'bad' is not a supported log format $schema version
--> {test_dir}/bad-config/formats/invalid-schema/format.json:2
| "$schema": "bad"
= note: expecting one of the following $schema values:
https://lnav.org/schemas/format-v1.schema.json
= help: Property Synopsis
/$schema The URI of the schema for this file
Description
Specifies the type of this file
✘ error: invalid pattern: “incomplete-match
reason: pattern does not match entire message
--> {test_dir}/bad-config/formats/invalid-regex/format.json:20
| 1428634687123; foo
| ^ matched up to here
= note: incomplete-match = ^(?<timestamp>\d+);
= help: update the regular expression to fully capture the sample message
✘ error: invalid sample log message: "abc: foo"
reason: unrecognized timestamp -- abc
--> {test_dir}/bad-config/formats/invalid-sample/format.json:30
= note: the following custom formats were tried:
abc
^ %i matched up to here
= help: If the timestamp format is not supported by default, you can add a custom format with the “timestamp-format” property
✘ error: invalid sample log message: "1428634687123| debug hello"
reason: “debug” does not match the expected level of “info
--> {test_dir}/bad-config/formats/invalid-sample/format.json:33
= note: matched regex = with-level
captured level = “debug”
✘ error: invalid pattern: “with-level
reason: pattern does not match entire multiline sample message
--> {test_dir}/bad-config/formats/invalid-sample/format.json:37
= note: with-level = ^(?<timestamp>\d+)\| (?<level>\w+) (?<body>\w+)$
= help: use “.*” to match new-lines
✘ error: invalid sample log message: "1428634687123; foo bar"
reason: sample does not match any patterns
--> {test_dir}/bad-config/formats/invalid-sample/format.json:41
= note: the following shows how each pattern matched this sample:
1428634687123; foo bar
^ bad-time matched up to here
^ semi matched up to here
^ std matched up to here
^ with-level matched up to here
= note: bad-time = “^(?<timestamp>\w+): (?<body>\w+)$
semi = “^(?<timestamp>\d+); (?<body>\w+)$
std = “^(?<timestamp>\d+): (?<pid>\w+) (?<body>.*)$
with-level = “^(?<timestamp>\d+)\| (?<level>\w+) (?<body>\w+)$
 
✘ error: invalid value for property “/invalid_props_log/timestamp-field
reason: “ts” was not found in the pattern at /invalid_props_log/regex/std
--> {test_dir}/bad-config/formats/invalid-properties/format.json:4
= note: the following captures are available:
body, pid, timestamp
✘ error: “not a color” is not a valid color value for property “/invalid_props_log/highlights/hl1/color
reason: Unknown color: 'not a color'. See https://jonasjacek.github.io/colors/ for a list of supported color names
--> {test_dir}/bad-config/formats/invalid-properties/format.json:18
✘ error: “also not a color” is not a valid color value for property “/invalid_props_log/highlights/hl1/background-color
reason: Unknown color: 'also not a color'. See https://jonasjacek.github.io/colors/ for a list of supported color names
--> {test_dir}/bad-config/formats/invalid-properties/format.json:19
✘ error: “no_regexes_log” is not a valid log format
reason: no regexes specified
--> {test_dir}/bad-config/formats/no-regexes/format.json:4
✘ error: “no_regexes_log” is not a valid log format
reason: log message samples must be included in a format definition
--> {test_dir}/bad-config/formats/no-regexes/format.json:4
✘ error: “no_sample_log” is not a valid log format
reason: log message samples must be included in a format definition
--> {test_dir}/bad-config/formats/no-samples/format.json:4
✘ error: failed to compile SQL statement
reason: near "TALE": syntax error
--> {test_dir}/bad-config/formats/invalid-sql/init.sql:4
| -- comment test
| CREATE TALE invalid (x y z);
| ^ near "TALE": syntax error
✘ error: failed to execute SQL statement
reason: ✘ error: call to regexp_match(re, str) failed
| reason: missing )
--> {test_dir}/bad-config/formats/invalid-sql/init2.sql
| SELECT regexp_match('abc(', '123')
| FROM sqlite_master;