[systemd-devel] [PATCH 0/2] journalctl arguments and filtering

harald at redhat.com harald at redhat.com
Fri Apr 12 00:29:58 PDT 2013


From: Harald Hoyer <harald at redhat.com>

This patch series improves the argument handling of journalctl.
It ANDs all parameter like "-b" "--unit=" "-p" and multiple "--unit=" can be specified.

The output of:

# journalctl -u sshd.service -u crond.service -u sshd.service -b -p 0..7

is now, what you would expect it to be.


Harald Hoyer (2):
  journal: add one more level on top with AND
  journalctl: specify "--unit=" and "--user-unit" multiple times

 man/journalctl.xml               |  6 ++-
 src/journal/journal-internal.h   |  2 +-
 src/journal/journalctl.c         | 68 ++++++++++++++++++++++++----------
 src/journal/sd-journal.c         | 80 ++++++++++++++++++++++++++--------------
 src/journal/test-journal-match.c | 16 +++++++-
 src/systemd/sd-journal.h         |  1 +
 6 files changed, 122 insertions(+), 51 deletions(-)

-- 
1.8.2



More information about the systemd-devel mailing list