Bug 864672

Summary: RFE: user-friendly time-period restriction for the journalctl command line
Product: [Fedora] Fedora Reporter: Matthew Miller <mattdm>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: johannbg, lnykryn, metherid, msekleta, notting, plautrba, systemd-maint, vpavlin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-20 15:23:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Miller 2012-10-09 22:03:06 UTC
A common sysadmin task is looking in the logs to see what occurred in a given time window.

It would be nice if journalctl had a flexible, forgiving, and user-friendly command line syntax for specifying begin and end dates to show.

Comment 1 Lennart Poettering 2012-10-12 21:49:02 UTC
Fixed in git:

journalctl --since=2012-10-01

journalctl --since=-5d --until=-6h

journalctl --since=yesterday

and so on.

Since this is a minor change only I'll upload this to F18.

Comment 2 Matthew Miller 2012-10-15 12:46:17 UTC
Thanks Lennart. This is very useful and helpful.

It occurs to me that it might be nice to have an "--ondate=2012-10-01" or similar as well, to avoid having to give both start and end. But I understand there's a balance with adding more options.

Comment 3 Fedora Update System 2012-10-23 01:04:16 UTC
systemd-195-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/systemd-195-1.fc18

Comment 4 Fedora Update System 2012-10-23 06:47:48 UTC
Package systemd-195-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-195-1.fc18'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16709/systemd-195-1.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-10-26 19:37:10 UTC
Package systemd-195-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-195-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16709/systemd-195-2.fc18
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-12-20 15:23:17 UTC
systemd-195-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.