Can anyone tell me why I don't always get the sender IP in my log files? I have one windows host sending event logs via syslog and the same server sends me Symantec Endpoint (SEPM) events via syslog too. At any rate, the majority of the time the syslog files include the sender IP address. But others it doesn't. Why is this?
Sample log without IP:
Mar 4 18:12:13 Service Control Manager: 7036: The LiveUpdate service entered the stopped state.
Mar 2 11:15:44 Service Control Manager: 7036: The WinHTTP Web Proxy Auto-Discovery Service service entered the running state.
Mar 2 09:03:48 Service Control Manager: 7035: NT AUTHORITY\SYSTEM: The LiveUpdate service was successfully sent a start control.
Mar 3 13:31:51 Symantec AntiVirus: 7: New virus definition file loaded. Version: 120303e.
Sample log with IP:
Mar 4 21:36:07 192.168.0.83 Security: 538: NT AUTHORITY\ANONYMOUS LOGON: User Logoff: User Name: ANONYMOUS LOGON Domain: NT AUTHORITY Logon ID: (0x0,0x26420589) Logon Type: 3
Line in config to generate line:
if $fromhost-ip contains '192.168.0.83' then /var/log/192.168.0.83.windows
It is rsyslog that puts in the timestamp and sender IP, correct? If so, why would it not include the IP in the log?


