Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

journal.Reader.add_match() does not support glob matching #86

Open
pspacek opened this issue Aug 11, 2020 · 2 comments
Open

journal.Reader.add_match() does not support glob matching #86

pspacek opened this issue Aug 11, 2020 · 2 comments

Comments

@pspacek
Copy link

pspacek commented Aug 11, 2020

Versions:

  • Debian 9 (Stretch)
  • python3 3.5.3-1
  • python3-system 233-1
  • systemd 232-25+deb9u
    ... but as far as I can tell from _reader.c it applies to master (a402d08) as well.

For example:

journal_reader.add_match(_SYSTEMD_UNIT="kres*")

always returns empty output. At the same time command journalctl -u 'kres*' lists log for units kresd@dns1, kresd@dns2, kres-cache-gc etc.

It would be nice if the Python API could do the same. For now I'm going to resort calling journalctl as subprocess.

@keszybz
Copy link
Member

keszybz commented Aug 13, 2022

Indeed. The relevant commit in systemd is systemd/systemd@ea18a4b. It's been a while.

@radekwlsk
Copy link

@keszybz Is there any plan to work on this one? Or you are a wrong person to ask?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

3 participants