我是靠谱客的博主 现代火车,这篇文章主要介绍Rancher从入门到精通- Filebeats input多个log文件,输出Kafka多个topic配置,现在分享给大家,希望可以做个参考。

filebeat.inputs:
- type: log
  paths:
    - /home/resource/project/upload/logs/userorderinfo_*.log
  fields:          
    log_topic: userOrder
- type: log
  paths:
    - /home/resource/project/upload/logs/useraction_*.log
  fields:          
    log_topic: userBehavior
- type: log
  paths:
    - /home/resource/project/upload/logs/servicecall_*.log
  fields:          
    log_topic: userTest

output.kafka:
  # initial brokers for reading cluster metadata
  hosts: ["10.0.0.111:9092", "10.0.0.112:9092", "10.0.0.113:9092"]

  # message topic selection + partitioning
  topic: '%{[fields.log_topic]}'
  partition.round_robin:
    reachable_only: false

  required_acks: 1
  compression: gzip
  max_message_bytes: 1000000

最后

以上就是现代火车最近收集整理的关于Rancher从入门到精通- Filebeats input多个log文件,输出Kafka多个topic配置的全部内容,更多相关Rancher从入门到精通-内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(129)

评论列表共有 0 条评论

立即
投稿
返回
顶部