美文网首页
ELK-filebeat-nginx-yaml

ELK-filebeat-nginx-yaml

作者: 小浪崇礼 | 来源:发表于2020-04-18 15:48 被阅读0次

    filebeat.prospectors:

    - type: log

      paths:

        - /usr/local/nginx/logs/access.log

      # tags: ["access"]

      fields:

        app: www

        type: nginx-access

      fields_under_root: true

    - type: log

      paths:

        - /usr/local/nginx/logs/error.log

      # ags: ["error"]

      fields:

        app: www

        type: nginx-error

      fields_under_root: true

    output.redis:

      hosts: ["192.168.0.215"]

      password: "123456"

      key: "filebeat"

      db: 0

      datatype: list

    相关文章

      网友评论

          本文标题:ELK-filebeat-nginx-yaml

          本文链接:https://www.haomeiwen.com/subject/tjpbvhtx.html