ilogtail-1.8.4关于收集K8S共享pvc内日志目录,tag错乱的问题 #1467
-
例如,elk中tag如下: 正常情况下应该收集/data/logs/hcapp/detail.log |
Beta Was this translation helpful? Give feedback.
Answered by
messixukejia
May 7, 2024
Replies: 2 comments 1 reply
-
采集配置是只有一个用于采集所有的应用? |
Beta Was this translation helpful? Give feedback.
0 replies
-
LogPath定义为 /data/logs,此目录内的应用是区分子目录的,但是无法通过FilePattern 正则的方式通过一个采集配置文件区分下。 由于微服务应用数量过百,咱们FilePattern 是否支持变量的方式,与采集到的环境变量来组合匹配。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
enable_env_ref_in_config 开关是在开源版是默认开启的,所以上图的功能直接可用。
如果解决了问题,欢迎帮忙在如下文档提交个pr完善下,多谢。
https://github.com/alibaba/ilogtail/blob/main/docs/cn/configuration/collection-config.md
另外,也麻烦登记下使用场景。#693