Hi,
As explained here, you can use a file wildcard * i.e., C:\inetpub\logs\LogFiles\W3SVC*
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have installed an AMA agent on an internal IIS server via Azure ARC in an attempt to ingest logs into Microsoft Sentinel.
The ingestion works for a single site, but we have multiple sites on the single IIS server, and the data source only allows specifying a single log location for IIS.
Our logging is configured on a per site basis, so logs are stored as;
C:\inetpub\logs\LogFiles\W3SVC1
C:\inetpub\logs\LogFiles\W3SVC2
C:\inetpub\logs\LogFiles\W3SVC3
Under Home > Monitor > Data Collection Rules > Data Sources > Data Source > File Pattern
Only a single location can be specified, otherwise the collection does not work.
Does anyone know what file pattern can be used for multiple locations? Using the root, commas for multiple locations, or leaving it empty does not work.
Hi,
As explained here, you can use a file wildcard * i.e., C:\inetpub\logs\LogFiles\W3SVC*
It seems you can now achieve this using comma separated file pattern entries:
create-a-data-collection-rule-for-a-text-file
This would however mean you will need to continually update the list as new IIS sites and log folders are created, so still not ideal almost 2 years later...