Use tags for incorrect input reporting#4804
Merged
alltilla merged 10 commits intosyslog-ng:masterfrom Jan 29, 2024
Merged
Conversation
There was a case in rfc5424 parsing where the current timezone offset was not using a cached time value, let's use that instead, just like RFC3164. Signed-off-by: Balazs Scheidler <[email protected]>
Contributor
|
Build FAILURE |
alltilla
reviewed
Jan 29, 2024
alltilla
reviewed
Jan 29, 2024
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
To ensure that syslog specific formatting issues can be reported efficiently by tags, register those as predefined tags in the core. I made an attempt to register these to be syslogformat specific, however parts of the configuration may start using the new tags _before_ syslogformat is loaded, causing an incorrect registration of the tags in question. Signed-off-by: Balazs Scheidler <[email protected]>
This template function returns the first tag that is set from the list specified. Signed-off-by: Balazs Scheidler <[email protected]>
ea6252f to
386087b
Compare
alltilla
approved these changes
Jan 29, 2024
alltilla
added a commit
to alltilla/syslog-ng
that referenced
this pull request
Feb 12, 2024
Signed-off-by: Attila Szakacs <[email protected]>
MrAnno
added a commit
that referenced
this pull request
Feb 12, 2024
bshifter
pushed a commit
to bshifter/syslog-ng
that referenced
this pull request
Feb 19, 2024
Signed-off-by: Attila Szakacs <[email protected]>
bshifter
pushed a commit
to bshifter/syslog-ng
that referenced
this pull request
Feb 22, 2024
Signed-off-by: Attila Szakacs <[email protected]>
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.
This PR makes it possible to report syslog parsing problems as builtin tags (e.g. named bit-like properties of the message).
These are the builtin tags:
/* means that the message is not valid utf8 /
LM_T_MSG_UTF8_SANITIZED,
/ msg-format parsing failed, "Error parsing ..." /
LM_T_MSG_PARSE_ERROR,
/ missing value /
LM_T_SYSLOG_MISSING_PRI,
/ no timestamp present in the original message /
LM_T_SYSLOG_MISSING_TIMESTAMP,
/ hostname field does not seem valid, check-hostname(yes) failed /
LM_T_SYSLOG_INVALID_HOSTNAME,
/ we seem to have found an octet count in front of the message /
LM_T_SYSLOG_UNEXPECTED_FRAMING,
/ no date & host information in the syslog message /
LM_T_SYSLOG_RFC3164_MISSING_HEADER,
/ incorrectly quoted RFC5424 SDATA */
LM_T_SYSLOG_RFC5424_UNQUOTED_SDATA_VALUE,
It also contains a $(tags-head) template function and some refactoring steps.