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

采集容器日志文件时,如何添加元数据等信息? #1774

Closed
yangzw1024 opened this issue Sep 20, 2024 · 0 comments
Closed

采集容器日志文件时,如何添加元数据等信息? #1774

yangzw1024 opened this issue Sep 20, 2024 · 0 comments
Labels
question Further information is requested

Comments

@yangzw1024
Copy link

在 k8s 集群中,我使用 DaemonSet 方式部署 ilogtail, k8s 中的 pod 会产生标准输出和记录日志到 hostpath 方式挂载日志盘中,如 /data/logs/{namespace}/{pod_name}/xxx.log, 我知道在采集标准输出时 ilogtail 可以通过配置自动添加上相关元数据,如 namespace, label 等,但是在采集 hostpath 路径下的日志时,如何添加相关元数据呢? 比如 /data/logs/{namespace}/{pod_name}/xxx.log 路径中的 namespace 和 pod_name,以及 pod 的 label 等其它信息

@yangzw1024 yangzw1024 added the question Further information is requested label Sep 20, 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