forked from cedbossneo/fluentd-sidecar-es
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtd-agent.conf
45 lines (41 loc) · 1.38 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
# This Fluentd configuration file enables the collection of log files
# that can be specified at the time of its creation in an environment
# variable, assuming that the config_generator.sh script runs to generate
# a configuration file for each log file to collect.
# Logs collected will be sent to the cluster's Elasticsearch service.
#
# Currently the collector uses a text format rather than allowing the user
# to specify how to parse each file.
# Pick up all the auto-generated input config files, one for each file
# specified in the FILES_TO_COLLECT environment variable.
@include files/*
<filter file.**>
@type record_transformer
enable_ruby
<record>
filename "${tag_parts[1..-1].join('.')}"
tag ${tag}
</record>
</filter>
<filter file.**>
@type kubernetes_metadata
</filter>
# All the auto-generated files should use the tag "file.<filename>".
<match file.**>
type elasticsearch
log_level info
include_tag_key true
host elasticsearch-logging.kube-system
port 9200
logstash_format true
# Set the chunk limit the same as for fluentd-gcp.
buffer_chunk_limit 16M
# Cap buffer memory usage to 512KB/chunk * 128 chunks = 65 MB
buffer_queue_limit 32
flush_interval 5s
# Never wait longer than 5 minutes between retries.
max_retry_wait 300
# Disable the limit on the number of retries (retry forever).
disable_retry_limit
message log
</match>