Bug 1463678 - Cannot use "-b" and "-D" parameters to journalctl command simultaneously
Cannot use "-b" and "-D" parameters to journalctl command simultaneously
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: systemd-maint
Depends On:
  Show dependency treegraph
Reported: 2017-06-21 09:13 EDT by Renaud Métrich
Modified: 2017-07-10 10:57 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Renaud Métrich 2017-06-21 09:13:14 EDT
Description of problem:

The "-D" parameter is widely used for examining journals taken on remote machines.
journalctl returns an error when "-D" parameter is specified and "-b" or "--list-boots" parameter is specified on same command line. 

# journalctl -b -D /run/log/journal
Using --boot or --list-boots with --file, --directory or --merge is not supported.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. journalctl -b -D /run/log/journal

Actual results:

Using --boot or --list-boots with --file, --directory or --merge is not supported.

Expected results:

Journal for latest boot to be displayed.

Additional info:

The workaround is to remove the local journals in /run/log or /var/log and copy the saved journals to these directories in order to be able to browse them.

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