-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfluent.conf
More file actions
30 lines (29 loc) · 715 Bytes
/
fluent.conf
File metadata and controls
30 lines (29 loc) · 715 Bytes
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
<source>
@type udp
tag application.logs # required
<parse>
@type json
</parse>
port 24224 # optional. 5170 by default
bind 0.0.0.0 # optional. 0.0.0.0 by default
delimiter "\n" # optional. "\n" (newline) by default
</source>
<match *.*>
@type copy
<store>
@type stdout
</store>
<store>
@type elasticsearch_dynamic
host elastic
port 9200
index_name fluentd.${record['ApplicationName']}.${record['level']}.${Time.parse(record['timestamp']).strftime('%Y%m%d')}
#
include_timestamp true
verify_es_version_at_startup true
reconnect_on_error true
flush_interval 10s
#with_transporter_log true
default_elasticsearch_version 8
</store>
</match>