[Bug] 使用正则处理暴露的容器环境变量提示匹配失败 #666
Answered
by
jingliming
jingliming
asked this question in
Help
-
需求描述
期望能够正常解析 结果环境变量内容
提示正则匹配失败 2023-02-17 08:36:19 [WRN] [regex.go:110] [processRegex] [config#/usr/local/ilogtail/./user_yaml_config.d/nginx_stdout.yaml,] AlarmType:REGEX_UNMATCHED_ALARM unmatch this log content:topic=bizworks-logging-trace,tenantId=102790805516,clusterCode=f5f2f46bbbed4ed08fa57c80364f9ff2,envType=production,envCode=environmentcode5233,appCode=code8308,projectCode=at-testprojectcode7971 logstore: config:config#/usr/local/ilogtail/./user_yaml_config.d/nginx_stdout.yaml |
Beta Was this translation helpful? Give feedback.
Answered by
jingliming
Feb 17, 2023
Replies: 1 comment
-
找到问题了,是正则写的有问题,现在可以正常采集了 |
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
找到问题了,是正则写的有问题,现在可以正常采集了
因为该环境变量部分pod缺少appcode和projectcode,先临时不获取这两个变量了