forked from fluent/fluentd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fluent.conf
72 lines (61 loc) · 1.23 KB
/
fluent.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
## built-in TCP input
## $ echo <json> | fluent-cat <tag>
<source>
type tcp
</source>
## built-in UNIX socket input
#<source>
# type unix
#</source>
# HTTP input
# http://localhost:8888/<tag>?json=<json>
<source>
type http
port 8888
</source>
## File input
## read apache logs with tag=apache.access
#<source>
# type tail
# format apache
# path /var/log/httpd-access.log
# tag apache.access
#</source>
## match tag=apache.access and write to file
#<match apache.access>
# type file
# path /var/log/fluent/access
#</match>
## match tag=debug.** and dump to console
<match debug.**>
type stdout
</match>
## match tag=system.** and forward to another fluent server
#<match system.**>
# type tcp
# host 192.168.0.11
# <secondary>
# host 192.168.0.12
# </secondary>
#</match>
## match tag=myapp.** and forward and write to file
#<match myapp.**>
# type copy
# <store>
# type tcp
# host 192.168.0.13
# buffer_type file
# buffer_path /var/log/fluent/myapp-forward
# retry_limit 50
# flush_interval 10s
# </store>
# <store>
# type file
# path /var/log/fluent/myapp
# </store>
#</match>
## match not matched logs and write to file
#<match **>
# type file
# path /var/log/fluent/else/%Y-%m-%d/%H.log
#</match>