Skip to content

[QUESTION]:一个机器有多个服务的日志文件需要采集的时候 如何标记每个日志文件 目前file_log 配置fields字段无效 #225

@suifengpiaosan

Description

@suifengpiaosan

目前的配置文件
enable: true
inputs:

  • Type: file_log
    LogPath: xxx
    FilePattern:xxx
    Fields:
    service: A
  • Type: file_log
    LogPath: xxx
    FilePattern:xxx
    Fields:
    service: B
    processors:
  • Type: processor_add_fields
    Fields:
    aaa2: value3
    aaa3: value4
    aaa1: value1
    flushers:
  • Type: flusher_kafka
    Brokers:
    • 10.190.50.204:9092
      Topic: access-log

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions