persist flushes accross restarts. fixes #23

This commit is contained in:
ppom
2023-09-09 19:32:23 +02:00
parent 2bff4ef1b3
commit 1cb0562e15
5 changed files with 157 additions and 89 deletions

View File

@ -5,13 +5,13 @@ patterns:
streams:
tailDown:
cmd: [ "sh", "-c", "sleep 2; echo found 1; echo found 2; sleep 1; echo found 1; sleep 2" ]
cmd: [ "sh", "-c", "sleep 6; echo found 1; echo found 2; sleep 10" ]
filters:
findIP:
regex:
- '^found <num>$'
retry: 2
retry-period: 1m
retry-period: 2m
actions:
damn:
cmd: [ "echo", "<num>" ]