diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:55 +0000 |
commit | 5068d34c08f951a7ea6257d305a1627b09a95817 (patch) | |
tree | 08213e2be853396a3b07ce15dbe222644dcd9a89 /test/formats/jsontest3/format.json | |
parent | Initial commit. (diff) | |
download | lnav-5068d34c08f951a7ea6257d305a1627b09a95817.tar.xz lnav-5068d34c08f951a7ea6257d305a1627b09a95817.zip |
Adding upstream version 0.11.1.upstream/0.11.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/formats/jsontest3/format.json')
-rw-r--r-- | test/formats/jsontest3/format.json | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/test/formats/jsontest3/format.json b/test/formats/jsontest3/format.json new file mode 100644 index 0000000..63cc2a6 --- /dev/null +++ b/test/formats/jsontest3/format.json @@ -0,0 +1,75 @@ +{ + "$schema": "https://lnav.org/schemas/format-v1.schema.json", + "json_log3": { + "title": "Test JSON Log Format", + "description": "Test JSON Log Format", + "file-pattern": "logfile_.*json3\\.json", + "json": true, + "hide-extra": true, + "convert-to-local-time": true, + "line-format": [ + { + "field": "__timestamp__" + }, + " ", + { + "field": "client_ip" + }, + " ", + { + "field": "request/method" + }, + " ", + { + "field": "response/status" + }, + " ", + { + "field": "request/uri" + } + ], + "value": { + "started_at": { + "kind": "integer", + "identifier": true + }, + "client_ip": { + "kind": "string", + "identifier": true + }, + "request/method": { + "kind": "string", + "identifier": true + }, + "request/uri": { + "kind": "string", + "identifier": true + }, + "request/size": { + "kind": "integer", + "identifier": false, + "hidden": true + }, + "response/status": { + "kind": "string" + }, + "details1": { + "hidden": true + }, + "details2": { + "hidden": true + }, + "details3": { + "hidden": true + } + }, + "timestamp-field": "started_at", + "timestamp-divisor": 1000, + "level-field": "response/status", + "level": { + "info": "2\\d+", + "warning": "4\\d+", + "critical": "5\\d+" + } + } +} |