TykTechnologies / tyk

Tyk Open Source API Gateway written in Go, supporting REST, GraphQL, TCP and gRPC protocols
Other
9.6k stars 1.08k forks source link

How to export Tyk runtime logs to host machine file when using docker? #1748

Closed hustshawn closed 4 years ago

hustshawn commented 6 years ago

Do you want to request a feature or report a bug? feature What is the current behavior? Currently all logs are default docker stdout, can only be accessed by docker logs command. What is the expected behavior? All Tyk related containers (tyk_gateway, tyk_dashboard, .etc) logs that can be seen from docker logs can be exported to a log file in the host machine. Of course, I can use the redirection operator "> somelogfile.log", but it is not a convenient way to do so and can not even be archived when the log accumulate to some size. If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

Which versions of Tyk affected by this issue? Did this work in previous versions of Tyk? all docker version

buger commented 6 years ago

Hi! In addition to STDOUT you can also send logs to various systems like Graylog, Logstash, or Syslog. See more details here https://tyk.io/docs/log-data/#aggregated-logs-with-syslog.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, please add comments to this ticket if you would like it to stay open. Thank you for your contributions.