Follow a Service's Logs Live with journalctl -f -u

journalctl -f -u UNIT streams new journal entries for one systemd service in real time, with timestamps and metadata.

LinuxlogsjournalctltroubleshootingLow risk
Run `journalctl -u <unit> -f` to tail a specific service's journal output live; press Ctrl+C to stop following.

01Command

Command
$ journalctl -u nginx.service -f

02What it does

Because systemd services log to the journal rather than arbitrary files, `tail -f` on a log path often misses or duplicates output; journalctl is the reliable live view. Combining -u with -f prints only that unit's entries and keeps appending new ones, showing the unit's latest boot context. Add `-n 50` to start with the last 50 lines instead of the default ten, or `-p warning` to raise the severity floor.

03Risk

RiskLow risk
Requirementssystemd with persistent or volatile journal; on some distros add your user to the systemd-journal group to read non-user logs.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • journalctl(1) - Query the systemd journal
    Ubuntu Manpages · technical · 2026-09-17
    Evidence: -f, --follow shows only the most recent journal entries, and continuously prints new entries as they are appended; -u filters by unit.

Last verified: 2026-09-17 · Category: System & Settings

06Related solutions