After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 784798 - Logs should be able to list logs of a given executable
Logs should be able to list logs of a given executable
Status: RESOLVED OBSOLETE
Product: gnome-logs
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-logs maintainer(s)
gnome-logs maintainer(s)
Depends on:
Blocks: 784896
 
 
Reported: 2017-07-11 14:12 UTC by Felipe Borges
Modified: 2018-05-22 13:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Allow a single executable view (5.27 KB, patch)
2017-07-11 14:12 UTC, Felipe Borges
none Details | Review

Description Felipe Borges 2017-07-11 14:12:33 UTC
I would like to be able to launch Logs from my application and list only logs related to it.

For context: sometimes there are errors down the stack in Boxes, which cannot be handled by the application itself. I would like to point directly to the logs which might be related the problems.

Manually, I often use journalctl EXE= to filter, and I think the results are quite convenient.
Comment 1 Felipe Borges 2017-07-11 14:12:54 UTC
Created attachment 355332 [details] [review]
Allow a single executable view

Logs is so far unable to be launched with an specific application
context. Although it is desirable that other applications would
launch Logs listing only their specific journal entries.

This patch makes it possible to pass an executable as a command
line argument and present only logs related to that executable.

This is achieved by the "_EXE=" parameter of journalctl.
Comment 2 Pranav Ganorkar 2017-07-14 18:22:03 UTC
This is a pretty useful feature ! Though, you can always select "Executable Path" as the journal field from the search popover to get the logs related to a executable.
Comment 3 Felipe Borges 2017-07-17 11:55:04 UTC
Thanks for commenting.

(In reply to Pranav Ganorkar from comment #2)
> This is a pretty useful feature ! Though, you can always select "Executable
> Path" as the journal field from the search popover to get the logs related
> to a executable.

right, but I would like to be able to filter them right from the command line (so my application can launch Logs itself).

If this is a desirable feature, we could discuss whether using the _EXE filter sounds like a good idea, etc..
Comment 4 Jonathan Kang 2017-07-19 10:08:08 UTC
(In reply to Felipe Borges from comment #3)
> Thanks for commenting.
> 
> (In reply to Pranav Ganorkar from comment #2)
> > This is a pretty useful feature ! Though, you can always select "Executable
> > Path" as the journal field from the search popover to get the logs related
> > to a executable.
> 
> right, but I would like to be able to filter them right from the command
> line (so my application can launch Logs itself).
> 
> If this is a desirable feature, we could discuss whether using the _EXE
> filter sounds like a good idea, etc..

Sounds good. It will be more convenient for those who want to launch Logs and see
the expected result directly.

But there are a few thing I'd like to address:
1. Use "gnome-logs _EXE=/path/to/executable" instead of
  "gnome-logs /path/to/executable" so that we can extend this feature to more
  desirable journal fields in the future.
2. Is it necessary to view those logs from previous boots? For some executables,
there are too many logs. And it'll slow to load all of those logs.
Comment 5 Felipe Borges 2017-08-08 12:16:13 UTC
(In reply to Jonathan Kang from comment #4)
> Sounds good. It will be more convenient for those who want to launch Logs
> and see
> the expected result directly.
> 
> But there are a few thing I'd like to address:
> 1. Use "gnome-logs _EXE=/path/to/executable" instead of
>   "gnome-logs /path/to/executable" so that we can extend this feature to more
>   desirable journal fields in the future.
> 2. Is it necessary to view those logs from previous boots? For some
> executables,
> there are too many logs. And it'll slow to load all of those logs.

Great! I will address your requests in the following patches.
Comment 6 GNOME Infrastructure Team 2018-05-22 13:05:31 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-logs/issues/10.