filebeat收集nginx的日志

1.nginx -- filebeat -- es -- kibana

[root@VM-1-12-centos filebeat-6.4.3-linux-x86_64]# cat  filebeat.yml
filebeat.inputs:

- type: log

  enabled: true
  paths:

    - /wxqyh/component/nginx/logs/access.log

  json.keys_under_root: true
  json.add_error_key: true
  json.overwrite_keys: true
output.elasticsearch:

  hosts: ["10.120.1.7:9200"]
  index: "filebeat-testindex-%{+yyyy.MM.dd}"
setup.template.name: "filebeattest"

setup.template.pattern: "filebeattest-*"

 2.腾讯云容器服务日志采集最佳实践

https://mp.weixin.qq.com/s?__biz=Mzg5NjA1MjkxNw==&mid=2247488591&idx=1&sn=a319d0c02594ffc68843b92d75d45554&chksm=c007af95f7702683c4b0fedb99df930da42d71b444432ba728bced34f9496727ee332417ed09&mpshare=1&srcid=1020LyhbGqGnjVtG98sorNe8&sharer_sharetime=1603160416092&sharer_shareid=cf94d0f6a95a105de12fa02c8c42659e&scene=1&subscene=10000&clicktime=1605607052&enterid=1605607052&ascene=1&devicetype=android-29&version=3.0.36.2008&nettype=cmnet&abtest_cookie=AAACAA%3D%3D&lang=zh_CN&exportkey=AWiSTyPp%2F5GpL5xef5FB0O4%3D&pass_ticket=xYHqAZsdURqODbv3LsxOMNP%2BmaTCvDegUODEGMno3zooXQ9iDocZXVhRvyAip74Q&wx_header=1&platform=win

技术架构

 

采集标准输出

3. 部署 fluend-elasticsearch 日志 <kubernetes 各种问题汇总>

https://m.zhipin.com/mpa/html/get/column?contentId=74328044f5a55bbdqxB4098~&identity=0&userId=115280209

用一个例子来演示会更加清晰
原文地址:https://www.cnblogs.com/hixiaowei/p/13863121.html