This commit is contained in:
2025-01-19 11:48:32 -06:00
commit 87477e610e
5 changed files with 107 additions and 0 deletions

28
fluentd/conf/fluent.conf Normal file
View 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>