From 5068d34c08f951a7ea6257d305a1627b09a95817 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 19:44:55 +0200 Subject: Adding upstream version 0.11.1. Signed-off-by: Daniel Baumann --- test/formats/jsontest-subsec/format.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/formats/jsontest-subsec/format.json (limited to 'test/formats/jsontest-subsec/format.json') diff --git a/test/formats/jsontest-subsec/format.json b/test/formats/jsontest-subsec/format.json new file mode 100644 index 0000000..8469c7f --- /dev/null +++ b/test/formats/jsontest-subsec/format.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://lnav.org/schemas/format-v1.schema.json", + "subsec_json_log": { + "title": "JSON Log with subsecond field", + "json": true, + "file-pattern": "logfile_json_subsec\\.json", + "line-format": [ + { + "field": "__timestamp__" + }, + " ", + { + "field": "msg" + } + ], + "timestamp-field": "instant/epochSecond", + "subsecond-field": "instant/nanoOfSecond", + "subsecond-units": "nano", + "body-field": "msg", + "value": { + "instant": { + "kind": "json", + "hidden": true + } + } + } +} \ No newline at end of file -- cgit v1.2.3