Skip to content

Commit 0023901

Browse files
authored
Release/v0.3.0 (#8)
2 parents 5e6db15 + 53d6653 commit 0023901

15 files changed

+136
-7
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## v0.3.0 [2025-03-03]
2+
3+
_Enhancements_
4+
5+
- Added `title`, `description`, and `folder = "Account"` tag to `Activity Dashboard` queries for improved organization and clarity. ([#7](https://github.com/turbot/tailpipe-mod-azure-activity-log-detections/pull/7))
6+
- Removed `title` and added `folder = "Hidden"` tag to `Root User Activity Report` queries to streamline visibility. ([#7](https://github.com/turbot/tailpipe-mod-azure-activity-log-detections/pull/7))
7+
- Added `folder = "<service>"` tag to `service common tag locals` for better query categorization. ([#7](https://github.com/turbot/tailpipe-mod-azure-activity-log-detections/pull/7))
8+
- Standardized all queries to use `service common tags`, ensuring consistency across detection queries. ([#7](https://github.com/turbot/tailpipe-mod-azure-activity-log-detections/pull/7))
9+
110
## v0.2.0 [2025-02-06]
211

312
_Enhancements_

dashboards/activity_dashboard.pp

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,24 @@
6868
# -----------------------------
6969

7070
query "activity_dashboard_total_logs" {
71-
title = "Log Count"
71+
title = "Log Count"
72+
description = "Count the total log entries."
7273

7374
sql = <<-EOQ
7475
select
7576
count(*) as "Total Logs"
7677
from
7778
azure_activity_log;
7879
EOQ
80+
81+
tags = {
82+
folder = "Subscription"
83+
}
7984
}
8085

8186
query "activity_dashboard_logs_by_resource_group" {
82-
title = "Logs by Resource Group"
87+
title = "Logs by Resource Group"
88+
description = "Count log entries grouped by resource group."
8389

8490
sql = <<-EOQ
8591
select
@@ -95,10 +101,15 @@
95101
count(*) desc
96102
limit 10;
97103
EOQ
104+
105+
tags = {
106+
folder = "Subscription"
107+
}
98108
}
99109

100110
query "activity_dashboard_logs_by_subscription" {
101-
title = "Logs by Subscription"
111+
title = "Logs by Subscription"
112+
description = "Count log entries grouped by subscription."
102113

103114
sql = <<-EOQ
104115
select
@@ -114,10 +125,15 @@
114125
count(*) desc
115126
limit 10;
116127
EOQ
128+
129+
tags = {
130+
folder = "Subscription"
131+
}
117132
}
118133

119134
query "activity_dashboard_logs_by_actor" {
120-
title = "Top 10 Actors"
135+
title = "Top 10 Actors"
136+
description = "List the top 10 actors by frequency of log entries."
121137

122138
sql = <<-EOQ
123139
select
@@ -133,10 +149,15 @@
133149
count(*) desc
134150
limit 10;
135151
EOQ
152+
153+
tags = {
154+
folder = "Subscription"
155+
}
136156
}
137157

138158
query "activity_dashboard_logs_by_source_ip" {
139-
title = "Top 10 Source IPs"
159+
title = "Top 10 Source IPs"
160+
description = "List the top 10 source IPs by frequency of log entries."
140161

141162
sql = <<-EOQ
142163
select
@@ -152,10 +173,15 @@
152173
count(*) desc
153174
limit 10;
154175
EOQ
176+
177+
tags = {
178+
folder = "Subscription"
179+
}
155180
}
156181

157182
query "activity_dashboard_logs_by_service" {
158-
title = "Top 10 Service"
183+
title = "Top 10 Service"
184+
description = "List the top 10 services by frequency of log entries."
159185

160186
sql = <<-EOQ
161187
select
@@ -171,10 +197,15 @@
171197
count(*) desc
172198
limit 10;
173199
EOQ
200+
201+
tags = {
202+
folder = "Subscription"
203+
}
174204
}
175205

176206
query "activity_dashboard_logs_by_event" {
177-
title = "Top 10 Events"
207+
title = "Top 10 Events"
208+
description = "List the top 10 events by frequency of log entries."
178209

179210
sql = <<-EOQ
180211
select
@@ -190,4 +221,8 @@
190221
count(*) desc
191222
limit 10;
192223
EOQ
224+
225+
tags = {
226+
folder = "Subscription"
227+
}
193228
}

detections/automation.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
locals {
22
automation_common_tags = merge(local.azure_activity_log_detections_common_tags, {
3+
folder = "Automation"
34
service = "Azure/Automation"
45
})
56
}
@@ -42,4 +43,6 @@
4243
order by
4344
timestamp desc;
4445
EOQ
46+
47+
tags = local.automation_common_tags
4548
}

detections/compute.pp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
locals {
22
compute_common_tags = merge(local.azure_activity_log_detections_common_tags, {
3+
folder = "Compute"
34
service = "Azure/Compute"
45
})
56
}
@@ -71,6 +72,8 @@
7172
order by
7273
timestamp desc;
7374
EOQ
75+
76+
tags = local.compute_common_tags
7477
}
7578

7679
query "compute_disk_deleted" {
@@ -85,6 +88,8 @@
8588
order by
8689
timestamp desc;
8790
EOQ
91+
92+
tags = local.compute_common_tags
8893
}
8994

9095
query "compute_snapshot_deleted" {
@@ -99,4 +104,6 @@
99104
order by
100105
timestamp desc;
101106
EOQ
107+
108+
tags = local.compute_common_tags
102109
}

detections/container_registry.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
locals {
22
container_registry_common_tags = merge(local.azure_activity_log_detections_common_tags, {
3+
folder = "Container Registry"
34
service = "Azure/ContainerRegistry"
45
})
56
}
@@ -42,4 +43,6 @@
4243
order by
4344
timestamp desc;
4445
EOQ
46+
47+
tags = local.container_registry_common_tags
4548
}

detections/event_hub.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
locals {
22
event_hub_registry_common_tags = merge(local.azure_activity_log_detections_common_tags, {
3+
folder = "Event Hub"
34
service = "Azure/EventHub"
45
})
56
}
@@ -56,6 +57,8 @@
5657
order by
5758
timestamp desc;
5859
EOQ
60+
61+
tags = local.event_hub_registry_common_tags
5962
}
6063

6164
query "event_hub_namespace_deleted" {
@@ -70,4 +73,6 @@
7073
order by
7174
timestamp desc;
7275
EOQ
76+
77+
tags = local.event_hub_registry_common_tags
7378
}

detections/front_door.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
locals {
22
front_door_common_tags = merge(local.azure_activity_log_detections_common_tags, {
3+
folder = "Front Door"
34
service = "Azure/FrontDoor"
45
})
56
}
@@ -42,4 +43,6 @@
4243
order by
4344
timestamp DESC;
4445
EOQ
46+
47+
tags = local.front_door_common_tags
4548
}

detections/iam.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
locals {
22
iam_common_tags = merge(local.azure_activity_log_detections_common_tags, {
3+
folder = "IAM"
34
service = "Azure/IAM"
45
})
56
}
@@ -42,4 +43,6 @@
4243
order by
4344
timestamp desc;
4445
EOQ
46+
47+
tags = local.iam_common_tags
4548
}

detections/key_vault.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
locals {
22
key_vault_common_tags = merge(local.azure_activity_log_detections_common_tags, {
3+
folder = "Key Vault"
34
service = "Azure/KeyVault"
45
})
56
}
@@ -60,6 +61,8 @@
6061
order by
6162
timestamp desc;
6263
EOQ
64+
65+
tags = local.key_vault_common_tags
6366
}
6467

6568
query "key_vault_access_policy_created_or_updated" {
@@ -74,4 +77,6 @@
7477
order by
7578
timestamp desc;
7679
EOQ
80+
81+
tags = local.key_vault_common_tags
7782
}

detections/kubernetes.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
locals {
22
kubernetes_common_tags = merge(local.azure_activity_log_detections_common_tags, {
3+
folder = "Kubernetes"
34
service = "Azure/KubernetesService"
45
})
56
}
@@ -42,4 +43,6 @@
4243
order by
4344
timestamp desc;
4445
EOQ
46+
47+
tags = local.kubernetes_common_tags
4548
}

detections/monitor.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
locals {
22
monitor_common_tags = merge(local.azure_activity_log_detections_common_tags, {
3+
folder = "Monitor"
34
service = "Azure/Monitor"
45
})
56
}
@@ -42,4 +43,6 @@
4243
order by
4344
timestamp desc;
4445
EOQ
46+
47+
tags = local.monitor_common_tags
4548
}

0 commit comments

Comments
 (0)