-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.yaml
36 lines (35 loc) · 1.34 KB
/
example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/tmp/testdir :
name : Access log watcher
recurse : false
filemasks :
access_log_YYYYMMDD.* :
actions :
- processFile :
args:
- $filename
- YYYYMMDD
# Where 'process.sh' is a globally available command line script
cmd: process.sh
/tmp/testdir2 :
name : Other log watcher
# Optional local timezone. Defaults to system local timezone if not set
# This option allows for overriding the system's local timezone on a per watcher basis
# and allows for example triggering of actions using a timezone other than the system default
local_tz : GMT
recurse : true
filemasks :
other_log_YYYYMMDD.* :
actions :
# Actions to perform on the file in sequence.
- processFile :
# Do not start action before this time. Action is queued until start_time if triggered prior to it.
# This configuration setting is optional
start_time: 0800
# Do not start action after this time. Action is not run if triggered after start and end times
# This configuration setting is optional
end_time: 1000
args:
- $filename
- YYYYMMDD
# Where 'process.sh' is a globally available command line script
cmd: process.sh