ilogtail icon indicating copy to clipboard operation
ilogtail copied to clipboard

[FEATURE]: Support for multiple input configurations

Open shalousun opened this issue 1 year ago • 3 comments

Concisely describe the proposed feature Ability to configure multiple log collection inputs in one yaml configuration file

可以在一个yaml配置文件中配置多个input

For example

enable: true
inputs:
   - Type: file_log
     LogPath: /data/logs/StarRocks
     FilePattern: '*.log'
   - Type: file_log
     LogPath: /data/starrocks/
     FilePattern: '*.INFO'
flushers:
   - Type: flusher_stdout
     OnlyStdout: true

The log collection input configuration of community open source components like beats and fluent-bit is also more like the above method, so the configuration file is easier to use.

beats、fluent-bit开源组件的采集输入配置也更像上面的这种方式,这样配置文件使用也简单一些。 Describe the solution you'd like (if any)

Additional comments

shalousun avatar Apr 19 '23 08:04 shalousun

@yyuuttaaoo 关注下,后续考虑支持下

messixukejia avatar Apr 19 '23 08:04 messixukejia

我刚刚也发现好像不支持多个input,但是input是个数组。

PungYoung avatar Nov 01 '23 14:11 PungYoung

user_yaml_config.d/下可以创建多个yaml,支持热加载

PungYoung avatar Nov 02 '23 08:11 PungYoung