Skip to content

Conversation

szemere
Copy link
Collaborator

@szemere szemere commented Aug 27, 2020

WIP: This PR is a modification on top of #3358 (it should be merged first), however I was unable to open a pull request on: https://github.com/bjoe2k4/syslog-ng

This PR helps to resolve _CURSOR issues in the persist file in case the namespace option changes.
(According to the systemd documentation the _CURSOR identifies an entry. However we got seeking errors in case the namespace parameters changes, even if syslog-ng should seek to the same log entry again.)

This PR also prepares the code to allow multiple systemd-journal sources at the same time. Before systemd v2.45 it was illogical to add multiple journal sources (they could even conflict with each other) so it is prohibited now. However if two journal sources are configured to read from two different namespaces they can work side by side.

I would like to thank for @bjoe2k4 for all the work to introduce the namespace option to the systemd-journal source.

@szemere szemere requested a review from bazsi August 27, 2020 08:38
@kira-syslogng
Copy link
Contributor

Build SUCCESS

@szemere szemere force-pushed the add_namespace_to_the_persist_name branch from d4ee7a8 to 2a768bc Compare August 28, 2020 14:13
@kira-syslogng
Copy link
Contributor

Build SUCCESS

Kokan
Kokan previously approved these changes Sep 2, 2020
@szemere szemere changed the title WIP: Add namespace to the systemd-journal persist name Add namespace to the systemd-journal persist name Sep 2, 2020
@gaborznagy gaborznagy self-requested a review September 2, 2020 08:25
If no namespace provided (or not supported), than
the legacy name will be used. (systemd_journal)

Signed-off-by: Laszlo Szemere <laszlo.szemere@oneidentity.com>
Signed-off-by: Laszlo Szemere <laszlo.szemere@oneidentity.com>
@szemere szemere force-pushed the add_namespace_to_the_persist_name branch from 2a768bc to 483fdf6 Compare September 3, 2020 08:29
@kira-syslogng
Copy link
Contributor

Build SUCCESS

gaborznagy
gaborznagy previously approved these changes Sep 3, 2020
furiel
furiel previously approved these changes Sep 4, 2020
Signed-off-by: Laszlo Szemere <laszlo.szemere@oneidentity.com>
@szemere szemere dismissed stale reviews from furiel and gaborznagy via da9bbd7 September 4, 2020 07:11
@kira-syslogng
Copy link
Contributor

Build SUCCESS

Copy link
Collaborator

@gaborznagy gaborznagy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With just a proposal for news file content, approve from me.

@Kokan Kokan added this to the syslog-ng-3.30 milestone Sep 4, 2020
@Kokan Kokan merged commit 04e4728 into syslog-ng:master Sep 4, 2020
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.

5 participants