流利的-如何将日志本地存储在节点上?

我想将日志保存在文件中,但不保存在容器中。 我想在数据中保持持久性,并且我不想“丢失”文件,以防重新启动pod。 我已经将其发送到elasticSearch-我也希望将其保存在本地。

 output-es-healthcheck.conf: |
    <match kube.healthcheck.*>
      @type elasticsearch
      @log_level info
      include_tag_key true
      # Replace with the host/port to your Elasticsearch cluster.
      # This assumes a service `elasticsearch` exists in the default namespace
      host 35.188.202.84
      port 9200
      scheme http
      ssl_verify false
      index_name fluentd-healthcheck3
      flush_interval 10s
      max_retry_wait 30
      disable_retry_limit
      num_threads 8
    </match>

什么是最好的方法?

swf1014 回答:流利的-如何将日志本地存储在节点上?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2994877.html

大家都在问