Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
192 |
- |
1 |
[DEFAULT]
|
|
|
2 |
|
|
|
3 |
# Usage:
|
|
|
4 |
# _grep_logs_args = 'test'
|
|
|
5 |
# (printf %%b "Log-excerpt contains 'test':\n"; %(_grep_logs)s; printf %%b "Log-excerpt contains 'test':\n") | mail ...
|
|
|
6 |
#
|
|
|
7 |
_grep_logs = logpath="<logpath>"; grep <grepopts> %(_grep_logs_args)s $logpath | <greplimit>
|
|
|
8 |
# options `-wF` used to match only whole words and fixed string (not as pattern)
|
|
|
9 |
_grep_logs_args = -wF "<ip>"
|
|
|
10 |
|
|
|
11 |
# Used for actions, that should not by executed if ticket was restored:
|
|
|
12 |
_bypass_if_restored = if [ '<restored>' = '1' ]; then exit 0; fi;
|
|
|
13 |
|
|
|
14 |
[Init]
|
|
|
15 |
greplimit = tail -n <grepmax>
|
|
|
16 |
grepmax = 1000
|
|
|
17 |
grepopts = -m <grepmax>
|