2023-04-11 13:01:02 +02:00
|
|
|
---
|
|
|
|
patterns:
|
2023-09-06 02:00:33 +02:00
|
|
|
num:
|
|
|
|
regex: '[0-9]+'
|
2023-04-11 13:01:02 +02:00
|
|
|
|
|
|
|
streams:
|
2023-09-06 02:05:51 +02:00
|
|
|
tailDown:
|
2023-09-09 23:38:53 +02:00
|
|
|
cmd: [ "sh", "-c", "sleep 2; echo found 1; echo found 2; sleep 2" ]
|
2023-04-11 13:01:02 +02:00
|
|
|
filters:
|
|
|
|
findIP:
|
|
|
|
regex:
|
2023-09-06 02:00:33 +02:00
|
|
|
- '^found <num>$'
|
2023-09-06 02:05:51 +02:00
|
|
|
retry: 2
|
2023-09-09 19:32:23 +02:00
|
|
|
retry-period: 2m
|
2023-04-11 13:01:02 +02:00
|
|
|
actions:
|
|
|
|
damn:
|
2023-09-06 02:00:33 +02:00
|
|
|
cmd: [ "echo", "<num>" ]
|
2023-09-03 12:13:18 +02:00
|
|
|
undamn:
|
2023-09-06 02:00:33 +02:00
|
|
|
cmd: [ "echo", "undamn", "<num>" ]
|
2023-09-03 12:13:18 +02:00
|
|
|
after: 1m
|
2023-09-06 02:05:51 +02:00
|
|
|
onexit: true
|