Skip to content

Commit 62335f1

Browse files
Json parser typing (#120)
Added typing configuration to json parser log declaration.
2 parents 718f57f + 85e802b commit 62335f1

File tree

1 file changed

+10
-0
lines changed
  • doc/_admin-guide/120_Parser/003_JSON_parser

1 file changed

+10
-0
lines changed

doc/_admin-guide/120_Parser/003_JSON_parser/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,13 @@ log {
107107
destination(d_json);
108108
};
109109
```
110+
The log declaration can also be modified to include typing specifications.
111+
112+
```config
113+
log {
114+
source { ... };
115+
parser { json-parser(prefix('.json.')); };
116+
destination { file(... template("$(format-json .json.* .json.value=int64(${.json.value})\n")); };
117+
};
118+
```
119+

0 commit comments

Comments
 (0)