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

higress envoy日志user-agent字段在嵌套json时无法解析 #1649

Open
heartbeat2013 opened this issue Jan 7, 2025 · 0 comments
Open

Comments

@heartbeat2013
Copy link

accessLogFormat中 user_agent配置 : "user_agent":"%REQ(USER-AGENT)%"
我们线上一些user_agent如下
"http_user_agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 18_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) ###{"version":"7.0.0.0","platform":"iOS","os":"18.2","loc":"--","uuid":"750E8975-4CBA-486E-A5DB-F32E109A"}"
由于agent字段中嵌套了json数据,导致日志解析时失败( LogParseFailure),看后续这块后续能不能优化一下,日志配置上能支持转义

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant