mirror of
https://github.com/tstack/lnav
synced 2024-11-17 15:29:40 +00:00
4.8 KiB
4.8 KiB
✘ error: invalid JSON
--> {test_dir}/bad-config-json/formats/invalid-json/format.json:4
| parse error: object key and value must be separated by a colon (':')
| ar_log": { "abc" } }
| (right here) ------^
|
⚠ warning: format file is missing “$schema” property
--> {test_dir}/bad-config-json/formats/invalid-json/format.json
= note: the schema specifies the supported format version and can be used with editors to automatically validate the file
= help: add the following property to the top-level JSON object:
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
✘ error: “abc(” is not a valid regular expression
reason: missing closing parenthesis
--> /invalid_key_log/level-pointer
| abc(
| ^ missing closing parenthesis
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:4
| "level-pointer": "abc(",
= help: Property Synopsis
/invalid_key_log/level-pointer
Description
A regular-expression that matches the JSON-pointer of the level property
✘ error: “def[ghi” is not a valid regular expression
reason: missing terminating ] for character class
--> /invalid_key_log/file-pattern
| def[ghi
| ^ missing terminating ] for character class
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:5
| "file-pattern": "def[ghi",
= help: Property Synopsis
/invalid_key_log/file-pattern
Description
A regular expression that restricts this format to log files with a matching name
⚠ warning: unexpected value for property “/invalid_key_log/value/test/identifiers”
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:14
| "identifiers": true
= help: Available Properties
kind <data-type>
collate <function>
unit/
identifier <bool>
foreign-key <bool>
hidden <bool>
action-list <string>
rewriter <command>
description <string>
✘ error: “-1.2” is not a valid value for “/invalid_key_log/timestamp-divisor”
reason: value cannot be less than or equal to zero
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:25
| "timestamp-divisor": -1.2
= help: Property Synopsis
/invalid_key_log/timestamp-divisor <number>
Description
The value to divide a numeric timestamp by in a JSON log.
✘ error: “foobar_log” is not a valid log format
reason: no regexes specified
--> {test_dir}/bad-config-json/formats/invalid-json/format.json:3
✘ error: “foobar_log” is not a valid log format
reason: log message samples must be included in a format definition
--> {test_dir}/bad-config-json/formats/invalid-json/format.json:3
✘ error: invalid pattern: “/invalid_key_log/regex/foo”
reason: no timestamp capture found in the pattern
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:4
= help: all log messages need a timestamp
✘ error: “invalid_key_log” is not a valid log format
reason: structured logs cannot have regexes
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:4
✘ error: invalid line format element “/invalid_key_log/line-format/0/field”
reason: “non-existent” is not a defined value
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:22
--> {test_dir}/bad-config-json/formats/invalid-json/format.json:4
| parse error: object key and value must be separated by a colon (':')
| ar_log": { "abc" } }
| (right here) ------^
|
⚠ warning: format file is missing “$schema” property
--> {test_dir}/bad-config-json/formats/invalid-json/format.json
= note: the schema specifies the supported format version and can be used with editors to automatically validate the file
= help: add the following property to the top-level JSON object:
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
✘ error: “abc(” is not a valid regular expression
reason: missing closing parenthesis
--> /invalid_key_log/level-pointer
| abc(
| ^ missing closing parenthesis
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:4
| "level-pointer": "abc(",
= help: Property Synopsis
/invalid_key_log/level-pointer
Description
A regular-expression that matches the JSON-pointer of the level property
✘ error: “def[ghi” is not a valid regular expression
reason: missing terminating ] for character class
--> /invalid_key_log/file-pattern
| def[ghi
| ^ missing terminating ] for character class
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:5
| "file-pattern": "def[ghi",
= help: Property Synopsis
/invalid_key_log/file-pattern
Description
A regular expression that restricts this format to log files with a matching name
⚠ warning: unexpected value for property “/invalid_key_log/value/test/identifiers”
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:14
| "identifiers": true
= help: Available Properties
kind <data-type>
collate <function>
unit/
identifier <bool>
foreign-key <bool>
hidden <bool>
action-list <string>
rewriter <command>
description <string>
✘ error: “-1.2” is not a valid value for “/invalid_key_log/timestamp-divisor”
reason: value cannot be less than or equal to zero
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:25
| "timestamp-divisor": -1.2
= help: Property Synopsis
/invalid_key_log/timestamp-divisor <number>
Description
The value to divide a numeric timestamp by in a JSON log.
✘ error: “foobar_log” is not a valid log format
reason: no regexes specified
--> {test_dir}/bad-config-json/formats/invalid-json/format.json:3
✘ error: “foobar_log” is not a valid log format
reason: log message samples must be included in a format definition
--> {test_dir}/bad-config-json/formats/invalid-json/format.json:3
✘ error: invalid pattern: “/invalid_key_log/regex/foo”
reason: no timestamp capture found in the pattern
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:4
= help: all log messages need a timestamp
✘ error: “invalid_key_log” is not a valid log format
reason: structured logs cannot have regexes
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:4
✘ error: invalid line format element “/invalid_key_log/line-format/0/field”
reason: “non-existent” is not a defined value
--> {test_dir}/bad-config-json/formats/invalid-key/format.json:22