Skip to content

Make it possible to filter on arbitrary journald fields#172

Open
rdunklau wants to merge 5 commits intomasterfrom
add_arbitrary_journald_filters
Open

Make it possible to filter on arbitrary journald fields#172
rdunklau wants to merge 5 commits intomasterfrom
add_arbitrary_journald_filters

Conversation

@rdunklau
Copy link
Copy Markdown
Contributor

@rdunklau rdunklau commented Apr 1, 2025

This commit adds a new option, journald_filters, which allows to pass a list of filters of the form <journald_field>=.

For a list of available journald fields, see:
https://www.freedesktop.org/software/systemd/man/latest/systemd.journal-fields.html

This commit adds a new option, journald_filters, which allows to pass a
list of filters of the form <journald_field>=<value>.

For a list of available journald fields, see:
https://www.freedesktop.org/software/systemd/man/latest/systemd.journal-fields.html
@rdunklau rdunklau force-pushed the add_arbitrary_journald_filters branch from 01c9fbe to ec7f967 Compare April 2, 2025 06:04
Starting with 2.0.4, the errors module does not expose a tuple of
retriable errors: instead there is an attribute on each error type.

Making journalpump compatible with both the old and new version is
outside the scope of this change, so bound the kafka client version.
@rdunklau rdunklau force-pushed the add_arbitrary_journald_filters branch from 6251ad7 to ef3f172 Compare April 2, 2025 07:04
rdunklau added 3 commits April 2, 2025 09:20
Starting with 14.0, some execptions have been deprecated.
It is outside the scope of this PR to make journalpump compatbible with
both the new and old versions.
Version 2.7.0 made ProxyTimeoutError inherit from the builtin
TimeoutError, which requires us to redesign our exception handling.

This is outside the scope of this PR, so just bound the version.
Newer ubuntu versions have a stricter apparmor policy for rsyslogd,
disable it so that the tests can run.
@rdunklau rdunklau force-pushed the add_arbitrary_journald_filters branch from b2b71f2 to 68a884a Compare April 2, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant