Bug 86874 - RFE: journalctl: add convenience method to show entries since last service start
Summary: RFE: journalctl: add convenience method to show entries since last service start
Status: NEW
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: systemd-bugs
QA Contact: systemd-bugs
Depends on:
Reported: 2014-11-30 12:13 UTC by Elias Probst
Modified: 2014-12-01 12:36 UTC (History)
1 user (show)

See Also:
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

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.