apisix
apisix copied to clipboard
request help: kafka-logger customizes log_format, the combination of multiple variables cannot be displayed
Current Behavior
"log_format": {
"url": "$scheme://$http_host$request_uri",
"scheme": "$scheme",
"http_host": "$http_host",
"uri": "$request_uri",
"httpversion": "$server_protocol",
"upstream_response_time": "$upstream_response_time"
}
如上自定义日志格式,“url”这行,多个变量组合的情况下,无法显示日志。
Expected Behavior
No response
Error Logs
No response
Steps to Reproduce
apisix2.13
Environment
apisix2.13
So what's the result?
What's the definition of "无法显示日志"?
What format do you expect the log to be in? What format is it in now?
"url": "$scheme://$http_host$request_uri",
I don't remember log_format supporting multiple variable combinations, where did you see that?
@wushiwei008 do you have any further questions?
Due to lack of the reporter's response this issue has been labeled with "no response". It will be close in 3 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.