Skip to content

Commit f08a68a

Browse files
committed
Added $(iterate) template function.
Signed-off-by: Zsolt Gyulai (zgyulai) <zsolt.gyulai@quest.com>
1 parent 11ecccf commit f08a68a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/_admin-guide/110_Template_and_rewrite/000_Customize_message_format/007_Template_functions_of_syslog-ng.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,22 @@ which is 3232235777 in decimal representation.
600600
module has been loaded.
601601
{: .notice--info}
602602

603+
## $(iterate)
604+
605+
|*Syntax:*|$(iterate $(parameter))|
606+
607+
*Description:* This template function can be used to generate a series from an initial number and a `next` function.
608+
609+
### Example: An applied iteration of non-negative numbers
610+
611+
```config
612+
source
613+
614+
{ example-msg-generator( num(3) template("$(iterate $(+ 1 $_) 0)") ); }
615+
616+
;
617+
```
618+
603619
## List manipulation
604620

605621
The list-\* template functions allow you to manipulate comma-separated

0 commit comments

Comments
 (0)