-
Notifications
You must be signed in to change notification settings - Fork 13
/
fluent.conf
126 lines (108 loc) · 2.16 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# In v1 configuration, type and id are @ prefix parameters.
# @type and @id are recommended. type and id are still available for backward compatibility
## built-in TCP input
## $ echo <json> | fluent-cat <tag>
<source>
@type forward
@id forward_input
</source>
#################
## Input ###
#################
########## JTI ################
<source>
@type udp
tag jnpr.test
format juniper_jti
port 40000
bind 0.0.0.0
# body_size_limit 4MB
</source>
<source>
@type udp
tag jnpr.test
format juniper_jti
output_format flat
port 40001
bind 0.0.0.0
# body_size_limit 1MB
</source>
<source>
@type udp
tag jnpr.test
format juniper_jti
output_format statsd
port 40002
bind 0.0.0.0
# body_size_limit 1MB
</source>
########## Analyticsd ################
<source>
@type udp
tag jnpr.test
format juniper_analyticsd
port 40020
bind 0.0.0.0
# body_size_limit 1MB
</source>
<source>
@type udp
tag jnpr.test
format juniper_analyticsd
output_format flat
port 40021
bind 0.0.0.0
# body_size_limit 1MB
</source>
<source>
@type udp
tag jnpr.test
format juniper_analyticsd
output_format statsd
port 40022
bind 0.0.0.0
# body_size_limit 1MB
</source>
####################
## Output ###
####################
<match jnpr.**>
@type stdout
@id stdout_output
</match>
# <match jnpr.**>
# type copy
# <store>
# @type stdout
# @id stdout_output
# </store>
# <store>
# type file_json
# file /root/fluentd-plugin-juniper-telemetry/fluentd_output.json
# </store>
# </match>
# Listen HTTP for monitoring
# http://localhost:24220/api/plugins
# http://localhost:24220/api/plugins?type=TYPE
# http://localhost:24220/api/plugins?tag=MYTAG
<source>
@type monitor_agent
@id monitor_agent_input
port 24220
</source>
# Listen DRb for debug
<source>
@type debug_agent
@id debug_agent_input
bind 127.0.0.1
port 24230
</source>
## match tag=debug.** and dump to console
<match debug.**>
@type stdout
@id stdout_output
</match>
#match fluent's internal events
<match fluent.**>
@type stdout
</match>