几个小时后,流利的停止发送日志到elasticsearch

时间:2018-02-21 14:25:58

标签: elasticsearch fluentd efk

我有一个简单的Fluentd-Elasticsearch-Kibana设置,它有一个非常奇怪的行为。流畅的观众在3小时后停止向弹性搜索发送信息。

我在一个简单的docker-compose文件中运行所有内容

version: '2'
services:

fluentd:
  build: ./fluentd
  volumes:
    - ./fluentd/conf:/fluentd/etc
  links:
    - "elasticsearch"
  ports:
    - "24225:24225"
    - "24225:24225/udp"

elasticsearch:
  image: elasticsearch
  expose:
    - 9200
  ports:
    - "9200:9200"

kibana:
  image: kibana
  links:
    - "elasticsearch"
  ports:
    - "5601:5601"

fluentd是在此dockerfile

之后构建的
# fluentd/Dockerfile
FROM fluent/fluentd:v0.12-debian
RUN ["gem", "install", "fluent-plugin-elasticsearch", "--no-rdoc", "--no-ri", "--version", "1.9.2"]

它有以下配置文件

<source>
  @type forward
  port 24225
  bind 0.0.0.0
</source>
<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 1s
  </store>
  <store>
    @type stdout
  </store>
</match>

所有在云中运行,并且在同一台机器中运行。 从我发送我的日志的其他机器/实例,流利的确实接收完美的日志。问题是,每3个小时后,流利的人突然停止将这些日志转发给我的elasticsearch。 没有错误信息,没有。如果我重新启动流畅的容器,一切都可以在接下来的3个小时内完成。

我寻找这种行为,但无法找到任何解释或某人的情况接近这一点。有一个人有类似这个问题的东西,但最后它与弹性搜索有关,而不是流利的......

0 个答案:

没有答案