Bug 985548 - RFE: improve journalctl filtering by _COMM
Summary: RFE: improve journalctl filtering by _COMM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 19
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: 2013-07-17 17:53 UTC by John Florian
Modified: 2013-10-21 21:32 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-21 21:32:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch adding _COMM smarts (6.69 KB, patch)
2013-07-19 08:06 UTC, Zbigniew Jędrzejewski-Szmek
no flags Details | Diff

Description John Florian 2013-07-17 17:53:43 UTC
Description of problem:
journalctl would benefit by having a more convenient way to filter by _COMM.  If I want to see a particular python program, I have to use:

  journalctl _COMM=foo

I am proposing a -C option (like ps) which would shorten this to:

  journalctl -C foo

On fedora-devel (circa 2013-07-17 12:19ish EDT), it was mentioned that journalctl can also use:

  journalctl foo

but that isn't useful for all cases, like python scripts where foo could match python, but not the name of the python program itself.  It was also mentioned that perhaps this mechanism just needs to be made smarter to handle such cases.  That would be equally welcome, if not more so.

Version-Release number of selected component (if applicable):
systemd-204-9.fc19.x86_64

Comment 1 Michal Schmidt 2013-07-19 06:46:48 UTC
For the record, here's a link to the sub-thread on fedora-devel:
https://lists.fedoraproject.org/pipermail/devel/2013-July/185889.html

Comment 2 Zbigniew Jędrzejewski-Szmek 2013-07-19 08:06:39 UTC
Created attachment 775668 [details]
patch adding _COMM smarts

Comment 3 Zbigniew Jędrzejewski-Szmek 2013-07-26 16:18:30 UTC
Patch applied upstream in http://cgit.freedesktop.org/systemd/systemd/commit/?id=68fee104e63.

Comment 4 Fedora Update System 2013-09-13 16:16:00 UTC
systemd-207-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/systemd-207-1.fc20

Comment 5 Fedora Update System 2013-09-23 00:04:10 UTC
systemd-207-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Zbigniew Jędrzejewski-Szmek 2013-10-21 21:32:55 UTC
Previous update for F19 had this patch.


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