-
Notifications
You must be signed in to change notification settings - Fork 299
/
Copy pathtd-agent.conf
61 lines (55 loc) · 1.82 KB
/
td-agent.conf
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<source>
type tail
format /^(?<time>[0-9]+\,[0-9]+\,[0-9]+\,[0-9]+\,[0-9]+\,[0-9]+)\,(?<retval>[0-9]+)\,(?<consumer>[^\,]+)\,(?<httpmethod>[^\,]+)\,(?<servlet>[^\,]+)\,(?<path>[^\,]+)\,(?<query>[^\,]+)\,(?<exectime>[^\,]+)\,(?<uuid>[^\,]+)(\,(?<bean>[^\,]+))?(\,(?<algorithm>[^\,]+))?$/
time_format %Y,%m,%d,%H,%M,%S
path <LOGS_DIR>/restapi.log
tag restapi.test
pos_file <LOGS_DIR>/td/tailPos
</source>
<source>
type tail
format /^(?<time>[0-9]+\,[0-9]+\,[0-9]+\,[0-9]+\,[0-9]+\,[0-9]+)\,(?<click>[^\,]+)\,(?<consumer>[^\,]+)\,(?<user>[^\,]+)\,(?<item>[^\,]+)\,(?<rectag>[^\,]+)$/
time_format %Y,%m,%d,%H,%M,%S
path <LOGS_DIR>/ctr.log
tag restapi.ctr
pos_file <LOGS_DIR>/td/ctrTailPos
</source>
<source>
type tail
format /^(?<time>[0-9]+\,[0-9]+\,[0-9]+\,[0-9]+\,[0-9]+\,[0-9]+)\,(?<click>[^\,]+)\,(?<consumer>[^\,]+)\,(?<alg>[^\,]+)\,(?<pos>[^\,]+)\,(?<userid>[^\,]+)\,(?<useruuid>[^\,]+)\,(?<itemid>[^\,]+)\,(?<actions>[^\,]+),(?<reco<MEMCACHED_HOST>endations>[^\,]+)?,(?<abkey>[^\,]+)?\,(?<rectag>[^\,]+)?$/
time_format %Y,%m,%d,%H,%M,%S
path <LOGS_DIR>/ctr-alg.log
tag restapi.ctralg
pos_file <LOGS_DIR>/td/ctrAlgTailPos
</source>
<match restapi.**>
type file
path <LOGS_DIR>/td
time_slice_format %Y/%m%d/%H/%Y%m%d-%H
compress gzip
utc
buffer_type file
buffer_path <LOGS_DIR>/td/logging.*.buffer
flush_interval 60s
</match>
<source>
type tail
format json
time_format %Y,%m,%d,%H,%M,%S
path <LOGS_DIR>/actions.log
tag actions.live
pos_file <LOGS_DIR>/td/actionsAccessPos
</source>
<match actions.**>
type copy
<store>
type file
path <LOGS_DIR>/td
time_slice_format %Y/%m%d/%H/%Y%m%d-%H
compress gzip
utc
buffer_type file
buffer_path <LOGS_DIR>/td/actions.*.buffer
flush_interval 60s
</store>
</match>