Initial
This commit is contained in:
28
fluentd/conf/fluent.conf
Normal file
28
fluentd/conf/fluent.conf
Normal file
@@ -0,0 +1,28 @@
|
||||
# bind fluentd on IP 0.0.0.0
|
||||
# port 24224
|
||||
<source>
|
||||
@type forward
|
||||
port 24224
|
||||
bind 0.0.0.0
|
||||
</source>
|
||||
# sendlog to the elasticsearch
|
||||
# the host must match to the elasticsearch
|
||||
# container service
|
||||
<match *.**>
|
||||
@type copy
|
||||
<store>
|
||||
@type elasticsearch
|
||||
host elasticsearch
|
||||
port 9200
|
||||
logstash_format true
|
||||
logstash_prefix fluentd
|
||||
logstash_dateformat %Y%m%d
|
||||
include_tag_key true
|
||||
type_name access_log
|
||||
tag_key @log_name
|
||||
flush_interval 20s
|
||||
</store>
|
||||
<store>
|
||||
@type stdout
|
||||
</store>
|
||||
</match>
|
||||
Reference in New Issue
Block a user