Bug 86874

Summary: RFE: journalctl: add convenience method to show entries since last service start
Product: systemd Reporter: Elias Probst <mail>
Component: generalAssignee: systemd-bugs
Status: NEW --- QA Contact: systemd-bugs
Severity: enhancement    
Priority: medium CC: alexandre
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Elias Probst 2014-11-30 12:13:15 UTC
For development/testing reasons, a service might be restarted a lot.

It would be very handy, to have a journalctl parameter which allows to only show entries of the current service runtime (similar to -b for the current system boot, but with the scope reduced from the system to the service runtime).

Currently, this is only possible by manually looking up the time when the service started and then using --since= to filter the ouput.

Having something like -s/--since-start would make this way easier.
Comment 1 Zbigniew Jedrzejewski-Szmek 2014-11-30 14:20:19 UTC
Agreed, that'd be useful.
Comment 2 Alexandre Detiste 2014-12-01 12:36:23 UTC
+1

I tried to do this with 'cursor' options, but it was horribly convoluted;
now my script just send by mail the default overview of the journal as shown by 'systemctl status <service>' & users must SSH in to get the detail.


'journalctl -o cat' still show 'Starting ...' at the top & 'Started ...' at the bottom.
It would be nice if there was a way to hide those, especialy for Type=oneshot services.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.