Skip to content

Commit c0aac85

Browse files
committed
add docs for the new key / templating feature
1 parent 24c8b6d commit c0aac85

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/user/bots.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5104,6 +5104,12 @@ Side-effect: Every field that is included in the group-by is ensured to be uniqe
51045104
Note: The keys listed here refer to the keys in the events (in contrast to the CSV column names).
51055105
Default: `[]`
51065106
5107+
**`templating`**
5108+
5109+
(optional, dict) Defines which strings should be processed by jinja2 templating. For templating only keys which are unique for the complete bucket are available. This always includes the destination address (`source.abuse_contact`) and all keys of `additional_grouping_keys` which are present in the bucket. There is one additional key `current_time` available which holds a `datetime.datetime` object of the current (local) time.
5110+
Note: The keys available for templating refer to the keys defined for the events (in contrast to the CSV column names). Still the keys get transformed: each `'.'` gets replaced to `_` in order to make referencing the key in jinja2 easier.
5111+
Default: `{subject: False, body: False, attachment: False}`
5112+
51075113
**`allowed_fieldnames`**
51085114
51095115
(optional, list) Lists the fields which are included in the csv file. Every element should be also included in `fieldnames_translation` to avoid crashes.

0 commit comments

Comments
 (0)