Location of kube-proxy log file?

Using microk8s 1.18.3, latest/edge, Ubuntu 20.04

I would like to review the logs of the kube-proxy in the node. Where is its log file stored? Trying to look in /var/log/ but didn’t see anything related to kubernetes.

journalctl can return logs however. There are a lot of logs from other processes as well. With some filterring, this would probably work.

For now I am thinking of opening the kube-proxy log file. But maybe the better solution would be how to better use journalctl. Can you please suggest the best practice?

You can do a jounalctl -u snap.microk8s.daemon-proxy.

mirok8s.inspect will show you the names of all the services MicroK8s starts.