We have Windows Event Logs being sent to a Windows Event Collector server before being forwarded to the Nagios Logserver via NXLog.
One of the hiccups we've hit is that the source hostname and ip in the event gets re-written to the hostname and ip of the Windows Event Collector server.
For example:
A security log originating from RDCENGSRC01.RDC.L, forwarded via policy to the WEC server RDCENGWEC01.RDC.L, which is running NXLog to send the event onto the Nagios Logserver.
RDCENGSRC01.RDC.L >> RDCENGWEC01.RDC.L >> NXLog >> LogServer
Referring to the log snippet below:
> the Hostname value has been changed from RDCENGSRC01.RDC.L to RDCENGWEC01.RDC.L
> the host (ip address) has been changed from 10.67.6.100 (the IP of RDCENGSRC01.RDC.L) to 10.67.6.243 (the IP of RDCENGWEC01.RDC.L)
Is there anything we can do to prevent the hostname and host values from being changed?
From the basic troubleshooting we have done so far, it appears the unwanted change is happening when NXLog reads the message data from the WEC before forwarding onto the Nagios Logserver.
Thanks,
Jaimie Livingston
LOG SNIPPET
----------------------------------------
Code: Select all
{
"_index": "logstash-2020.01.23",
"_type": "eventlog",
"_id": "AW_TcMxH2xmB2uvxAP6R",
"_score": null,
"_source": {
"EventTime": "2020-01-23 12:26:21",
"Hostname": "RDCENGWEC01.RDC.L",
"Keywords": -9214364837600035000,
"EventType": "AUDIT_SUCCESS",
--- snip ---
"SourceModuleName": "eventlog",
"SourceModuleType": "im_msvistalog",
--- snip ---
"host": "10.67.6.243",
"port": 49718,
"type": "eventlog",
"alert_names": ""
},