All three tyk components (gateway, dashboard and pump) have their logs recorded in the /var/log/messages location. Please follow the instructions below; if you prefer to separate each tyk components log on to a separate file.
# Create directory for log file
mkdir /var/log/tyk
chown -R syslog:adm /var/log/tyk
# Then add config file /etc/rsyslog.d/tyk.conf
if $programname == 'tyk' then /var/log/tyk/tyk-gateway.log
& stop
sudo systemctl daemon-reload
# restart syslog and gateway service
sudo systemctl restart rsyslog.service
sudo systemctl restart tyk-gateway
Comments
0 comments
Please sign in to leave a comment.