summaryrefslogtreecommitdiffstats
path: root/test/formats/jsontest/format.json
diff options
context:
space:
mode:
Diffstat (limited to 'test/formats/jsontest/format.json')
-rw-r--r--test/formats/jsontest/format.json36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/formats/jsontest/format.json b/test/formats/jsontest/format.json
new file mode 100644
index 0000000..78300e9
--- /dev/null
+++ b/test/formats/jsontest/format.json
@@ -0,0 +1,36 @@
+{
+ "$schema": "https://lnav.org/schemas/format-v1.schema.json",
+ "test_log" : {
+ "title" : "Test JSON Log",
+ "json" : true,
+ "file-pattern" : "logfile_json\\.json",
+ "description" : "Test config",
+ "line-format" : [
+ "\n[",
+ { "field" : "ts" },
+ "] ",
+ { "field" : "lvl" },
+ " ",
+ { "field" : "msg" }
+ ],
+ "level-field" : "lvl",
+ "timestamp-field": "ts",
+ "body-field" : "msg",
+ "value" : {
+ "msg" : {
+ "rewriter" : ";SELECT :msg || 'bork bork bork'"
+ },
+ "arr" : {
+ "kind" : "json"
+ },
+ "obj" : {
+ "kind" : "json"
+ },
+ "user" : {
+ "kind" : "string",
+ "identifier" : true,
+ "rewriter" : "|rewrite-user"
+ }
+ }
+ }
+}