-
Notifications
You must be signed in to change notification settings - Fork 2
/
td-agent.conf
53 lines (50 loc) · 1009 Bytes
/
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
<match td.*.*>
type tdlog
apikey YOUR_API_KEY
auto_create_table
buffer_type file
buffer_path /var/log/td-agent/buffer/td
<secondary>
type file
path /var/log/td-agent/failed_records
</secondary>
</match>
<match debug.**>
type stdout
</match>
<source>
type forward
</source>
# Fluentd
<source>
type http
port 8888
</source>
<source>
type debug_agent
bind 127.0.0.1
port 24230
</source>
# Spring Boot Log
<source>
type tail
path {% Please update this setting to spring logs's path. %}
tag application.log
format /^(?<time>)\s+(?<level>[^\s]+)\s+(?<process>[^\s]+)\s+---\s+\[(?<thread>[^\s]+)\]\s+(?<class>[^\s]+)\s+:\s+(?<message>.*)/
time_format %Y-%m-%d %H:%M:%S.%3N
</source>
<match **>
type elasticsearch
type_name spring_log
# Elasticsearch
<server>
name localhost
host 127.0.0.1
port 9200
logstash_format true
logstash_prefix spring_log
include_tag_key true
tag_key @log_name
flush_interval 5s
</server>
</match>