-
Notifications
You must be signed in to change notification settings - Fork 490
Add $TRANSPORT and $IP_PROTO macros #4673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
54ef805
to
a10cc3b
Compare
Build FAILURE |
a10cc3b
to
361aee1
Compare
Build FAILURE |
361aee1
to
fbe2ce3
Compare
I dropped the patch that causes MacOS builds to build and added it to #4674 |
fbe2ce3
to
67b5083
Compare
Build FAILURE |
67b5083
to
3bf5184
Compare
Build FAILURE |
Add the possibility of adding a set of LM_V_XXXX handles that are allocated at startup but not "static" in the sense that they are stored in the NVTable as normal dynamic name-value pairs. This mechanism replaces LOG_MSG_GET_VALUE_HANDLE_STATIC() macro and is easier to read and avoids races. Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
…ndle Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
…Source Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
3bf5184
to
274807c
Compare
Found the reason for the @kira-syslogng breakage. Let's hope it works out this time. |
V4-mapped address space is a compatibility feature of dual-stack TCP/IP stacks, where IPv4 connections can be established to IPv6 capable sockets. When this happens, the client IP address would be a V4-mapped address, as determined by the IN6_IS_ADDR_V4MAPPED() function, which is equivalent to an "::FFFF:<ipv4>" address (see RFC3493) This change would trickle into how we fill $HOST if we didn't find a hostname there, previously these would have the form of "::FFFF:ipv4", with this one they would become "ipv4" just as if we received them using an ipv4 specific source. Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Build FAILURE |
@kira-syslogng retest this please; |
MrAnno
approved these changes
Nov 23, 2023
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 branch implements two new name-value pairs populated by syslog-ng to make it easier to create drill-downs into the message streams via metrics.
$TRANSPORT:
This branch implements $TRANSPORT, a new key-value pair, automatically populated by syslog-ng to indicate the kind of transport that was used to receive the message.
The $TRANSPORT is a higher level protocol, at least compared to $PROTO (contains the L3 protocol id from /etc/protocols) or $IP_PROTO
$IP_PROTO:
$IP_PROTO contains 4 for ipv4 and 6 for ipv6.
These are the current values from the afsocket module:
<custom logproto like altp>
<custom logproto like altp>
: new style syslog over a logproto pluginI have also added support for this to:
The branch also contains a couple of "other" patches:
v4-mapped addresses in IPv6 sources should be translated to simple IPv4 addresses, instead of their more complex v4-mapped syntax (e.g. 192.168.1.1 instead of ::ffff:192.168.1.1)Some of these could be extracted, others we are depending on with the new features.