M HYPE SPLASH
// updates

Where are network manager logs? (16.04)

By Emma Valentine

I have new Ubuntu and I want to debug some errors in network settings.

I cannot find log for NetworkManager.

/var/log/syslog and /var/log/daemon.log - what people recommend on this stack exchange in other questions - are both empty.

Python script from this page - - doesn't exist anymore.

sudo service network-manager status displays a few lines of the log, but not all.

2 Answers

journalctl does the trick:

journalctl -u NetworkManager.service

-u, --unit=UNIT|PATTERNShow messages for the specified systemd unit UNIT (such as a service unit), or for any of the units matched by PATTERN. [...]

4

You can also try this one. You'll see some Network Manager state changes with this one.

sudo journalctl -fu NetworkManager

e.g.,

Mar 15 09:06:37 macbookair NetworkManager[1098]: <info> [xxx] keyfile: add connection in-memory (xxx,"tun0")
Mar 15 09:06:37 macbookair NetworkManager[1098]: <info> [xxx] device (tun0): state change: unavailable -> disconnected (reason 'connection-assumed', sys-iface-state: 'external')
Mar 15 09:06:37 macbookair NetworkManager[1098]: <info> [xxx] device (tun0): Activation: starting connection 'tun0' (xxx)

-f, --followShow only the most recent journal entries, and continuously print new entries as they are appended to the journal.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy