Bug 978958

Summary: RFE: journalctl should be case insensitive and use of "*"
Product: Red Hat Enterprise Linux 7 Reporter: Petr Sklenar <psklenar>
Component: systemdAssignee: systemd-maint
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: akarlsso, andriusb, harald, lnykryn, mtessun, ohudlick, plambri, sclark, svenkatr, systemd-maint-list
Target Milestone: rcKeywords: FutureFeature, Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 11:55:31 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:
Bug Depends On:    
Bug Blocks: 959971    

Description Petr Sklenar 2013-06-27 11:37:53 UTC
Description of problem:
 journalctl should be case insensitive and couls accept *

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

How reproducible:
its rfe

Steps to Reproduce:
1. journalctl --unit Network*
2. journalctl --unit Networkmanager

Actual results:
journalctl accepts only strict name of the unit.
Please add some behaviour to be case insensitive
journalctl --unit NetworkManager is only one possible way

Expected results:
journalctl --unit networkmanager
journalctl --unit network*
journalctl --unit Network*


Additional info:

Comment 3 Harald Hoyer 2013-06-27 12:25:04 UTC
you know, that you have bash completion with <tab> ?

Comment 4 Lukáš Nykrýn 2013-07-23 14:45:29 UTC
I think that <tab> here is a nice solution and names of unit files are case-sensitive, so this would lead to inconsistency. Also --unit can be specified only once and takes only one argument.

Comment 5 Petr Sklenar 2013-08-06 13:46:44 UTC
Hello,
please could you consider usage of asterisk or any grepping feature 

some usecase like:

1, you would like service network + NetworkManager:
journalctl --unit [nN]etwork*

2, grep all from log daemons, and you don't know if there is syslog / rsyslog on the system:
sudo journalctl --unit *syslog

3, you are not sure about the right name:
sudo journalctl --unit *vnc

Comment 11 Harald Hoyer 2013-09-06 09:59:34 UTC
Tab completion is the solution in Fedora for this problem.

The internal structure of the journal index does not easily allow support of wildcards.

The usability issues are better addressed with bash completion, which already works... 

_BUT_ apparently somebody decided, that RHEL-7 should _NOT_ have bash completion at all.

Comment 12 Lukáš Nykrýn 2014-06-13 11:55:31 UTC
At the end rhel7 has bash-completion, which solves this issue quite nicely.