apisix icon indicating copy to clipboard operation
apisix copied to clipboard

request help: kafka-logger customizes log_format, the combination of multiple variables cannot be displayed

Open wushiwei008 opened this issue 3 years ago • 4 comments

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

wushiwei008 avatar Sep 13 '22 08:09 wushiwei008

So what's the result?

tokers avatar Sep 13 '22 09:09 tokers

What's the definition of "无法显示日志"?

tokers avatar Sep 13 '22 09:09 tokers

What format do you expect the log to be in? What format is it in now?

guitu168 avatar Sep 13 '22 10:09 guitu168

"url": "$scheme://$http_host$request_uri",

I don't remember log_format supporting multiple variable combinations, where did you see that?

tzssangglass avatar Sep 13 '22 10:09 tzssangglass

@wushiwei008 do you have any further questions?

shreemaan-abhishek avatar Sep 06 '23 06:09 shreemaan-abhishek

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.

github-actions[bot] avatar Sep 20 '23 10:09 github-actions[bot]

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.

github-actions[bot] avatar Sep 23 '23 10:09 github-actions[bot]