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

Enable docker-logs feature #40

Closed
jalberto opened this issue Jun 15, 2016 · 7 comments
Closed

Enable docker-logs feature #40

jalberto opened this issue Jun 15, 2016 · 7 comments

Comments

@jalberto
Copy link

As this image by default doesn't throw logs to std* is harder to debug problems.

Nginx official docker use this trick to enalbe docker-logs:

# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
    && ln -sf /dev/stderr /var/log/nginx/error.log
@robermorales
Copy link

Any update on this?

@eric239
Copy link

eric239 commented Jul 30, 2017

Turning all logging to go to stdout is the recommended, and nowdays de-facto standard. Not having this supported by docker-kong makes it hard to deploy kong in a container environment... please, any word from the team?

@gaieges
Copy link

gaieges commented Aug 4, 2017

I would be happy to do this if you're okay with that @Tieske. I could also use this on my end.

(edit: just saw the other PR's for this, is there something we're waiting on? would be glad to help make that happen)

@GrantJamesPowell
Copy link

Did this get fixed? Its a bit of a blocker for us

@thibaultcha
Copy link
Member

How about:

$ docker run --rm -d \
    --name kong --link kong-tests-postgres:kong-database \
    -e "KONG_DATABASE=postgres" \
    -e "KONG_PG_HOST=kong-database" \
    -e "KONG_PROXY_ERROR_LOG=/dev/stdout" \
    -e "KONG_LOG_LEVEL=debug" \
    kong:0.11.0

@cilindrox
Copy link
Contributor

@thibaultcha there's also the admin console and proxy access, eg:

  - KONG_ADMIN_ACCESS_LOG='/dev/stdout'
  - KONG_ADMIN_ERROR_LOG='/dev/stderr'
  - KONG_PROXY_ACCESS_LOG='/dev/stdout'
  - KONG_PROXY_ERROR_LOG='/dev/stderr'

@gaieges
Copy link

gaieges commented Sep 11, 2017

@cilindrox I couldn't get that to work previously, but somehow it's working now. Thanks!

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

8 participants