Add fluentd support
This commit is contained in:
3
fluentd/Dockerfile
Normal file
3
fluentd/Dockerfile
Normal file
@ -0,0 +1,3 @@
|
||||
FROM fluent/fluentd:latest
|
||||
|
||||
RUN ["gem", "install", "fluent-plugin-influxdb", "--no-rdoc", "--no-ri"]
|
20
fluentd/conf/fluent.conf
Normal file
20
fluentd/conf/fluent.conf
Normal file
@ -0,0 +1,20 @@
|
||||
<source>
|
||||
@type forward
|
||||
port 24224
|
||||
bind 0.0.0.0
|
||||
</source>
|
||||
|
||||
<match *.**>
|
||||
@type copy
|
||||
<store>
|
||||
@type influxdb
|
||||
host exen-influxdb
|
||||
dbname logging
|
||||
port 8086
|
||||
tag_key @log_name
|
||||
flush_interval 1s
|
||||
</store>
|
||||
<store>
|
||||
@type stdout
|
||||
</store>
|
||||
</match>
|
Reference in New Issue
Block a user