Forum Discussion
Data collection rule with multiple IIS log locations
Hello everyone,
Is there a way how I can collect IIS logs from 50+ applications with single data collection rule?
From my understanding, the path provided in the DCR needs to point directly to the directory where the log file is placed. It doesn't search inside directories recursively.
If there's no proper way to do this, maybe someone can suggest some alternative ideas for getting logs from the parent directory, like C:\inetpub\logs\LogFIles, instead of per app basis C:\inetpub\logs\LogFiles\W3SVC1.
2 Replies
- sneakypandaCopper ContributorHi,
Did you ever find a solution for this?
I have run into the same issue and am trying to figure it out. I want to avoid creating a separate data collection rules for each subsite. - BillClarksonAntillIron Contributor
Hey DeividasS
Check out the following link https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-text-log?tabs=portal#:~:text=On%20the%20Collect,txt%2C%20WarningOnly_MyLog.txt
Theres a few ways you can achieve this, but the best way to go about this is by using the Azure monitoring agent and a custom log rule
See the reference above