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

logs not indexed on MacOS #1

Closed
makuk66 opened this issue Oct 26, 2019 · 1 comment
Closed

logs not indexed on MacOS #1

makuk66 opened this issue Oct 26, 2019 · 1 comment

Comments

@makuk66
Copy link

makuk66 commented Oct 26, 2019

Thanks @lvthillo for this repo and the associated article on ITNEXT.

If you're using Docker Desktop for Mac, the config provided does not work — the logs do not make it to Logstash or ElasticSearch. Per the Docker docs you need:

    logging:
      driver: gelf
      options:
        gelf-address: "udp://host.docker.internal:12201"

in the docker-compose.yml, and similarly:

docker run -d -p 8080:80 --log-driver gelf --log-opt gelf-address=udp://host.docker.internal:12201 nginx:latest

when running Nginx.

I just figured I'd mention that here in case it might save someone else some time.

lvthillo added a commit that referenced this issue Oct 26, 2019
@lvthillo
Copy link
Owner

@makuk66 Thank you very much for your remark. I've tested it and you are correct. I've added this info to the docker-compose.yml and to the blog post!

@makuk66 makuk66 closed this as completed Oct 26, 2019
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

2 participants