Bug 1372080 - journalctl: -n and -U/-S do not work together
Summary: journalctl: -n and -U/-S do not work together
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-31 20:39 UTC by Zing
Modified: 2016-09-01 12:57 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-01 12:57:10 UTC
Type: Bug


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.