forked from fsouza/tsuru-fluentd-cloudwatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fluentd.conf
59 lines (53 loc) · 1.08 KB
/
fluentd.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
<source>
@type syslog
port 1514
bind 0.0.0.0
tag syslog
</source>
<match syslog.**>
@type rewrite_tag_filter
<rule>
key message
pattern ^{".+}$
tag json_message
</rule>
<rule>
key message
pattern .+
tag raw_message
</rule>
</match>
<filter raw_message>
@type record_transformer
renew_record true
keep_keys message
<record>
app_name ${record["ident"]}
</record>
</filter>
<match raw_message>
@type cloudwatch_logs
log_group_name @@LOG_GROUP_NAME@@
log_stream_name @@LOG_STREAM_NAME@@
auto_create_stream true
</match>
<match json_message>
@type cloudwatch_logs
log_group_name @@LOG_GROUP_NAME@@
log_stream_name @@LOG_STREAM_NAME@@
message_keys message
auto_create_stream true
</match>
<source>
@type udp
port 1515
bind 0.0.0.0
format json
tag bigsibling_metrics
</source>
<match bigsibling_metrics.**>
@type cloudwatch_logs
log_group_name tsuru-metrics
log_stream_name @@LOG_STREAM_NAME@@
auto_create_stream true
</match>