Diagnostic Settings v2 - What's Missing #1644
-
Diagnostic Settings have had a lot of attention here in ALZ land, but with the transition to using the new built-in initiatives and policies, there may be some gaps. This is the place to share those gaps, with people that can potentially drive improvements regularly reviewing. If you find a service not covered, please added it to this discussion thread so we can track it.
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 12 replies
-
There is no built in policy for: |
Beta Was this translation helpful? Give feedback.
-
I dont see any of the 4 Storage Account Diagnostic settings I assume that they are all in this resource type: |
Beta Was this translation helpful? Give feedback.
-
I am a little confused. At first I thought the builtin inititiative Enable allLogs category group resource logging for supported resources to Log Analytics (0884adba-2312-4468-abeb-5422caed1038) is the complete initiative for all diagnostic logging on all resource types, but it is not. Is it a goal for this initiative to be complete in that respect? Or should I create my own initiative with policies that I miss The initiative lacks policies for web applications, function apps and storage accounts, for instance. |
Beta Was this translation helpful? Give feedback.
-
The new All Logs policy do not configure any METRICS and there is no built in policy for configuring additional metrics. Problem is that metrics are required for proper defender / threat analysis. Any suggestions on how to tackle? MORE INFO:Screenshot on the KeyVault policy to enable "AllLogs" (you can see the empty Metrics) For Dutch public sector there is a Built In BIO policy urging to enable metric logging on several resources : And a blog post with a recommendation to enable metrics on storage, eventhub, keyvault, apps and networking |
Beta Was this translation helpful? Give feedback.
-
Why is there such a difference between 'allLogs' and 'audit'? There are 69 policies for audit, but 140 for allLogs. I checked a couple of the missing ones, and they have the ability for 'audit'. For example: |
Beta Was this translation helpful? Give feedback.
-
Not sure if it is the right place to post, but I'll give it a shot... I agree with previous posts that (1) there should definitely be a parameter in the built-in initiative to allow sending metrics to LAWS. Further, (2) I think there should be a third Category Group to allow sending the "non-Audit" logs to one destination and the audit logs to another (separating security and operational, more or less). Right now the only choice you have is Audit or AllLogs (which include Audit: double ingestion costs). In order to support, this, we ended up rewriting everything as custom policies (and initiative) to use Categories instead of Category Groups and send Metrics. |
Beta Was this translation helpful? Give feedback.
-
Microsoft.ContainerService/managedClusters |
Beta Was this translation helpful? Give feedback.
Just a note to everyone on METRICS. METRICS will not be added to Diag Settings policies or initiatives as the control plane is changing and Diag Settings Metrics are considered legacy (and very expensive). Going forward the way to handle this is to use metric streaming based metric export via DCRs which is currently in public preview for some resources. As more resources include support for this paradigm, PG may consider releasing a dedicated initiative for metrics.
See more here: https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/data-collection-metrics?tabs=log-analytics-workspaces