Live-tail logs for a systemd service in JSON format (journalctl)
journalctl --unit=nginx.service --follow --output=json-pretty
Follows the logs for a specific systemd unit in real-time, formatting the output as human-readable JSON.
journalctl --unit=nginx.service --follow --output=json-pretty
Follows the logs for a specific systemd unit in real-time, formatting the output as human-readable JSON.