How to get access-logs from openshift router (HAproxy).
I tried to use this command:
$ oc project default
$ oc logs router-1-g...
I got output:
I0129 09:47:17.125616 1 router.go:554] Router reloaded:
- Checking http://localhost:80 ...
- Health check ok : 0 retry attempt(s).
I0129 09:47:54.356142 1 router.go:554] Router reloaded:
- Checking http://localhost:80 ...
- Health check ok : 0 retry attempt(s).
But there was no information about users traffic (client/server requests/responses).
Please give me advice on how I can debug how this proxy is working?
You will need to point the router at a syslog server to debug the output. No access logs are output by default. You are seeing the logs of the Go process.
I created a rsyslog container some time ago to help debug issues with a custom router. This will log to stdout for debugging purposes only. Follow the instructions in the readme to deploy this within the default project. Shout if you need any further help.