Skip to content

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

Answered by panawala
suifengpiaosan asked this question in Help
Discussion options

You must be logged in to vote

file_log插件是支持通配符匹配文件路径,采集上来的日志会有一个标签字段__tag__:__path__表示文件的原始路径,
具体可以参考:file_log插件用法

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by messixukejia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #225 on July 29, 2022 02:17.