I'm particularly interested in this for looking at the output of oneshot services that run on a timer. The --unit
flag is close, but it concatenates all the runs of the service together. The most obvious way I can think of would be to filter on PID, but that makes me worry about PID reuse / services that fork, and getting the last PID is pretty inconvenient. Is there some other identifier that corresponds to a single run of a service, that I could use to filter the logs?
EDIT: I would happily accept an authoritative "no" if that's the real answer.