From 85e802b0ab751973379470b590304a1f9aecb15f Mon Sep 17 00:00:00 2001 From: "Zsolt Gyulai (zgyulai)" Date: Thu, 22 Aug 2024 09:57:28 +0200 Subject: [PATCH] Added typing configuration to json parser log declaration. Signed-off-by: Zsolt Gyulai (zgyulai) --- doc/_admin-guide/120_Parser/003_JSON_parser/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/_admin-guide/120_Parser/003_JSON_parser/README.md b/doc/_admin-guide/120_Parser/003_JSON_parser/README.md index 29106e7b..435b584e 100644 --- a/doc/_admin-guide/120_Parser/003_JSON_parser/README.md +++ b/doc/_admin-guide/120_Parser/003_JSON_parser/README.md @@ -107,3 +107,13 @@ log { destination(d_json); }; ``` +The log declaration can also be modified to include typing specifications. + +```config +log { + source { ... }; + parser { json-parser(prefix('.json.')); }; + destination { file(... template("$(format-json .json.* .json.value=int64(${.json.value})\n")); }; +}; +``` +