Skip to content

Commit

Permalink
Json parser typing (syslog-ng#120)
Browse files Browse the repository at this point in the history
Added typing configuration to json parser log declaration.
  • Loading branch information
zsoltgyulai94 authored Aug 22, 2024
2 parents 718f57f + 85e802b commit 62335f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/_admin-guide/120_Parser/003_JSON_parser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")); };
};
```

0 comments on commit 62335f1

Please sign in to comment.