Skip to content

Add useFqdn attribute to RFC5424 Layout#2853

Merged
ppkarwasz merged 1 commit into2.xfrom
fix/2.x/1740_syslog_fqdn
Aug 26, 2024
Merged

Add useFqdn attribute to RFC5424 Layout#2853
ppkarwasz merged 1 commit into2.xfrom
fix/2.x/1740_syslog_fqdn

Conversation

@ppkarwasz
Copy link
Copy Markdown
Contributor

Since RFC5424 specifies that the HOSTNAME field should contain the FQDN of the current host, we add a useFqdn configuration attribute to RFC5424 Layout that replaces the usage of InetAddress.getHostName() with InetAddress.getCanonicalHostName().

Closes #1740.

@ppkarwasz ppkarwasz self-assigned this Aug 18, 2024
@vy vy added bug Incorrect, unexpected, or unintended behavior of existing code runtime Specific to the runtime environment layouts Affects one or more Layout plugins labels Aug 26, 2024
@vy vy added this to the 2.24.0 milestone Aug 26, 2024
@ppkarwasz ppkarwasz requested a review from vy August 26, 2024 11:48
@ppkarwasz ppkarwasz removed this from the 2.24.0 milestone Aug 26, 2024
Since RFC5424 specifies that the
[`HOSTNAME`](https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.4)
field should contain the FQDN of the current host,
we replace replace the usage of `InetAddress.getHostName()`
with `InetAddress.getCanonicalHostName()`.

Closes #1740.
@ppkarwasz ppkarwasz force-pushed the fix/2.x/1740_syslog_fqdn branch from 082f368 to b593be7 Compare August 26, 2024 18:55
@ppkarwasz ppkarwasz merged commit b593be7 into 2.x Aug 26, 2024
@ppkarwasz ppkarwasz deleted the fix/2.x/1740_syslog_fqdn branch August 26, 2024 18:55
ppkarwasz added a commit that referenced this pull request Sep 1, 2024
Since RFC5424 specifies that the
[`HOSTNAME`](https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.4)
field should contain the FQDN of the current host,
we replace replace the usage of `InetAddress.getHostName()`
with `InetAddress.getCanonicalHostName()`.

Closes #1740.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Incorrect, unexpected, or unintended behavior of existing code layouts Affects one or more Layout plugins runtime Specific to the runtime environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

With the parameter $PreserveFQDN on the logged-in host is not the full host(FQDN)

2 participants