systemd/python-systemd

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

pspacek opened this issue · 2 comments

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.

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

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