How do I get the logs for Istiod ? Where are they located and is there a command with istioctl to get these logs? If not it would certainly make sense to add this command. I am on Ubuntu Linux:18:04 with some nodes being LXC.
Hi,
You can use regular kubectl logs
command to inspect/see/watch the logs of any pod in your kubernetes cluster, including istiod.
Can we persist these application logs to a file in the service directory theough Istio configuration? VirtualService config maybe?
Hi. While using kubectl logs ...
works, you may need to increase istiod itself log level, which is not the same as AccessLogs (don’t get confused).
To achieve this, you can:
- kubectl edit istiod deployment and look for the container command:
spec:
containers:
- args:
- discovery
- --monitoringAddr=:15014
- --log_output_level=default:info <-- Change it to, e.g., debug
- You can use istio dashboard controlZ:
istioctl dashboard controlz <istiod_pod>.<istiod_ns>
and find your way to the logs sections.
1 Like