I am using tyk debian package installation. I see the output logged to console. I am trying to redirect tyk gateway log to a file for production purpose. Is there a configuration available to specify the log file path?
Or logging to syslog is the only option? If so how to make syslog config for tyk.
Kos
April 10, 2017, 12:31pm
2
Hi Sai,
You are able to see a more detailed output in your Gateway log /var/log
.
Details on how to enable syslog can be found on our documentation here .
Thanks,
Kos @ Tyk Support Team
@Kos
Thanks for the very fast response. Appreciate you teams effort.
I have few question on the logging.
Can I log to specific file instead of syslog ?
Haven’t tried syslog logging yet. Does every log has a tag to denote its from tyk?
Does tyk-pump produce any log? How to enable its log to file or syslog?
@Kos
Tested the syslog for tyk gateway. Working fine. It does have a tag.
Some info on point 1 and point 2 above could be useful.
Kos
April 10, 2017, 2:47pm
5
Hi Sai,
Please check lonelycode’s answer on a similar question asked on GitHub .
Yes, you can use CSV and set the directory.
This Pump sample could be useful.
Thanks,
Kos @ Tyk Support Team
@Kos
The init scripts provide with gateway and pump deb package has the log redirection to file code. I am good with that.