reaction/config/reaction.test.yml
ppom 52556f69b9 one goroutine handles all matches
it's not the filters that handles their matches anymore
2023-09-09 23:38:53 +02:00

22 lines
429 B
YAML

---
patterns:
num:
regex: '[0-9]+'
streams:
tailDown:
cmd: [ "sh", "-c", "sleep 2; echo found 1; echo found 2; sleep 2" ]
filters:
findIP:
regex:
- '^found <num>$'
retry: 2
retry-period: 2m
actions:
damn:
cmd: [ "echo", "<num>" ]
undamn:
cmd: [ "echo", "undamn", "<num>" ]
after: 1m
onexit: true