Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,83 +1,79 @@
{
"name": "AtlassianConfluenceDCR",
"apiVersion": "2023-03-11",
"type": "Microsoft.Insights/dataCollectionRules",
"location": "{{location}}",
"kind": null,
"properties": {
"streamDeclarations": {
"Custom-ConfluenceAuditLogs": {
"columns": [
{
"name": "author",
"type": "dynamic"
},
{
"name": "remoteAddress",
"type": "string"
},
{
"name": "creationDate",
"type": "long"
},
{
"name": "summary",
"type": "string"
},
{
"name": "description",
"type": "string"
},
{
"name": "category",
"type": "string"
},
{
"name": "sysAdmin",
"type": "boolean"
},
{
"name": "superAdmin",
"type": "boolean"
},
{
"name": "affectedObject",
"type": "dynamic"
},
{
"name": "changedValues",
"type": "dynamic"
},
{
"name": "associatedObjects",
"type": "dynamic"
}
]
}
},
"dataSources": {

},
"destinations": {
"logAnalytics": [
{
"workspaceResourceId": "[variables('workspaceResourceId')]",
"name": "clv2ws1"
}
]
},
"dataFlows": [
{
"streams": [
"Custom-ConfluenceAuditLogs"
],
"destinations": [
"clv2ws1"
],
"transformKql": "source\r| extend\r TimeGenerated = now(),\r EventVendor=\"Atlassian\",\r EventProduct=\"Confluence Audit\",\r AuthorUsername=tostring(author.username), \r AuthorDisplayName=tostring(author.displayName),\r AuthorType=tostring(author.type),\r AuthorAccountId=tostring(author.accountId),\r AuthorUserKey=tostring(author.userKey),\r AuthorPublicName=tostring(author.publicName),\r AuthorAccountType=tostring(author.accountType),\r AuthorIsExternalCollaborator=tobool(author.isExternalCollaborator),\r AuthorExternalCollaborator=tobool(author.externalCollaborator),\r AffectedObjectName=tostring(affectedObject.name),\r AffectedObjectObjectType=tostring(affectedObject.type),\r UserIdentity=tostring(author.accountId),\r SrcUserName=tostring(author.displayName),\r DstUserSid=tostring(author.userKey)\r| project\r TimeGenerated,\r EventVendor,\r EventProduct,\r AuthorUsername,\r AuthorAccountId,\r AuthorType,\r AuthorDisplayName,\r AuthorIsExternalCollaborator,\r AuthorUserKey,\r AuthorAccountType,\r AuthorPublicName,\r AuthorExternalCollaborator,\r RemoteAddress=remoteAddress,\r CreationDate=creationDate,\r Summary=summary,\r Description=description,\r Category=category,\r SysAdmin=sysAdmin,\r SuperAdmin=superAdmin,\r AffectedObjectName,\r AffectedObjectObjectType,\r ChangedValues=changedValues,\r AssociatedObjects=associatedObjects,\r UserIdentity,\r SrcUserName,\r DstUserSid,\r SrcIpAddr=remoteAddress,\r EventCreationTime=creationDate,\r EventMessage=summary,\r EventCategoryType=category",
"outputStream": "Custom-ConfluenceAuditLogs_CL"
}
"name": "AtlassianConfluenceDCR",
"apiVersion": "2023-03-11",
"type": "Microsoft.Insights/dataCollectionRules",
"location": "{{location}}",
"properties": {
"dataCollectionEndpointId": "{{dataCollectionEndpointId}}",
"streamDeclarations": {
"Custom-ConfluenceAuditLogs_CL": {
"columns": [
{
"name": "remoteAddress",
"type": "string"
},
{
"name": "creationDate",
"type": "long"
},
{
"name": "summary",
"type": "string"
},
{
"name": "description",
"type": "string"
},
{
"name": "category",
"type": "string"
},
{
"name": "sysAdmin",
"type": "boolean"
},
{
"name": "superAdmin",
"type": "boolean"
},
{
"name": "changedValues",
"type": "dynamic"
},
{
"name": "associatedObjects",
"type": "dynamic"
},
{
"name": "author",
"type": "dynamic"
},
{
"name": "affectedObject",
"type": "dynamic"
}
]
}
},
"destinations": {
"logAnalytics": [
{
"workspaceResourceId": "{{workspaceResourceId}}",
"name": "clv2ws1"
}
]
},
"dataFlows": [
{
"streams": [
"Custom-ConfluenceAuditLogs_CL"
],
"dataCollectionEndpointId": "[concat('/subscriptions/',parameters('subscription'),'/resourceGroups/',parameters('resourceGroupName'),'/providers/Microsoft.Insights/dataCollectionEndpoints/',parameters('workspace'))]"
}
}
"destinations": [
"clv2ws1"
],
"outputStream": "Custom-ConfluenceAuditLogs_CL",
"transformKql": "source | extend TimeGenerated = iff(isnull(creationDate), now(), datetime(1970-01-01) + (creationDate * 1ms)) , EventVendor = \"Atlassian\" , EventProduct = \"Confluence Audit\" , AuthorUsername = tostring(author.username) , AuthorAccountId = tostring(author.accountId) , AuthorType = tostring(author.type) , AuthorDisplayName = tostring(author.displayName) , AuthorIsExternalCollaborator = tobool(author.isExternalCollaborator) , AuthorUserKey = tostring(author.userKey) , AuthorAccountType = tostring(author.accountType) , AuthorPublicName = tostring(author.publicName) , AuthorExternalCollaborator = tobool(author.externalCollaborator) , RemoteAddress = ['remoteAddress'] , CreationDate = ['creationDate'] , Summary = ['summary'] , Description = ['description'] , Category = ['category'] , SysAdmin = ['sysAdmin'] , SuperAdmin = ['superAdmin'] , AffectedObjectName = tostring(affectedObject.name) , AffectedObjectObjectType = tostring(affectedObject.objectType) , ChangedValues = ['changedValues'] , AssociatedObjects = ['associatedObjects'] , UserIdentity = tostring(author.accountId) , SrcUserName = tostring(author.displayName) , DstUserSid = tostring(author.userKey) , SrcIpAddr = tostring(remoteAddress) , EventCreationTime = tolong(creationDate) , EventMessage = tostring(summary) , EventCategoryType = tostring(affectedObject.objectType) | project TimeGenerated , EventVendor , EventProduct , AuthorUsername , AuthorAccountId , AuthorType , AuthorDisplayName , AuthorIsExternalCollaborator , AuthorUserKey , AuthorAccountType , AuthorPublicName , AuthorExternalCollaborator , RemoteAddress , CreationDate , Summary , Description , Category , SysAdmin , SuperAdmin , AffectedObjectName , AffectedObjectObjectType , ChangedValues , AssociatedObjects , UserIdentity , SrcUserName , DstUserSid , SrcIpAddr , EventCreationTime , EventMessage , EventCategoryType"
}
]
}
}
Loading
Loading