jeremyhAUS markj995 To split Security logs into SecurityEvent and non-Security logs into WindowsEvent tables you'll need two DCRs created manually and associated with the AMA agent installed on your WECs. I went with bicep, but you can use ARM, Terraform or there are blog posts how to update existing DCRs using Azure Resource Manager REST API. Some links to get started: https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/data-collection-rule-overview
Below are relevant sections of the DCRs - you should be able to figure out the rest
dataSources definition for DCR1:
windowsEventLogs: [
{
name: 'nonSecurityEvents'
streams:[
'Microsoft-WindowsEvent'
]
xPathQueries: [
/*Filter out Security logs*/
'''ForwardedEvents!*[System[(Channel!='Security') and (Channel!='Microsoft-Windows-AppLocker/EXE and DLL') and (Channel!='Microsoft-Windows-AppLocker/MSI and Script') ]]'''
]
}
]
dataSources definition for DCR2:
windowsEventLogs: [
{
name: 'SecurityEvents'
streams:[
'Microsoft-SecurityEvent'
]
xPathQueries: [
'''ForwardedEvents!*[System[(Channel='Security')]]'''
'''ForwardedEvents!*[System[(Channel='Microsoft-Windows-AppLocker/EXE and DLL') or (Channel='Microsoft-Windows-AppLocker/MSI and Script')]]'''
]
}
]
Hope this helps you and others.