hi everybody
I'm having trouble getting my Wazuh Agent to read IIS logs on Windows Server 2016 Standard.
The agent is connected and successfully sending Windows Event logs (Application, Security, System), but it completely ignores the IIS log files. I've checked ossec.log and there is no mention of "Analyzing file" for the IIS path at all.
My Configuration:
<localfile>
<location>C:\inetpub\logs\LogFiles\W3SVC*\u_ex*.log</location>
<log_format>iis</log_format>
</localfile>
What I've tried so far:
Changed log_format to syslog.
Specified the exact path (e.g., W3SVC1\u_ex260126.log).
I checked the security tab for the log files. The SYSTEM account (which the agent runs under) has the exact same permissions as the Administrator (Full Control/Read)
This does NOT work (No "Analyzing file" in ossec.log):
C:\inetpub\logs\LogFiles\W3SVC1\u_ex*.log
C:\inetpub\logs\LogFiles\W3SVC1\*.log
C:\inetpub\logs\LogFiles\W3SVC*\u_ex*.log
Hello, it's not working because you are using two wildcards. Do something like C:\inetpub\logs\LogFiles\W3SVC1\*.log