【发布时间】:2017-10-09 14:20:31
【问题描述】:
我有一个场景,其中nginx 在一个容器中运行,fluentd 在另一个容器中,我将nginx 日志映射到var/logs/nginx 目录,但我无法使用@987654325 将日志检索到弹性搜索@,请帮我解决这个问题:
fluentd.conf
<source>
@type forward
port 24224
bind 0.0.0.0
</source>
<source>
@type tail
path /var/log/nginx/access_in_log
#pos_file /var/log/td-agent/nginx-access.log.pos
tag nginx.access
format nginx
</source>
<match nginx.access>
@type elasticsearch
logstash_format true
host elasticsearchkibana
port 9200
index_name nginxindex
type_name nginxlogtype
</match>
请让我知道我错过了什么。
【问题讨论】:
标签: docker nginx kibana fluentd