3
I have a running systemd unit and I want to follow it's log.
I know I can show unit's log by using:
journalctl -u my_unit.service
But that only prints current logs without following them.
I know I can also follow systemd
logs by using:
journalctl -f
But that spams the output by following all known logs, so I have to search for what I'm interested in.
A temporary solution seems to be piping followed logs to grep filtering the output, but that's not very systematic solution:
journalctl -f | grep "what i'm interested in"
Isn't there a command for following logs of certain unit?
What I've tried, but didn't work:
journalctl -uf my_unit.service