summaryrefslogtreecommitdiffstats
path: root/docs/schemas
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:01:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:01:36 +0000
commit62e4c68907d8d33709c2c1f92a161dff00b3d5f2 (patch)
treeadbbaf3acf88ea08f6eeec4b75ee98ad3b07fbdc /docs/schemas
parentInitial commit. (diff)
downloadlnav-62e4c68907d8d33709c2c1f92a161dff00b3d5f2.tar.xz
lnav-62e4c68907d8d33709c2c1f92a161dff00b3d5f2.zip
Adding upstream version 0.11.2.upstream/0.11.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs/schemas')
-rw-r--r--docs/schemas/config-v1.schema.json804
-rw-r--r--docs/schemas/event-file-format-detected-v1.schema.json26
-rw-r--r--docs/schemas/event-file-open-v1.schema.json21
-rw-r--r--docs/schemas/event-log-msg-detected-v1.schema.json57
-rw-r--r--docs/schemas/event-session-loaded-v1.schema.json16
-rw-r--r--docs/schemas/format-v1.schema.json638
6 files changed, 1562 insertions, 0 deletions
diff --git a/docs/schemas/config-v1.schema.json b/docs/schemas/config-v1.schema.json
new file mode 100644
index 0000000..e2285cc
--- /dev/null
+++ b/docs/schemas/config-v1.schema.json
@@ -0,0 +1,804 @@
+{
+ "$id": "https://lnav.org/schemas/config-v1.schema.json",
+ "title": "https://lnav.org/schemas/config-v1.schema.json",
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "properties": {
+ "$schema": {
+ "title": "/$schema",
+ "description": "The URI that specifies the schema that describes this type of file",
+ "type": "string",
+ "examples": [
+ "https://lnav.org/schemas/config-v1.schema.json"
+ ]
+ },
+ "tuning": {
+ "description": "Internal settings",
+ "title": "/tuning",
+ "type": "object",
+ "properties": {
+ "archive-manager": {
+ "description": "Settings related to opening archive files",
+ "title": "/tuning/archive-manager",
+ "type": "object",
+ "properties": {
+ "min-free-space": {
+ "title": "/tuning/archive-manager/min-free-space",
+ "description": "The minimum free space, in bytes, to maintain when unpacking archives",
+ "type": "integer",
+ "minimum": 0
+ },
+ "cache-ttl": {
+ "title": "/tuning/archive-manager/cache-ttl",
+ "description": "The time-to-live for unpacked archives, expressed as a duration (e.g. '3d' for three days)",
+ "type": "string",
+ "examples": [
+ "3d",
+ "12h"
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "file-vtab": {
+ "description": "Settings related to the lnav_file virtual-table",
+ "title": "/tuning/file-vtab",
+ "type": "object",
+ "properties": {
+ "max-content-size": {
+ "title": "/tuning/file-vtab/max-content-size",
+ "description": "The maximum allowed file size for the content column",
+ "type": "integer",
+ "minimum": 0
+ }
+ },
+ "additionalProperties": false
+ },
+ "logfile": {
+ "description": "Settings related to log files",
+ "title": "/tuning/logfile",
+ "type": "object",
+ "properties": {
+ "max-unrecognized-lines": {
+ "title": "/tuning/logfile/max-unrecognized-lines",
+ "description": "The maximum number of lines in a file to use when detecting the format",
+ "type": "integer",
+ "minimum": 1
+ }
+ },
+ "additionalProperties": false
+ },
+ "remote": {
+ "description": "Settings related to remote file support",
+ "title": "/tuning/remote",
+ "type": "object",
+ "properties": {
+ "cache-ttl": {
+ "title": "/tuning/remote/cache-ttl",
+ "description": "The time-to-live for files copied from remote hosts, expressed as a duration (e.g. '3d' for three days)",
+ "type": "string",
+ "examples": [
+ "3d",
+ "12h"
+ ]
+ },
+ "ssh": {
+ "description": "Settings related to the ssh command used to contact remote machines",
+ "title": "/tuning/remote/ssh",
+ "type": "object",
+ "properties": {
+ "command": {
+ "title": "/tuning/remote/ssh/command",
+ "description": "The SSH command to execute",
+ "type": "string"
+ },
+ "transfer-command": {
+ "title": "/tuning/remote/ssh/transfer-command",
+ "description": "Command executed on the remote host when transferring the file",
+ "type": "string"
+ },
+ "start-command": {
+ "title": "/tuning/remote/ssh/start-command",
+ "description": "Command executed on the remote host to start the tailer",
+ "type": "string"
+ },
+ "flags": {
+ "title": "/tuning/remote/ssh/flags",
+ "description": "The flags to pass to the SSH command",
+ "type": "string"
+ },
+ "options": {
+ "description": "The options to pass to the SSH command",
+ "title": "/tuning/remote/ssh/options",
+ "type": "object",
+ "patternProperties": {
+ "(\\w+)": {
+ "title": "/tuning/remote/ssh/options/<option_name>",
+ "description": "Set an option to be passed to the SSH command",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "config": {
+ "description": "The ssh_config options to pass to SSH with the -o option",
+ "title": "/tuning/remote/ssh/config",
+ "type": "object",
+ "patternProperties": {
+ "(\\w+)": {
+ "title": "/tuning/remote/ssh/config/<config_name>",
+ "description": "Set an SSH configuration value",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ },
+ "clipboard": {
+ "description": "Settings related to the clipboard",
+ "title": "/tuning/clipboard",
+ "type": "object",
+ "properties": {
+ "impls": {
+ "description": "Clipboard implementations",
+ "title": "/tuning/clipboard/impls",
+ "type": "object",
+ "patternProperties": {
+ "([\\w\\-]+)": {
+ "description": "Clipboard implementation",
+ "title": "/tuning/clipboard/impls/<clipboard_impl_name>",
+ "type": "object",
+ "properties": {
+ "test": {
+ "title": "/tuning/clipboard/impls/<clipboard_impl_name>/test",
+ "description": "The command that checks",
+ "type": "string",
+ "examples": [
+ "command -v pbcopy"
+ ]
+ },
+ "general": {
+ "description": "Commands to work with the general clipboard",
+ "title": "/tuning/clipboard/impls/<clipboard_impl_name>/general",
+ "$ref": "#/definitions/clip-commands"
+ },
+ "find": {
+ "description": "Commands to work with the find clipboard",
+ "title": "/tuning/clipboard/impls/<clipboard_impl_name>/find",
+ "$ref": "#/definitions/clip-commands"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ },
+ "ui": {
+ "description": "User-interface settings",
+ "title": "/ui",
+ "type": "object",
+ "properties": {
+ "clock-format": {
+ "title": "/ui/clock-format",
+ "description": "The format for the clock displayed in the top-left corner using strftime(3) conversions",
+ "type": "string",
+ "examples": [
+ "%a %b %d %H:%M:%S %Z"
+ ]
+ },
+ "dim-text": {
+ "title": "/ui/dim-text",
+ "description": "Reduce the brightness of text (useful for xterms). This setting can be useful when running in an xterm where the white color is very bright.",
+ "type": "boolean"
+ },
+ "default-colors": {
+ "title": "/ui/default-colors",
+ "description": "Use default terminal background and foreground colors instead of black and white for all text coloring. This setting can be useful when transparent background or alternate color theme terminal is used.",
+ "type": "boolean"
+ },
+ "keymap": {
+ "title": "/ui/keymap",
+ "description": "The name of the keymap to use.",
+ "type": "string"
+ },
+ "theme": {
+ "title": "/ui/theme",
+ "description": "The name of the theme to use.",
+ "type": "string"
+ },
+ "theme-defs": {
+ "description": "Theme definitions.",
+ "title": "/ui/theme-defs",
+ "type": "object",
+ "patternProperties": {
+ "([\\w\\-]+)": {
+ "description": "Theme definitions",
+ "title": "/ui/theme-defs/<theme_name>",
+ "type": "object",
+ "properties": {
+ "vars": {
+ "description": "Variables definitions that are used in this theme.",
+ "title": "/ui/theme-defs/<theme_name>/vars",
+ "type": "object",
+ "patternProperties": {
+ "(\\w+)": {
+ "title": "/ui/theme-defs/<theme_name>/vars/<var_name>",
+ "description": "A theme variable definition",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "styles": {
+ "description": "Styles for log messages.",
+ "title": "/ui/theme-defs/<theme_name>/styles",
+ "type": "object",
+ "properties": {
+ "identifier": {
+ "description": "Styling for identifiers in logs",
+ "title": "/ui/theme-defs/<theme_name>/styles/identifier",
+ "$ref": "#/definitions/style"
+ },
+ "text": {
+ "description": "Styling for plain text",
+ "title": "/ui/theme-defs/<theme_name>/styles/text",
+ "$ref": "#/definitions/style"
+ },
+ "alt-text": {
+ "description": "Styling for plain text when alternating",
+ "title": "/ui/theme-defs/<theme_name>/styles/alt-text",
+ "$ref": "#/definitions/style"
+ },
+ "error": {
+ "description": "Styling for error messages",
+ "title": "/ui/theme-defs/<theme_name>/styles/error",
+ "$ref": "#/definitions/style"
+ },
+ "ok": {
+ "description": "Styling for success messages",
+ "title": "/ui/theme-defs/<theme_name>/styles/ok",
+ "$ref": "#/definitions/style"
+ },
+ "info": {
+ "description": "Styling for informational messages",
+ "title": "/ui/theme-defs/<theme_name>/styles/info",
+ "$ref": "#/definitions/style"
+ },
+ "warning": {
+ "description": "Styling for warning messages",
+ "title": "/ui/theme-defs/<theme_name>/styles/warning",
+ "$ref": "#/definitions/style"
+ },
+ "hidden": {
+ "description": "Styling for hidden fields in logs",
+ "title": "/ui/theme-defs/<theme_name>/styles/hidden",
+ "$ref": "#/definitions/style"
+ },
+ "cursor-line": {
+ "description": "Styling for the cursor line in the main view",
+ "title": "/ui/theme-defs/<theme_name>/styles/cursor-line",
+ "$ref": "#/definitions/style"
+ },
+ "adjusted-time": {
+ "description": "Styling for timestamps that have been adjusted",
+ "title": "/ui/theme-defs/<theme_name>/styles/adjusted-time",
+ "$ref": "#/definitions/style"
+ },
+ "skewed-time": {
+ "description": "Styling for timestamps that are different from the received time",
+ "title": "/ui/theme-defs/<theme_name>/styles/skewed-time",
+ "$ref": "#/definitions/style"
+ },
+ "offset-time": {
+ "description": "Styling for hidden fields",
+ "title": "/ui/theme-defs/<theme_name>/styles/offset-time",
+ "$ref": "#/definitions/style"
+ },
+ "invalid-msg": {
+ "description": "Styling for invalid log messages",
+ "title": "/ui/theme-defs/<theme_name>/styles/invalid-msg",
+ "$ref": "#/definitions/style"
+ },
+ "popup": {
+ "description": "Styling for popup windows",
+ "title": "/ui/theme-defs/<theme_name>/styles/popup",
+ "$ref": "#/definitions/style"
+ },
+ "focused": {
+ "description": "Styling for a focused row in a list view",
+ "title": "/ui/theme-defs/<theme_name>/styles/focused",
+ "$ref": "#/definitions/style"
+ },
+ "disabled-focused": {
+ "description": "Styling for a disabled focused row in a list view",
+ "title": "/ui/theme-defs/<theme_name>/styles/disabled-focused",
+ "$ref": "#/definitions/style"
+ },
+ "scrollbar": {
+ "description": "Styling for scrollbars",
+ "title": "/ui/theme-defs/<theme_name>/styles/scrollbar",
+ "$ref": "#/definitions/style"
+ },
+ "h1": {
+ "description": "Styling for top-level headers",
+ "title": "/ui/theme-defs/<theme_name>/styles/h1",
+ "$ref": "#/definitions/style"
+ },
+ "h2": {
+ "description": "Styling for 2nd-level headers",
+ "title": "/ui/theme-defs/<theme_name>/styles/h2",
+ "$ref": "#/definitions/style"
+ },
+ "h3": {
+ "description": "Styling for 3rd-level headers",
+ "title": "/ui/theme-defs/<theme_name>/styles/h3",
+ "$ref": "#/definitions/style"
+ },
+ "h4": {
+ "description": "Styling for 4th-level headers",
+ "title": "/ui/theme-defs/<theme_name>/styles/h4",
+ "$ref": "#/definitions/style"
+ },
+ "h5": {
+ "description": "Styling for 5th-level headers",
+ "title": "/ui/theme-defs/<theme_name>/styles/h5",
+ "$ref": "#/definitions/style"
+ },
+ "h6": {
+ "description": "Styling for 6th-level headers",
+ "title": "/ui/theme-defs/<theme_name>/styles/h6",
+ "$ref": "#/definitions/style"
+ },
+ "hr": {
+ "description": "Styling for horizontal rules",
+ "title": "/ui/theme-defs/<theme_name>/styles/hr",
+ "$ref": "#/definitions/style"
+ },
+ "hyperlink": {
+ "description": "Styling for hyperlinks",
+ "title": "/ui/theme-defs/<theme_name>/styles/hyperlink",
+ "$ref": "#/definitions/style"
+ },
+ "list-glyph": {
+ "description": "Styling for glyphs that prefix a list item",
+ "title": "/ui/theme-defs/<theme_name>/styles/list-glyph",
+ "$ref": "#/definitions/style"
+ },
+ "breadcrumb": {
+ "description": "Styling for the separator between breadcrumbs",
+ "title": "/ui/theme-defs/<theme_name>/styles/breadcrumb",
+ "$ref": "#/definitions/style"
+ },
+ "table-border": {
+ "description": "Styling for table borders",
+ "title": "/ui/theme-defs/<theme_name>/styles/table-border",
+ "$ref": "#/definitions/style"
+ },
+ "table-header": {
+ "description": "Styling for table headers",
+ "title": "/ui/theme-defs/<theme_name>/styles/table-header",
+ "$ref": "#/definitions/style"
+ },
+ "quote-border": {
+ "description": "Styling for quoted-block borders",
+ "title": "/ui/theme-defs/<theme_name>/styles/quote-border",
+ "$ref": "#/definitions/style"
+ },
+ "quoted-text": {
+ "description": "Styling for quoted text blocks",
+ "title": "/ui/theme-defs/<theme_name>/styles/quoted-text",
+ "$ref": "#/definitions/style"
+ },
+ "footnote-border": {
+ "description": "Styling for footnote borders",
+ "title": "/ui/theme-defs/<theme_name>/styles/footnote-border",
+ "$ref": "#/definitions/style"
+ },
+ "footnote-text": {
+ "description": "Styling for footnote text",
+ "title": "/ui/theme-defs/<theme_name>/styles/footnote-text",
+ "$ref": "#/definitions/style"
+ },
+ "snippet-border": {
+ "description": "Styling for snippet borders",
+ "title": "/ui/theme-defs/<theme_name>/styles/snippet-border",
+ "$ref": "#/definitions/style"
+ }
+ },
+ "additionalProperties": false
+ },
+ "syntax-styles": {
+ "description": "Styles for syntax highlighting in text files.",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles",
+ "type": "object",
+ "properties": {
+ "quoted-code": {
+ "description": "Styling for quoted code blocks",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/quoted-code",
+ "$ref": "#/definitions/style"
+ },
+ "code-border": {
+ "description": "Styling for quoted-code borders",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/code-border",
+ "$ref": "#/definitions/style"
+ },
+ "keyword": {
+ "description": "Styling for keywords in source files",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/keyword",
+ "$ref": "#/definitions/style"
+ },
+ "string": {
+ "description": "Styling for single/double-quoted strings in text",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/string",
+ "$ref": "#/definitions/style"
+ },
+ "comment": {
+ "description": "Styling for comments in source files",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/comment",
+ "$ref": "#/definitions/style"
+ },
+ "doc-directive": {
+ "description": "Styling for documentation directives in source files",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/doc-directive",
+ "$ref": "#/definitions/style"
+ },
+ "variable": {
+ "description": "Styling for variables in text",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/variable",
+ "$ref": "#/definitions/style"
+ },
+ "symbol": {
+ "description": "Styling for symbols in source files",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/symbol",
+ "$ref": "#/definitions/style"
+ },
+ "number": {
+ "description": "Styling for numbers in source files",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/number",
+ "$ref": "#/definitions/style"
+ },
+ "re-special": {
+ "description": "Styling for special characters in regular expressions",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/re-special",
+ "$ref": "#/definitions/style"
+ },
+ "re-repeat": {
+ "description": "Styling for repeats in regular expressions",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/re-repeat",
+ "$ref": "#/definitions/style"
+ },
+ "diff-delete": {
+ "description": "Styling for deleted lines in diffs",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/diff-delete",
+ "$ref": "#/definitions/style"
+ },
+ "diff-add": {
+ "description": "Styling for added lines in diffs",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/diff-add",
+ "$ref": "#/definitions/style"
+ },
+ "diff-section": {
+ "description": "Styling for diffs",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/diff-section",
+ "$ref": "#/definitions/style"
+ },
+ "spectrogram-low": {
+ "description": "Styling for the lower threshold values in the spectrogram view",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/spectrogram-low",
+ "$ref": "#/definitions/style"
+ },
+ "spectrogram-medium": {
+ "description": "Styling for the medium threshold values in the spectrogram view",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/spectrogram-medium",
+ "$ref": "#/definitions/style"
+ },
+ "spectrogram-high": {
+ "description": "Styling for the high threshold values in the spectrogram view",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/spectrogram-high",
+ "$ref": "#/definitions/style"
+ },
+ "file": {
+ "description": "Styling for file names in source files",
+ "title": "/ui/theme-defs/<theme_name>/syntax-styles/file",
+ "$ref": "#/definitions/style"
+ }
+ },
+ "additionalProperties": false
+ },
+ "status-styles": {
+ "description": "Styles for the user-interface components.",
+ "title": "/ui/theme-defs/<theme_name>/status-styles",
+ "type": "object",
+ "properties": {
+ "text": {
+ "description": "Styling for status bars",
+ "title": "/ui/theme-defs/<theme_name>/status-styles/text",
+ "$ref": "#/definitions/style"
+ },
+ "warn": {
+ "description": "Styling for warnings in status bars",
+ "title": "/ui/theme-defs/<theme_name>/status-styles/warn",
+ "$ref": "#/definitions/style"
+ },
+ "alert": {
+ "description": "Styling for alerts in status bars",
+ "title": "/ui/theme-defs/<theme_name>/status-styles/alert",
+ "$ref": "#/definitions/style"
+ },
+ "active": {
+ "description": "Styling for activity in status bars",
+ "title": "/ui/theme-defs/<theme_name>/status-styles/active",
+ "$ref": "#/definitions/style"
+ },
+ "inactive-alert": {
+ "description": "Styling for inactive alert status bars",
+ "title": "/ui/theme-defs/<theme_name>/status-styles/inactive-alert",
+ "$ref": "#/definitions/style"
+ },
+ "inactive": {
+ "description": "Styling for inactive status bars",
+ "title": "/ui/theme-defs/<theme_name>/status-styles/inactive",
+ "$ref": "#/definitions/style"
+ },
+ "title-hotkey": {
+ "description": "Styling for hotkey highlights in titles",
+ "title": "/ui/theme-defs/<theme_name>/status-styles/title-hotkey",
+ "$ref": "#/definitions/style"
+ },
+ "title": {
+ "description": "Styling for title sections of status bars",
+ "title": "/ui/theme-defs/<theme_name>/status-styles/title",
+ "$ref": "#/definitions/style"
+ },
+ "disabled-title": {
+ "description": "Styling for title sections of status bars",
+ "title": "/ui/theme-defs/<theme_name>/status-styles/disabled-title",
+ "$ref": "#/definitions/style"
+ },
+ "subtitle": {
+ "description": "Styling for subtitle sections of status bars",
+ "title": "/ui/theme-defs/<theme_name>/status-styles/subtitle",
+ "$ref": "#/definitions/style"
+ },
+ "info": {
+ "description": "Styling for informational messages in status bars",
+ "title": "/ui/theme-defs/<theme_name>/status-styles/info",
+ "$ref": "#/definitions/style"
+ },
+ "hotkey": {
+ "description": "Styling for hotkey highlights of status bars",
+ "title": "/ui/theme-defs/<theme_name>/status-styles/hotkey",
+ "$ref": "#/definitions/style"
+ }
+ },
+ "additionalProperties": false
+ },
+ "log-level-styles": {
+ "description": "Styles for each log message level.",
+ "title": "/ui/theme-defs/<theme_name>/log-level-styles",
+ "type": "object",
+ "patternProperties": {
+ "(trace|debug5|debug4|debug3|debug2|debug|info|stats|notice|warning|error|critical|fatal|invalid)": {
+ "title": "/ui/theme-defs/<theme_name>/log-level-styles/<level>",
+ "$ref": "#/definitions/style"
+ }
+ },
+ "additionalProperties": false
+ },
+ "highlights": {
+ "description": "Styles for text highlights.",
+ "title": "/ui/theme-defs/<theme_name>/highlights",
+ "type": "object",
+ "patternProperties": {
+ "([\\w\\-]+)": {
+ "title": "/ui/theme-defs/<theme_name>/highlights/<highlight_name>",
+ "type": "object",
+ "properties": {
+ "pattern": {
+ "title": "/ui/theme-defs/<theme_name>/highlights/<highlight_name>/pattern",
+ "description": "The regular expression to highlight",
+ "type": "string"
+ },
+ "style": {
+ "description": "The styling for the text that matches the associated pattern",
+ "title": "/ui/theme-defs/<theme_name>/highlights/<highlight_name>/style",
+ "$ref": "#/definitions/style"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ },
+ "movement": {
+ "description": "Log file cursor movement mode settings",
+ "title": "/ui/movement",
+ "type": "object",
+ "properties": {
+ "mode": {
+ "title": "/ui/movement/mode",
+ "description": "The mode of cursor movement to use.",
+ "type": "string",
+ "enum": [
+ "top",
+ "cursor"
+ ],
+ "examples": [
+ "top",
+ "cursor"
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "keymap-defs": {
+ "description": "Keymap definitions.",
+ "title": "/ui/keymap-defs",
+ "type": "object",
+ "patternProperties": {
+ "([\\w\\-]+)": {
+ "description": "The keymap definitions",
+ "title": "/ui/keymap-defs/<keymap_name>",
+ "type": "object",
+ "patternProperties": {
+ "((?:x[0-9a-f]{2})+)": {
+ "description": "Map of key codes to commands to execute. The field names are the keys to be mapped using as a hexadecimal representation of the UTF-8 encoding. Each byte of the UTF-8 should start with an 'x' followed by the hexadecimal representation of the byte.",
+ "title": "/ui/keymap-defs/<keymap_name>/<key_seq>",
+ "type": "object",
+ "properties": {
+ "command": {
+ "title": "/ui/keymap-defs/<keymap_name>/<key_seq>/command",
+ "description": "The command to execute for the given key sequence. Use a script to execute more complicated operations.",
+ "type": "string",
+ "pattern": "^[:|;].*",
+ "examples": [
+ ":goto next hour"
+ ]
+ },
+ "alt-msg": {
+ "title": "/ui/keymap-defs/<keymap_name>/<key_seq>/alt-msg",
+ "description": "The help message to display after the key is pressed.",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ },
+ "log": {
+ "description": "Log message settings",
+ "title": "/log",
+ "type": "object",
+ "properties": {
+ "watch-expressions": {
+ "description": "Log message watch expressions",
+ "title": "/log/watch-expressions",
+ "type": "object",
+ "patternProperties": {
+ "([\\w\\-]+)": {
+ "description": "A log message watch expression",
+ "title": "/log/watch-expressions/<watch_name>",
+ "type": "object",
+ "properties": {
+ "expr": {
+ "title": "/log/watch-expressions/<watch_name>/expr",
+ "description": "The SQL expression to execute for each input line. If expression evaluates to true, a 'log message detected' event will be published.",
+ "type": "string"
+ },
+ "enabled": {
+ "title": "/log/watch-expressions/<watch_name>/enabled",
+ "description": "Indicates whether or not this expression should be evaluated during log processing.",
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ },
+ "global": {
+ "description": "Global variable definitions",
+ "title": "/global",
+ "type": "object",
+ "patternProperties": {
+ "(\\w+)": {
+ "title": "/global/<var_name>",
+ "description": "A global variable definition. Global variables can be referenced in scripts, SQL statements, or commands.",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false,
+ "definitions": {
+ "clip-commands": {
+ "title": "clip-commands",
+ "description": "Container for the commands used to read from and write to the system clipboard",
+ "type": "object",
+ "$$target": "#/definitions/clip-commands",
+ "properties": {
+ "write": {
+ "title": "/write",
+ "description": "The command used to write to the clipboard",
+ "type": "string",
+ "examples": [
+ "pbcopy"
+ ]
+ },
+ "read": {
+ "title": "/read",
+ "description": "The command used to read from the clipboard",
+ "type": "string",
+ "examples": [
+ "pbpaste"
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "style": {
+ "title": "style",
+ "type": "object",
+ "$$target": "#/definitions/style",
+ "properties": {
+ "color": {
+ "title": "/color",
+ "description": "The foreground color value for this style. The value can be the name of an xterm color, the hexadecimal value, or a theme variable reference.",
+ "type": "string",
+ "examples": [
+ "#fff",
+ "Green",
+ "$black"
+ ]
+ },
+ "background-color": {
+ "title": "/background-color",
+ "description": "The background color value for this style. The value can be the name of an xterm color, the hexadecimal value, or a theme variable reference.",
+ "type": "string",
+ "examples": [
+ "#2d2a2e",
+ "Green"
+ ]
+ },
+ "underline": {
+ "title": "/underline",
+ "description": "Indicates that the text should be underlined.",
+ "type": "boolean"
+ },
+ "bold": {
+ "title": "/bold",
+ "description": "Indicates that the text should be bolded.",
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+ }
+ }
+}
diff --git a/docs/schemas/event-file-format-detected-v1.schema.json b/docs/schemas/event-file-format-detected-v1.schema.json
new file mode 100644
index 0000000..edb8531
--- /dev/null
+++ b/docs/schemas/event-file-format-detected-v1.schema.json
@@ -0,0 +1,26 @@
+{
+ "$id": "https://lnav.org/event-file-format-detected-v1.schema.json",
+ "title": "https://lnav.org/event-file-format-detected-v1.schema.json",
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "description": "Event fired when a log format is detected for a file.",
+ "properties": {
+ "$schema": {
+ "title": "/$schema",
+ "type": "string",
+ "examples": [
+ "https://lnav.org/event-file-format-detected-v1.schema.json"
+ ]
+ },
+ "filename": {
+ "title": "/filename",
+ "description": "The path of the file for which a matching format was found",
+ "type": "string"
+ },
+ "format": {
+ "title": "/format",
+ "description": "The name of the format",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+}
diff --git a/docs/schemas/event-file-open-v1.schema.json b/docs/schemas/event-file-open-v1.schema.json
new file mode 100644
index 0000000..76a6bc1
--- /dev/null
+++ b/docs/schemas/event-file-open-v1.schema.json
@@ -0,0 +1,21 @@
+{
+ "$id": "https://lnav.org/event-file-open-v1.schema.json",
+ "title": "https://lnav.org/event-file-open-v1.schema.json",
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "description": "Event fired when a file is opened.",
+ "properties": {
+ "$schema": {
+ "title": "/$schema",
+ "type": "string",
+ "examples": [
+ "https://lnav.org/event-file-open-v1.schema.json"
+ ]
+ },
+ "filename": {
+ "title": "/filename",
+ "description": "The path of the file that was opened",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+}
diff --git a/docs/schemas/event-log-msg-detected-v1.schema.json b/docs/schemas/event-log-msg-detected-v1.schema.json
new file mode 100644
index 0000000..30ec3a2
--- /dev/null
+++ b/docs/schemas/event-log-msg-detected-v1.schema.json
@@ -0,0 +1,57 @@
+{
+ "$id": "https://lnav.org/event-log-msg-detected-v1.schema.json",
+ "title": "https://lnav.org/event-log-msg-detected-v1.schema.json",
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "description": "Event fired when a log message is detected by a watch expression.",
+ "properties": {
+ "$schema": {
+ "title": "/$schema",
+ "type": "string",
+ "examples": [
+ "https://lnav.org/event-log-msg-detected-v1.schema.json"
+ ]
+ },
+ "watch-name": {
+ "title": "/watch-name",
+ "description": "The name of the watch expression that matched this log message",
+ "type": "string"
+ },
+ "filename": {
+ "title": "/filename",
+ "description": "The path of the file containing the log message",
+ "type": "string"
+ },
+ "line-number": {
+ "title": "/line-number",
+ "description": "The line number in the file, starting from zero",
+ "type": "integer"
+ },
+ "format": {
+ "title": "/format",
+ "description": "The name of the log format that matched this log message",
+ "type": "string"
+ },
+ "timestamp": {
+ "title": "/timestamp",
+ "description": "The timestamp of the log message",
+ "type": "string"
+ },
+ "values": {
+ "description": "The log message values captured by the log format",
+ "title": "/values",
+ "type": "object",
+ "patternProperties": {
+ "([\\w\\-]+)": {
+ "title": "/values/<name>",
+ "type": [
+ "boolean",
+ "integer",
+ "string"
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+}
diff --git a/docs/schemas/event-session-loaded-v1.schema.json b/docs/schemas/event-session-loaded-v1.schema.json
new file mode 100644
index 0000000..f64f051
--- /dev/null
+++ b/docs/schemas/event-session-loaded-v1.schema.json
@@ -0,0 +1,16 @@
+{
+ "$id": "https://lnav.org/event-session-loaded-v1.schema.json",
+ "title": "https://lnav.org/event-session-loaded-v1.schema.json",
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "description": "Event fired when a session is loaded.",
+ "properties": {
+ "$schema": {
+ "title": "/$schema",
+ "type": "string",
+ "examples": [
+ "https://lnav.org/event-session-loaded-v1.schema.json"
+ ]
+ }
+ },
+ "additionalProperties": false
+}
diff --git a/docs/schemas/format-v1.schema.json b/docs/schemas/format-v1.schema.json
new file mode 100644
index 0000000..fe781f9
--- /dev/null
+++ b/docs/schemas/format-v1.schema.json
@@ -0,0 +1,638 @@
+{
+ "$id": "https://lnav.org/schemas/format-v1.schema.json",
+ "title": "https://lnav.org/schemas/format-v1.schema.json",
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "properties": {
+ "$schema": {
+ "title": "/$schema",
+ "description": "Specifies the type of this file",
+ "type": "string"
+ }
+ },
+ "patternProperties": {
+ "(\\w+)": {
+ "description": "The definition of a log file format.",
+ "title": "/<format_name>",
+ "type": "object",
+ "properties": {
+ "regex": {
+ "description": "The set of regular expressions used to match log messages",
+ "title": "/<format_name>/regex",
+ "type": "object",
+ "patternProperties": {
+ "([^/]+)": {
+ "description": "The set of patterns used to match log messages",
+ "title": "/<format_name>/regex/<pattern_name>",
+ "type": "object",
+ "properties": {
+ "pattern": {
+ "title": "/<format_name>/regex/<pattern_name>/pattern",
+ "description": "The regular expression to match a log message and capture fields.",
+ "type": "string",
+ "minLength": 1
+ },
+ "module-format": {
+ "title": "/<format_name>/regex/<pattern_name>/module-format",
+ "description": "If true, this pattern will only be used to parse message bodies of container formats, like syslog",
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ },
+ "json": {
+ "title": "/<format_name>/json",
+ "description": "Indicates that log files are JSON-encoded (deprecated, use \"file-type\": \"json\")",
+ "type": "boolean"
+ },
+ "convert-to-local-time": {
+ "title": "/<format_name>/convert-to-local-time",
+ "description": "Indicates that displayed timestamps should automatically be converted to local time",
+ "type": "boolean"
+ },
+ "hide-extra": {
+ "title": "/<format_name>/hide-extra",
+ "description": "Specifies whether extra values in JSON logs should be displayed",
+ "type": "boolean"
+ },
+ "multiline": {
+ "title": "/<format_name>/multiline",
+ "description": "Indicates that log messages can span multiple lines",
+ "type": "boolean"
+ },
+ "timestamp-divisor": {
+ "title": "/<format_name>/timestamp-divisor",
+ "description": "The value to divide a numeric timestamp by in a JSON log.",
+ "type": [
+ "integer",
+ "number"
+ ]
+ },
+ "file-pattern": {
+ "title": "/<format_name>/file-pattern",
+ "description": "A regular expression that restricts this format to log files with a matching name",
+ "type": "string"
+ },
+ "mime-types": {
+ "title": "/<format_name>/mime-types",
+ "description": "A list of mime-types this format should be used for",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "application/vnd.tcpdump.pcap"
+ ]
+ }
+ },
+ "level-field": {
+ "title": "/<format_name>/level-field",
+ "description": "The name of the level field in the log message pattern",
+ "type": "string"
+ },
+ "level-pointer": {
+ "title": "/<format_name>/level-pointer",
+ "description": "A regular-expression that matches the JSON-pointer of the level property",
+ "type": "string"
+ },
+ "timestamp-field": {
+ "title": "/<format_name>/timestamp-field",
+ "description": "The name of the timestamp field in the log message pattern",
+ "type": "string"
+ },
+ "subsecond-field": {
+ "title": "/<format_name>/subsecond-field",
+ "description": "The path to the property in a JSON-lines log message that contains the sub-second time value",
+ "type": "string"
+ },
+ "subsecond-units": {
+ "title": "/<format_name>/subsecond-units",
+ "description": "The units of the subsecond-field property value",
+ "type": "string",
+ "enum": [
+ "milli",
+ "micro",
+ "nano"
+ ]
+ },
+ "time-field": {
+ "title": "/<format_name>/time-field",
+ "description": "The name of the time field in the log message pattern. This field should only be specified if the timestamp field only contains a date.",
+ "type": "string"
+ },
+ "body-field": {
+ "title": "/<format_name>/body-field",
+ "description": "The name of the body field in the log message pattern",
+ "type": "string"
+ },
+ "url": {
+ "title": "/<format_name>/url",
+ "description": "A URL with more information about this log format",
+ "type": [
+ "array",
+ "string"
+ ],
+ "items": {
+ "type": "string"
+ }
+ },
+ "title": {
+ "title": "/<format_name>/title",
+ "description": "The human-readable name for this log format",
+ "type": "string"
+ },
+ "description": {
+ "title": "/<format_name>/description",
+ "description": "A longer description of this log format",
+ "type": "string"
+ },
+ "timestamp-format": {
+ "title": "/<format_name>/timestamp-format",
+ "description": "An array of strptime(3)-like timestamp formats",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "module-field": {
+ "title": "/<format_name>/module-field",
+ "description": "The name of the module field in the log message pattern",
+ "type": "string"
+ },
+ "opid-field": {
+ "title": "/<format_name>/opid-field",
+ "description": "The name of the operation-id field in the log message pattern",
+ "type": "string"
+ },
+ "ordered-by-time": {
+ "title": "/<format_name>/ordered-by-time",
+ "description": "Indicates that the order of messages in the file is time-based.",
+ "type": "boolean"
+ },
+ "level": {
+ "description": "The map of level names to patterns or integer values",
+ "title": "/<format_name>/level",
+ "type": "object",
+ "patternProperties": {
+ "(trace|debug[2345]?|info|stats|notice|warning|error|critical|fatal)": {
+ "title": "/<format_name>/level/<level>",
+ "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.",
+ "type": [
+ "integer",
+ "string"
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "value": {
+ "description": "The set of value definitions",
+ "title": "/<format_name>/value",
+ "type": "object",
+ "patternProperties": {
+ "([^/]+)": {
+ "description": "The set of values captured by the log message patterns",
+ "title": "/<format_name>/value/<value_name>",
+ "type": "object",
+ "properties": {
+ "kind": {
+ "title": "/<format_name>/value/<value_name>/kind",
+ "description": "The type of data in the field",
+ "type": "string",
+ "enum": [
+ "string",
+ "integer",
+ "float",
+ "boolean",
+ "json",
+ "struct",
+ "quoted",
+ "xml"
+ ]
+ },
+ "collate": {
+ "title": "/<format_name>/value/<value_name>/collate",
+ "description": "The collating function to use for this column",
+ "type": "string"
+ },
+ "unit": {
+ "description": "Unit definitions for this field",
+ "title": "/<format_name>/value/<value_name>/unit",
+ "type": "object",
+ "properties": {
+ "field": {
+ "title": "/<format_name>/value/<value_name>/unit/field",
+ "description": "The name of the field that contains the units for this field",
+ "type": "string"
+ },
+ "scaling-factor": {
+ "description": "Transforms the numeric value by the given factor",
+ "title": "/<format_name>/value/<value_name>/unit/scaling-factor",
+ "type": "object",
+ "patternProperties": {
+ "([^/]+)": {
+ "title": "/<format_name>/value/<value_name>/unit/scaling-factor/<scale>",
+ "type": "object",
+ "properties": {
+ "op": {
+ "title": "/<format_name>/value/<value_name>/unit/scaling-factor/<scale>/op",
+ "type": "string",
+ "enum": [
+ "identity",
+ "multiply",
+ "divide"
+ ]
+ },
+ "value": {
+ "title": "/<format_name>/value/<value_name>/unit/scaling-factor/<scale>/value",
+ "type": "number"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ },
+ "identifier": {
+ "title": "/<format_name>/value/<value_name>/identifier",
+ "description": "Indicates whether or not this field contains an identifier that should be highlighted",
+ "type": "boolean"
+ },
+ "foreign-key": {
+ "title": "/<format_name>/value/<value_name>/foreign-key",
+ "description": "Indicates whether or not this field should be treated as a foreign key for row in another table",
+ "type": "boolean"
+ },
+ "hidden": {
+ "title": "/<format_name>/value/<value_name>/hidden",
+ "description": "Indicates whether or not this field should be hidden",
+ "type": "boolean"
+ },
+ "action-list": {
+ "title": "/<format_name>/value/<value_name>/action-list",
+ "description": "Actions to execute when this field is clicked on",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "rewriter": {
+ "title": "/<format_name>/value/<value_name>/rewriter",
+ "description": "A command that will rewrite this field when pretty-printing",
+ "type": "string",
+ "examples": [
+ ";SELECT :sc_status || ' (' || (SELECT message FROM http_status_codes WHERE status = :sc_status) || ') '"
+ ]
+ },
+ "description": {
+ "title": "/<format_name>/value/<value_name>/description",
+ "description": "A description of the field",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ },
+ "tags": {
+ "description": "The tags to automatically apply to log messages",
+ "title": "/<format_name>/tags",
+ "type": "object",
+ "patternProperties": {
+ "([\\w:;\\._\\-]+)": {
+ "description": "The name of the tag to apply",
+ "title": "/<format_name>/tags/<tag_name>",
+ "type": "object",
+ "properties": {
+ "paths": {
+ "description": "Restrict tagging to the given paths",
+ "title": "/<format_name>/tags/<tag_name>/paths",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "glob": {
+ "title": "/<format_name>/tags/<tag_name>/paths/glob",
+ "description": "The glob to match against file paths",
+ "type": "string",
+ "examples": [
+ "*/system.log*"
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "pattern": {
+ "title": "/<format_name>/tags/<tag_name>/pattern",
+ "description": "The regular expression to match against the body of the log message",
+ "type": "string",
+ "examples": [
+ "\\w+ is down"
+ ]
+ },
+ "description": {
+ "title": "/<format_name>/tags/<tag_name>/description",
+ "description": "A description of this tag",
+ "type": "string"
+ },
+ "level": {
+ "title": "/<format_name>/tags/<tag_name>/level",
+ "description": "Constrain hits to log messages with this level",
+ "type": "string",
+ "enum": [
+ "trace",
+ "debug5",
+ "debug4",
+ "debug3",
+ "debug2",
+ "debug",
+ "info",
+ "stats",
+ "notice",
+ "warning",
+ "error",
+ "critical",
+ "fatal"
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ },
+ "action": {
+ "title": "/<format_name>/action",
+ "type": "object",
+ "patternProperties": {
+ "(\\w+)": {
+ "title": "/<format_name>/action/<action_name>",
+ "type": [
+ "string",
+ "object"
+ ],
+ "properties": {
+ "label": {
+ "title": "/<format_name>/action/<action_name>/label",
+ "type": "string"
+ },
+ "capture-output": {
+ "title": "/<format_name>/action/<action_name>/capture-output",
+ "type": "boolean"
+ },
+ "cmd": {
+ "title": "/<format_name>/action/<action_name>/cmd",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ },
+ "sample": {
+ "description": "An array of sample log messages to be tested against the log message patterns",
+ "title": "/<format_name>/sample",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "description": {
+ "title": "/<format_name>/sample/description",
+ "description": "A description of this sample.",
+ "type": "string"
+ },
+ "line": {
+ "title": "/<format_name>/sample/line",
+ "description": "A sample log line that should match a pattern in this format.",
+ "type": "string"
+ },
+ "level": {
+ "title": "/<format_name>/sample/level",
+ "description": "The expected level for this sample log line.",
+ "type": "string",
+ "enum": [
+ "trace",
+ "debug5",
+ "debug4",
+ "debug3",
+ "debug2",
+ "debug",
+ "info",
+ "stats",
+ "notice",
+ "warning",
+ "error",
+ "critical",
+ "fatal"
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "line-format": {
+ "description": "The display format for JSON-encoded log messages",
+ "title": "/<format_name>/line-format",
+ "type": "array",
+ "items": {
+ "type": [
+ "string",
+ "object"
+ ],
+ "properties": {
+ "field": {
+ "title": "/<format_name>/line-format/field",
+ "description": "The name of the field to substitute at this position",
+ "type": "string"
+ },
+ "default-value": {
+ "title": "/<format_name>/line-format/default-value",
+ "description": "The default value for this position if the field is null",
+ "type": "string"
+ },
+ "timestamp-format": {
+ "title": "/<format_name>/line-format/timestamp-format",
+ "description": "The strftime(3) format for this field",
+ "type": "string",
+ "minLength": 1
+ },
+ "min-width": {
+ "title": "/<format_name>/line-format/min-width",
+ "description": "The minimum width of the field",
+ "type": "integer",
+ "minimum": 0
+ },
+ "auto-width": {
+ "title": "/<format_name>/line-format/auto-width",
+ "description": "Automatically detect the necessary width of the field based on the observed values",
+ "type": "boolean"
+ },
+ "max-width": {
+ "title": "/<format_name>/line-format/max-width",
+ "description": "The maximum width of the field",
+ "type": "integer",
+ "minimum": 0
+ },
+ "align": {
+ "title": "/<format_name>/line-format/align",
+ "description": "Align the text in the column to the left or right side",
+ "type": "string",
+ "enum": [
+ "left",
+ "right"
+ ]
+ },
+ "overflow": {
+ "title": "/<format_name>/line-format/overflow",
+ "description": "Overflow style",
+ "type": "string",
+ "enum": [
+ "abbrev",
+ "truncate",
+ "dot-dot"
+ ]
+ },
+ "text-transform": {
+ "title": "/<format_name>/line-format/text-transform",
+ "description": "Text transformation",
+ "type": "string",
+ "enum": [
+ "none",
+ "uppercase",
+ "lowercase",
+ "capitalize"
+ ]
+ },
+ "prefix": {
+ "title": "/<format_name>/line-format/prefix",
+ "description": "Text to prepend to the value",
+ "type": "string"
+ },
+ "suffix": {
+ "title": "/<format_name>/line-format/suffix",
+ "description": "Text to append to the value",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "search-table": {
+ "description": "Search tables to automatically define for this log format",
+ "title": "/<format_name>/search-table",
+ "type": "object",
+ "patternProperties": {
+ "(\\w+)": {
+ "description": "The set of search tables to be automatically defined",
+ "title": "/<format_name>/search-table/<table_name>",
+ "type": "object",
+ "properties": {
+ "pattern": {
+ "title": "/<format_name>/search-table/<table_name>/pattern",
+ "description": "The regular expression for this search table.",
+ "type": "string"
+ },
+ "glob": {
+ "title": "/<format_name>/search-table/<table_name>/glob",
+ "description": "Glob pattern used to constrain hits to messages that match the given pattern.",
+ "type": "string"
+ },
+ "level": {
+ "title": "/<format_name>/search-table/<table_name>/level",
+ "description": "Constrain hits to log messages with this level",
+ "type": "string",
+ "enum": [
+ "trace",
+ "debug5",
+ "debug4",
+ "debug3",
+ "debug2",
+ "debug",
+ "info",
+ "stats",
+ "notice",
+ "warning",
+ "error",
+ "critical",
+ "fatal"
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ },
+ "highlights": {
+ "description": "The set of highlight definitions",
+ "title": "/<format_name>/highlights",
+ "type": "object",
+ "patternProperties": {
+ "([^/]+)": {
+ "description": "The definition of a highlight",
+ "title": "/<format_name>/highlights/<highlight_name>",
+ "type": "object",
+ "properties": {
+ "pattern": {
+ "title": "/<format_name>/highlights/<highlight_name>/pattern",
+ "description": "A regular expression to highlight in logs of this format.",
+ "type": "string"
+ },
+ "color": {
+ "title": "/<format_name>/highlights/<highlight_name>/color",
+ "description": "The color to use when highlighting this pattern.",
+ "type": "string"
+ },
+ "background-color": {
+ "title": "/<format_name>/highlights/<highlight_name>/background-color",
+ "description": "The background color to use when highlighting this pattern.",
+ "type": "string"
+ },
+ "underline": {
+ "title": "/<format_name>/highlights/<highlight_name>/underline",
+ "description": "Highlight this pattern with an underline.",
+ "type": "boolean"
+ },
+ "blink": {
+ "title": "/<format_name>/highlights/<highlight_name>/blink",
+ "description": "Highlight this pattern by blinking.",
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ },
+ "file-type": {
+ "title": "/<format_name>/file-type",
+ "description": "The type of file that contains the log messages",
+ "type": "string",
+ "enum": [
+ "text",
+ "json",
+ "csv"
+ ]
+ },
+ "max-unrecognized-lines": {
+ "title": "/<format_name>/max-unrecognized-lines",
+ "description": "The maximum number of lines in a file to use when detecting the format",
+ "type": "integer",
+ "minimum": 1
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+}