Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

加入多行配置重新生成的镜像,没法再收集普通json格式的日志了 #308

@zerostarfro

Description

@zerostarfro

目前集群内有两类日志需要收集: spring微服务日志 以及 ingress-nginx日志 json格式(无法采集)
为了满足多行合并的需求,filebeat.tpl修改如下:
image
spring采集定义如下:
- name: aliyun_logs_xxx1
value: stdout
- name: aliyun_logs_xxx1_tags
value: "env=seaprod,project=xxx1,type=app-health-gateway"
ingress-nginx采集定义如下:
- name: aliyun_logs_xxx2
value: stdout
- name: aliyun_logs_xxx2_format
value: json
- name: aliyun_logs_xxx2_tags
value: "env=seaprod,project=xxx2,type=ngx-access"
现在的问题是修改镜像满足多行合并后,便无法采集json格式的ingress-nginx日志了。有什么办法可以让logpit同时采集多种不同格式类型的日志源吗~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions