Forward logs to ELK
Corteza server can log requests, responses, errors and other events as JSON. By default, this logs are outputted to Docker container console. You can configure your (docker-compose) services to forward these logs to an external service.
We’ve prepared cortezaproject/elk
docker image with the necessary setup that can consume and
Using GELF docker logging driver and GELF ELK server
The following example assumes you’ve taken configuration from cortezaproject/elk without any changes.
You should also extend defined services in your docker-compose.yml
with networks
and logging
section:
# ...
networks: [ elk ] # or add elk to networks you already have
logging:
driver: gelf
options:
gelf-address: "tcp://elk:12201"
# ...