Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ilogtail是否同时支持多个格式的文件 #1492

Closed
TaylorJJL opened this issue May 16, 2024 · 0 comments
Closed

ilogtail是否同时支持多个格式的文件 #1492

TaylorJJL opened this issue May 16, 2024 · 0 comments
Labels
question Further information is requested

Comments

@TaylorJJL
Copy link

我尝试一个配置文件里配置多个input插件采集不同格式的文件,但无法正常采集到,,想咨询如何在一个配置中配置多个inpu插件采集不同格式的文件?
写出inputs的配置如下:

apiVersion: v1
kind: ConfigMap
metadata:
  name: ilogtail-user-cm
  namespace: kube-system
data:
  python-json.yaml: |
    enable: true
    inputs:
      - Type: file_log
        LogPath: "/data/logs/"
        FilePattern: "info.log"
        MaxDepth: 2
    processors:
      - Type: processor_split_log_regex
        SplitRegex: ^\[\s?\S+].*
        SplitKey: content
        PreserveOthers: true
    flushers:
      - Type: flusher_kafka_v2
        Brokers: ...
 enable: true
    inputs:
      - Type: file_log
        LogPath: "/data/logs/"
        FilePattern: "*.json"
        MaxDepth: 2
    processors:
      - Type: processor_json
        SplitKey: content
        KeepSource: false
        ExpandDepth: 1
        ExpandConnector: ""
    flushers:
      - Type: flusher_kafka_v2
        Brokers: 

@TaylorJJL TaylorJJL added the question Further information is requested label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant