Skip to content

Commit e13d1c5

Browse files
fix: update event log configuration and refine xPathQueries for data collection rules
1 parent 7adc453 commit e13d1c5

3 files changed

Lines changed: 4 additions & 31 deletions

File tree

infra/main.bicep

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -435,17 +435,8 @@ module windowsVmDataCollectionRules 'br/public:avm/res/insights/data-collection-
435435
streams: [
436436
'Microsoft-Event'
437437
]
438-
eventLogName: 'Security'
439-
eventTypes: [
440-
{
441-
eventType: 'Audit Success'
442-
}
443-
{
444-
eventType: 'Audit Failure'
445-
}
446-
]
447438
xPathQueries: [
448-
'Security!*[System[(EventID=4624 or EventID=4625)]]'
439+
'Security!*[System[(band(Keywords,13510798882111488)) and (EventID != 4624)]]'
449440
]
450441
}
451442
]

infra/main.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.42.1.51946",
9-
"templateHash": "11967716103255684929"
9+
"templateHash": "12538110573757351724"
1010
},
1111
"name": "Content Processing Solution Accelerator",
1212
"description": "Bicep template to deploy the Content Processing Solution Accelerator with AVM compliance."
@@ -14609,17 +14609,8 @@
1460914609
"streams": [
1461014610
"Microsoft-Event"
1461114611
],
14612-
"eventLogName": "Security",
14613-
"eventTypes": [
14614-
{
14615-
"eventType": "Audit Success"
14616-
},
14617-
{
14618-
"eventType": "Audit Failure"
14619-
}
14620-
],
1462114612
"xPathQueries": [
14622-
"Security!*[System[(EventID=4624 or EventID=4625)]]"
14613+
"Security!*[System[(band(Keywords,13510798882111488)) and (EventID != 4624)]]"
1462314614
]
1462414615
}
1462514616
]

infra/main_custom.bicep

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -438,17 +438,8 @@ module windowsVmDataCollectionRules 'br/public:avm/res/insights/data-collection-
438438
streams: [
439439
'Microsoft-Event'
440440
]
441-
eventLogName: 'Security'
442-
eventTypes: [
443-
{
444-
eventType: 'Audit Success'
445-
}
446-
{
447-
eventType: 'Audit Failure'
448-
}
449-
]
450441
xPathQueries: [
451-
'Security!*[System[(EventID=4624 or EventID=4625)]]'
442+
'Security!*[System[(band(Keywords,13510798882111488)) and (EventID != 4624)]]'
452443
]
453444
}
454445
]

0 commit comments

Comments
 (0)