-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtd-agent.conf
70 lines (62 loc) · 1.4 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
61
62
63
64
65
66
67
68
69
70
# Treasure Data (http://www.treasure-data.com/) provides cloud based data
# analytics platform, which easily stores and processes data from td-agent.
# FREE plan is also provided.
# @see http://docs.fluentd.org/articles/http-to-td
#
# This section matches events whose tag is td.DATABASE.TABLE
<match td.*.*>
@type tdlog
@id output_td
apikey YOUR_API_KEY
auto_create_table
<buffer>
@type file
path /var/log/td-agent/buffer/td
</buffer>
<secondary>
@type file
path /var/log/td-agent/failed_records
</secondary>
</match>
## match tag=debug.** and dump to console
<match debug.**>
@type stdout
@id output_stdout
</match>
####
## Source descriptions:
##
## built-in TCP input
## @see http://docs.fluentd.org/articles/in_forward
<source>
@type forward
@id input_forward
</source>
<source>
@type udp
tag udpstream
<parse>
@type json
</parse>
port ${UdpListenPort} # optional. 5160 by default
bind 0.0.0.0 # optional. 0.0.0.0 by default
message_length_limit 1MB # optional. 4096 bytes by default
</source>
<match udpstream>
@type s3
s3_bucket ${UdpBucket}
s3_region us-west-2
path logs/instance-id/
store_as json
<buffer tag,time>
@type file
path /var/log/td-agent/s3
timekey 5 # 5 min partition
timekey_wait 10m
timekey_use_utc true # use utc
chunk_limit_size 256m
</buffer>
<format>
@type json
</format>
</match>