【问题标题】:fluentd: ignore_repeated_log_interval and ignore_same_log_interval流利的:ignore_repeated_log_interval 和 ignore_same_log_interval
【发布时间】:2021-10-28 11:38:47
【问题描述】:

尝试使用 fluentd 系统指令 ignore_repeated_log_interval 和 ignore_same_log_interval 抑制 fluentd 中的相同日志,但未观察到任何有效操作

我的 fluentd.conf

## conf file
<match fluent.**>
      @type null
</match>
<system>
  log_level info
  ignore_repeated_log_interval 5s
  ignore_same_log_interval 5s
  suppress_repeated_stacktrace true
</system>
<source>
  @type tail
  read_from_head true
  #path /home/nikhil.nayak/ngp/dlog2.txt
  path /home/nikhil.nayak/ngp/log.txt
  pos_file /var/log/td-agent/fluentd-docker.pos
  time_format %Y-%m-%dT%H:%M:%S.%NZ
  format none
  tag docker.*
</source>
<match **>
  @type elasticsearch
  @id out_es
  @log_level info
  include_tag_key true
  logstash_format true
  host 
  port 9600
  flush_interval 5s
  type_name "_doc"
  logstash_prefix logstash
  logstash_format true
  index_name logstash
 <buffer>
   flush_thread_count 8
   flush_interval 5s
   chunk_limit_size 2M
   queue_limit_length 32
   retry_max_interval 30
   retry_forever true
 </buffer>
</match>
#<match **>
 #@type stdout
#</match>

【问题讨论】:

    标签: elasticsearch fluentd td-agent


    【解决方案1】:

    部分参数与它们自己的 Fluentd 日志记录机制有关。不适用于来自源的数据管道。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多