IIS Logs Not Being Collected
Posted: Fri Dec 04, 2015 1:13 pm
I have started trying to gather IIS logs. I followed the instructions as laid out in the +Log Source of the application. The server I am attempting to do this with is working for sys and event logs. So I added the following to the logs:
The path is correct to the site's logs and the site is actively logging in extended mode (logs are u_ex in name).
When added to my Route 1 portion, I now have:
We have tried the following:
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.
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.