Bug 1372080

Summary: journalctl: -n and -U/-S do not work together
Product: [Fedora] Fedora Reporter: Zing <zing>
Component: systemdAssignee: systemd-maint
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: johannbg, jsynacek, lnykryn, msekleta, muadda, ssahani, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-01 12:57:10 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:

Description Zing 2016-08-31 20:39:22 UTC
Description of problem:
The output from -n and -U/-S when used together are not working.


Version-Release number of selected component (if applicable):
systemd-229-13.fc24.x86_64

Steps to Reproduce:

$ journalctl -n -S today
outputs messages starting from the beginning of the day, should output most recent messages like -n alone would do.

$ journalctl -n -U today
outputs nothing (just the journalctl initial log header), should output the last 10 messages dated yesterday.

$ journalctl -n -S yesterday -U today
outputs 10 messages starting yesterday, should output the last 10 messages dated yesterday

Comment 1 Jan Synacek 2016-09-01 12:57:10 UTC
Looking at the code, it's not even supposed to work like that... Having said that, I don't consider this a bug. If you really want this implemented, please consider filing an upstream issue.