user11810894
user11810894

Reputation:

How to tail/stream syslog in Nixos

I was looking here: https://github.com/NixOS/nixos/blob/master/modules/services/logging/syslogd.nix

I tried a simple:

tail -f /var/log/syslog

but that yields:

tail: cannot open '/var/log/syslog' for reading: No such file or directory

Upvotes: 2

Views: 3143

Answers (1)

Robert Hensing
Robert Hensing

Reputation: 7389

Did you enable syslogd? By default, system logging is done by journald.

Assuming you enabled syslogd

Look at the default configuration in the syslogd service definition to see where it logs. /var/log/syslog is currently not there or in the manpage.

Assuming journald

Use

journalctl -f

Upvotes: 5

Related Questions