Code: Select all
# Watch your IIS log files
<Input our_iis_site>
Module im_file
File 'C:\inetpub\logs\LogFiles\W3SVC2\u_ex*.log'
SavePos TRUE
Exec $Message = $raw_event;
</Input>When added to my Route 1 portion, I now have:
Code: Select all
<Route 1>
Path internal, file1, eventlog, our_iis_site => out
</Route>Restarting the nxlog service
Restarting the server
Setting the log path directly to a specific file
Restarting the Nagios Log Server
The sys and event logs are still populating as expected but no IIS logs are being imported. The log file for nxlog shows it connecting without any errors.