Forum Discussion

DeividasS's avatar
DeividasS
Copper Contributor
Oct 16, 2023

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.

 

  • sneakypanda's avatar
    sneakypanda
    Copper Contributor
    Hi,

    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.

  • Hey DeividasS 

     

    Check out the following link here

     

    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

Resources