You are not logged in.

#1 2012-10-06 03:54:40

Wibjarm
Member
Registered: 2012-05-04
Posts: 40

Excluding items with journalctl?

Since I started looking at the nice filtering journalctl has for its output, this has been bothering me, but I haven't been able to find an answer in the man pages (or anywhere else). Is there a way, when calling journalctl, to filter by excluding certain items rather than specifying what to include and having journalctl exclude everything else? For example, to filter out messages from sudo in journalctl's output without touching anything else? And yes, I know it's possible to use --no-pager and pipe the output through grep -v or something similar, I'm just curious as to whether this is something the built-in filtering is capable of.

Offline

#2 2012-10-06 05:57:21

ixnine
Member
Registered: 2008-11-01
Posts: 60

Re: Excluding items with journalctl?

Are you looking for something like

# journalctl /usr/bin/sudo

?

EDIT:

Another example I want to see transmission-daemon logs only:

# journalctl /usr/bin/transmission-daemon

I saw these in the 'examples' section of the man page

Last edited by ixnine (2012-10-06 05:59:27)

Offline

#3 2012-10-10 19:31:37

Wibjarm
Member
Registered: 2012-05-04
Posts: 40

Re: Excluding items with journalctl?

Sorry about the delay, had some Problems with my internet connection for a few days.  Those are examples that give you the output only from one thing, what I'm looking for is the other way around, something to give the output from everything except a specific thing.

Offline

Board footer

Powered by FluxBB