CAUSE1: Spoofing the sourceip and ensuring keep-hostname() have not been configured to properly ensure that both are sent correctly.
CAUSE2: Load balancer such as an F5 has already "overwritten" IP Address with its own address
RESOLUTION 1:
Start by ensuring that spoofing the sourceip has been configured correctly.
NOTE: spoofing the sourceip requires the use of the UDP protocol and cannot be used with the TCP protocol.
1.) Start by editing the Syslog-ng configuration file (syslog-ng.conf), or sub-configuration file where the configuration for this logpath is set, using any text editor.
2.) Locate the destination statement where the logs are being sent and modify it adding spoof-source(yes) to the destination statement ensuring that the UDP protocol is used. An example destination statement is below:
destination d_example_destination {
network("10.10.10.10"
port(10000)
transport("udp")
spoof-source(yes)
);
};
3.) Save the modified configuration file.
4.) Reload the Syslog-ng configuration by using the following command:
/opt/syslog-ng/sbin/syslog-ng-ctl reload
5.) The ${SOURCEIP} should now contain the correct IP address of the host.
1.) Log into the WebUI of the Syslog-ng Store Box (SSB).
2.) Navigate to Log > Destinations.
3.) Enable spoofing of the sourceip by checking "UDP" under the "Transport" option in the created destination and then by checking "Spoof source address:". See the following screenshot for an example:
4.) Commit the changes on the Syslog-ng Store Box (SSB).
5.) The ${SOURCEIP} should now contain the correct IP address of the host.
Next, to ensure the hostname is kept correctly, please make the following changes:
1.) Start by editing the main Syslog-ng configuration file (syslog-ng.conf) where the global options are listed using any text editor.
2.) Under the global options create an entry for keep-hostname(yes); which should look similar to the following:
};
NOTE: use-dns() needs to be set to "no" otherwise hosts with an IP address will have their IP Address changed to the corresponding DNS entry. See the above example for including the use-dns(no) option.
3.) Save the modified configuration file.
4.) Reload the Syslog-ng configuration by using the following command:
/opt/syslog-ng/sbin/syslog-ng-ctl reload
5.) The hostname(s) of the original log source should now be kept and passed correctly.
1.) Log into the WebUI of the Syslog-ng Store Box (SSB).
2.) Navigate to Log > Sources.
3.) Under the option "Hostname and time-stamp related settings:" check the box for "Trusted". See the following screenshot for an example:
4.) Commit the changes on the Syslog-ng Store Box
5.) The hostname will now be kept correctly. No additional options are needed for Destinations as the Syslog-ng Store Box (SSB) by default maintains the original hostname of the log sender as long as it is configured in the sources as configured in the previous steps.
RESOLUTION 2:
The problem is that the IP address of the Windows host is not known by the Agent, so that information is not yet available.
Please contact your network team to help configure the load-balancers as configuring load balancer is outside the scope of the Technical Support team.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center