Skip to content

Unable to Specify Custom Log Format Using Docker-Compose #2333

Answered by barnes-c
barnes-c asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to fix it by changing the environment variables to this:

   environment:
      ENABLE_IPV6: 'True'
      LOG_FORMAT: "$$remote_addr - $$remote_user [$$time_local] \"$$request\" $$status $$body_bytes_sent \"$$http_referer\" \"$$http_user_agent\" request_time=$$request_time $$upstream_response_time" # - LOG_FORMAT='$$host $$remote_addr - $$remote_user [$$time_local] "$$request" $$status $$body_bytes_sent $$request_time "$$http_referer" "$$http_user_agent" "$$upstream_addr"'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by barnes-c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant