This repository has been archived by the owner on Jan 30, 2025. It is now read-only.
forked from Azure/CanadaPubSecALZ
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support data collection rule (Azure#331)
- Loading branch information
1 parent
c2afa0d
commit e069a4b
Showing
15 changed files
with
800 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@description('Location for the deployment.') | ||
param location string = resourceGroup().location | ||
|
||
@description('Name of the data collection rule') | ||
param name string | ||
|
||
@description('Windows Event Logs data source configuration.') | ||
param windowsEventLogs array | ||
|
||
@description('syslog data source configuration.') | ||
param syslog array | ||
|
||
@description('Log Analytics Workspace Id') | ||
param logAnalyticsWorkspaceId string | ||
|
||
resource dcr 'Microsoft.Insights/dataCollectionRules@2021-09-01-preview' = { | ||
name: name | ||
location: location | ||
properties: { | ||
dataSources: { | ||
windowsEventLogs: windowsEventLogs | ||
syslog: syslog | ||
} | ||
destinations: { | ||
logAnalytics: [ | ||
{ | ||
name: 'logAnalytics' | ||
workspaceResourceId: logAnalyticsWorkspaceId | ||
} | ||
] | ||
} | ||
dataFlows: [ | ||
{ | ||
streams: [ | ||
'Microsoft-Event' | ||
'Microsoft-Syslog' | ||
] | ||
destinations: [ | ||
'logAnalytics' | ||
] | ||
} | ||
] | ||
} | ||
} | ||
|
||
output dcrId string = dcr.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.