[QUESTION]:一个机器有多个服务的日志文件需要采集的时候 如何标记每个日志文件 目前file_log 配置fields字段无效 #237
Answered
by
panawala
suifengpiaosan
asked this question in
Help
-
目前的配置文件
|
Beta Was this translation helpful? Give feedback.
Answered by
panawala
Jul 28, 2022
Replies: 2 comments
-
或者有没有其他的实践方式 |
Beta Was this translation helpful? Give feedback.
0 replies
-
file_log插件是支持通配符匹配文件路径,采集上来的日志会有一个标签字段 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
messixukejia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
file_log插件是支持通配符匹配文件路径,采集上来的日志会有一个标签字段
__tag__:__path__
表示文件的原始路径,具体可以参考:file_log插件用法