reaction/config/reaction.test.yml

23 lines
501 B
YAML
Raw Normal View History

2023-04-11 13:01:02 +02:00
---
patterns:
2023-08-21 23:33:56 +02:00
ip:
regex: '(?:(?:[0-9]{1,3}\.){3}[0-9]{1,3})|(?:[0-9a-fA-F:]{2,90})'
ignore:
- 1.0.0.1
2023-04-11 13:01:02 +02:00
streams:
tailDown:
2023-08-21 23:33:56 +02:00
cmd: [ "sh", "-c", "echo 'found 1.1.1.1' && sleep 2 && echo 'found 1.0.0.1' && sleep 10m" ]
2023-04-11 13:01:02 +02:00
filters:
findIP:
regex:
2023-08-21 23:33:56 +02:00
- '^found <ip>'
2023-04-11 13:01:02 +02:00
retry: 2
2023-04-27 10:42:19 +02:00
retry-period: 1m
2023-04-11 13:01:02 +02:00
actions:
damn:
cmd: [ "echo", "<ip>" ]
undamn:
cmd: [ "echo", "undamn", "<ip>" ]
after: 1m