mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
56 lines
1.0 KiB
Plaintext
56 lines
1.0 KiB
Plaintext
|
|
# incoming http --> elastic search
|
|
<source>
|
|
@type http
|
|
port 9880
|
|
bind 0.0.0.0
|
|
body_size_limit 32m
|
|
keepalive_timeout 10s
|
|
</source>
|
|
|
|
#container logs --> elastic search
|
|
<source>
|
|
@type tail
|
|
format json
|
|
read_from_head true
|
|
tag docker.log
|
|
path /fluentd/log/containers/*/*-json.log
|
|
pos_file /tmp/container-logs.pos
|
|
</source>
|
|
|
|
#local file --> elastic search
|
|
<source>
|
|
@type tail
|
|
format json
|
|
read_from_head true
|
|
tag file-myapp.log
|
|
path /app/example-log.log
|
|
pos_file /tmp/example-log.log.pos
|
|
</source>
|
|
|
|
# where to send http logs
|
|
<match http-*.log>
|
|
@type elasticsearch
|
|
host elasticsearch
|
|
port 9200
|
|
index_name fluentd-http
|
|
type_name fluentd
|
|
</match>
|
|
|
|
#where to send file logs
|
|
<match file-myapp.log>
|
|
@type elasticsearch
|
|
host elasticsearch
|
|
port 9200
|
|
index_name fluentd-file
|
|
type_name fluentd
|
|
</match>
|
|
|
|
#where to send docker logs
|
|
<match docker.log>
|
|
@type elasticsearch
|
|
host elasticsearch
|
|
port 9200
|
|
index_name fluentd-docker
|
|
type_name fluentd
|
|
</match> |