summaryrefslogtreecommitdiffstats
path: root/test/bad-config/formats/invalid-no-tscap
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 04:48:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 04:48:35 +0000
commit207df6fc406e81bfeebdff7f404bd242ff3f099f (patch)
treea1a796b056909dd0a04ffec163db9363a8757808 /test/bad-config/formats/invalid-no-tscap
parentReleasing progress-linux version 0.11.2-1~progress7.99u1. (diff)
downloadlnav-207df6fc406e81bfeebdff7f404bd242ff3f099f.tar.xz
lnav-207df6fc406e81bfeebdff7f404bd242ff3f099f.zip
Merging upstream version 0.12.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/bad-config/formats/invalid-no-tscap')
-rw-r--r--test/bad-config/formats/invalid-no-tscap/format.json32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/bad-config/formats/invalid-no-tscap/format.json b/test/bad-config/formats/invalid-no-tscap/format.json
new file mode 100644
index 0000000..5e8eb14
--- /dev/null
+++ b/test/bad-config/formats/invalid-no-tscap/format.json
@@ -0,0 +1,32 @@
+{
+ "$schema": "https://lnav.org/schemas/format-v1.schema.json",
+ "no_tscap_log": {
+ "title": "Sample with no captured timestamp",
+ "multiline": true,
+ "ordered-by-time": false,
+ "regex": {
+ "std": {
+ "pattern": "^(?<container>[\\w-]+)\\s+\\|( (?<timestamp>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{9}[+-]\\d{2}:\\d{2}))?( (?<body>.*))?$"
+ }
+ },
+ "level-field": "timestamp",
+ "module-field": "container",
+ "value": {
+ "container": {
+ "kind": "string",
+ "identifier": true
+ }
+ },
+ "sample": [
+ {
+ "line": "gitea | 2023-09-24T22:15:55.346526305+02:00 2023/09/24 22:15:55 cmd/web.go:223:runWeb() [I] Starting Gitea on PID: 7"
+ },
+ {
+ "line": "gitea | 2023/09/24 22:15:55 cmd/web.go:223:runWeb() [I] Starting Gitea on PID: 7"
+ },
+ {
+ "line": "gitea-db-1 | 2023-09-24T22:15:37.981051393+02:00 [migrations] started"
+ }
+ ]
+ }
+} \ No newline at end of file