Add no-piggyback-errors flag to syslog-parser() and syslog related source drivers.#5063
Merged
kovgeri01 merged 6 commits intosyslog-ng:masterfrom Aug 23, 2024
Merged
Conversation
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Just like rfc3164, make it possible to report rfc5424 style parsing issues as tags. Signed-off-by: Balazs Scheidler <[email protected]>
This tells syslog-ng not to wipe out the input message in syslog-parser() and
source encapsulated syslog parsers when there's a parse issue.
For example:
parser { syslog-parser(flags(syslog-protocol, no-piggyback-errors)); };
With that in place, $MSG retains its original value and various tags (e.g.
the syslog.* ones) report what kind of issues we detected with the messsage.
When the message is sent to a syslog-like destination, we will prepend
a header.
Basically this makes 5424 and 3164 parsing more similar. Previously 5424 parsing
reported its errors by completely wiping out the the existing log message
fields and adding a message attributed to "syslog-ng" itself. But this
message was coming from the same source and not internal().
Signed-off-by: Balazs Scheidler <[email protected]>
HofiOne
requested changes
Aug 23, 2024
Signed-off-by: Kovacs, Gergo Ferenc <[email protected]>
81d9719 to
72bffce
Compare
HofiOne
approved these changes
Aug 23, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #245 by @bazsi