2023-10-04 12:00:00 +02:00
|
|
|
{
|
|
|
|
patterns: {
|
|
|
|
num: {
|
|
|
|
regex: '[0-9]+',
|
2024-02-09 12:00:00 +01:00
|
|
|
ignore: ['1'],
|
|
|
|
ignoreregex: ['2.?'],
|
2023-10-04 12:00:00 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
streams: {
|
|
|
|
tailDown1: {
|
2024-02-09 12:00:00 +01:00
|
|
|
cmd: ['sh', '-c', "echo 1 2 3 4 5 11 12 21 22 33 | tr ' ' '\n' | while read i; do sleep 1; echo found $i; done"],
|
2023-10-21 12:00:00 +02:00
|
|
|
filters: {
|
|
|
|
findIP: {
|
2024-01-04 12:00:00 +01:00
|
|
|
regex: ['^found <num>$'],
|
2024-01-05 12:00:00 +01:00
|
|
|
retry: 1,
|
2023-10-21 12:00:00 +02:00
|
|
|
retryperiod: '30s',
|
|
|
|
actions: {
|
|
|
|
damn: {
|
|
|
|
cmd: ['echo', '<num>'],
|
|
|
|
},
|
|
|
|
undamn: {
|
|
|
|
cmd: ['echo', 'undamn', '<num>'],
|
2024-01-05 12:00:00 +01:00
|
|
|
after: '4s',
|
2023-10-21 12:00:00 +02:00
|
|
|
onexit: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-10-04 12:00:00 +02:00
|
|
|
},
|
|
|
|
}
|