-
Notifications
You must be signed in to change notification settings - Fork 2
/
td-agent.conf
100 lines (85 loc) · 1.98 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
####
## Output descriptions:
##
# 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
apikey YOUR_API_KEY
auto_create_table
buffer_type file
buffer_path /var/log/td-agent/buffer/td
</match>
## match tag=debug.** and dump to console
<match debug.**>
type stdout
</match>
####
## Source descriptions:
##
## built-in TCP input
## @see http://docs.fluentd.org/articles/in_forward
<source>
type forward
</source>
## built-in UNIX socket input
#<source>
# type unix
#</source>
# HTTP input
# POST http://localhost:8888/<tag>?json=<json>
# POST http://localhost:8888/td.myapp.login?json={"user"%3A"me"}
# @see http://docs.fluentd.org/articles/in_http
<source>
type http
port 8118
</source>
## live debugging agent
<source>
type debug_agent
bind 127.0.0.1
port 24230
</source>
####
## Theft Market Matches:
##
<match hdfs.tmp.*>
type webhdfs
host ip-172-31-15-74.us-west-1.compute.internal
port 50070
#path /log/%Y%m%d_%H/access.log.${hostname}
path /tmp/fluentd
flush_interval 10s
</match>
<match hdfs.state.*>
type webhdfs
host ip-172-31-15-74.us-west-1.compute.internal
port 50070
path /data/state/json/%Y%m%d_%H/raw_state.log
flush_interval 60s
</match>
<match hdfs.city.*>
type webhdfs
host ip-172-31-15-74.us-west-1.compute.internal
port 50070
path /data/city/json/%Y%m%d_%H/raw_city.log
flush_interval 60s
</match>
<match hdfs.zipcode.*>
type webhdfs
host ip-172-31-15-74.us-west-1.compute.internal
port 50070
path /data/zipcode/json/%Y%m%d_%H/raw_zipcode.log
flush_interval 60s
</match>
<match hdfs.county.*>
type webhdfs
host ip-172-31-15-74.us-west-1.compute.internal
port 50070
path /data/county/json/%Y%m%d_%H/raw_county.log
flush_interval 60s
</match>