change test
This commit is contained in:
parent
48f2517074
commit
6a694d6bcb
@ -2,19 +2,15 @@
|
|||||||
patterns:
|
patterns:
|
||||||
num:
|
num:
|
||||||
regex: '[0-9]+'
|
regex: '[0-9]+'
|
||||||
ip:
|
|
||||||
regex: '(?:(?:[0-9]{1,3}\.){3}[0-9]{1,3})|(?:[0-9a-fA-F:]{2,90})'
|
|
||||||
ignore:
|
|
||||||
- 1.0.0.1
|
|
||||||
|
|
||||||
streams:
|
streams:
|
||||||
tailDown1:
|
tailDown:
|
||||||
cmd: [ "sh", "-c", "sleep 2; seq 100010 | while read i; do echo found $(($i % 100)); done" ]
|
cmd: [ "sh", "-c", "sleep 2; echo found 1; echo found 2; sleep 1; echo found 1; sleep 2" ]
|
||||||
filters:
|
filters:
|
||||||
findIP:
|
findIP:
|
||||||
regex:
|
regex:
|
||||||
- '^found <num>$'
|
- '^found <num>$'
|
||||||
retry: 10
|
retry: 2
|
||||||
retry-period: 1m
|
retry-period: 1m
|
||||||
actions:
|
actions:
|
||||||
damn:
|
damn:
|
||||||
@ -22,49 +18,4 @@ streams:
|
|||||||
undamn:
|
undamn:
|
||||||
cmd: [ "echo", "undamn", "<num>" ]
|
cmd: [ "echo", "undamn", "<num>" ]
|
||||||
after: 1m
|
after: 1m
|
||||||
onexit: false
|
onexit: true
|
||||||
tailDown2:
|
|
||||||
cmd: [ "sh", "-c", "sleep 2; seq 100010 | while read i; do echo prout $(($i % 100)); done" ]
|
|
||||||
filters:
|
|
||||||
findIP:
|
|
||||||
regex:
|
|
||||||
- '^prout <num>$'
|
|
||||||
retry: 10
|
|
||||||
retry-period: 1m
|
|
||||||
actions:
|
|
||||||
damn:
|
|
||||||
cmd: [ "echo", "<num>" ]
|
|
||||||
undamn:
|
|
||||||
cmd: [ "echo", "undamn", "<num>" ]
|
|
||||||
after: 1m
|
|
||||||
onexit: false
|
|
||||||
tailDown3:
|
|
||||||
cmd: [ "sh", "-c", "sleep 2; seq 100010 | while read i; do echo nanana $(($i % 100)); done" ]
|
|
||||||
filters:
|
|
||||||
findIP:
|
|
||||||
regex:
|
|
||||||
- '^nanana <num>$'
|
|
||||||
retry: 4
|
|
||||||
retry-period: 2m
|
|
||||||
actions:
|
|
||||||
damn:
|
|
||||||
cmd: [ "true" ]
|
|
||||||
undamn:
|
|
||||||
cmd: [ "true" ]
|
|
||||||
after: 1m
|
|
||||||
onexit: false
|
|
||||||
tailDown4:
|
|
||||||
cmd: [ "sh", "-c", "sleep 2; seq 100010 | while read i; do echo nanana $(($i % 100)); done" ]
|
|
||||||
filters:
|
|
||||||
findIP:
|
|
||||||
regex:
|
|
||||||
- '^nomatch <num>$'
|
|
||||||
retry: 5
|
|
||||||
retry-period: 2m
|
|
||||||
actions:
|
|
||||||
damn:
|
|
||||||
cmd: [ "echo", "<num>" ]
|
|
||||||
undamn:
|
|
||||||
cmd: [ "echo", "undamn", "<num>" ]
|
|
||||||
after: 1m
|
|
||||||
onexit: false
|
|
||||||
|
Loading…
Reference in New Issue
Block a user