2023-04-11 13:01:02 +02:00
|
|
|
---
|
|
|
|
patterns:
|
|
|
|
ip: '(([0-9]{1,3}\.){3}[0-9]{1,3})|([0-9a-fA-F:]{2,90})'
|
|
|
|
|
|
|
|
streams:
|
|
|
|
tailDown:
|
2023-05-03 20:03:22 +02:00
|
|
|
cmd: [ "sh", "-c", "echo 'found 1.1.1.1' && sleep 2s && echo 'found 1.1.1.2' && sleep 2s && echo 'found 1.1.1.1' && sleep 10m" ]
|
2023-04-11 13:01:02 +02:00
|
|
|
filters:
|
|
|
|
findIP:
|
|
|
|
regex:
|
|
|
|
- found <ip>
|
|
|
|
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>" ]
|
|
|
|
sleepdamn:
|
|
|
|
cmd: [ "echo", "sleep", "<ip>" ]
|
2023-05-03 20:03:22 +02:00
|
|
|
after: 8m
|