Azure / Enterprise-Scale

The Azure Landing Zones (Enterprise-Scale) architecture provides prescriptive guidance coupled with Azure best practices, and it follows design principles across the critical design areas for organizations to define their Azure architecture
https://aka.ms/alz
MIT License
1.69k stars 963 forks source link

Support multiple log analytics workspace destinations in the Deploy-* policies #1600

Closed craigthackerx closed 4 months ago

craigthackerx commented 6 months ago

Community Note

Description

Is your feature request related to a problem?

I want to be able to stream all AzureDiagnostic and all AzActivity table logs to a different log analytics workspace. As it stands, the policy defintions accept a string for destination workspace, so when diagnostic settings are deployed, it deploys a single setting to the workspace created in the other parts of the deployment.

Describe the solution you'd like

It would be helpful if instead of a string for workspace ID, a list of string is accepted where the ID of each log analytics workspace can be propagated into the template file. It would be helpful if a user provided parameter could check for this also.

Additional context

It may also be helpful to add a feature to allow deployment of storage or eventhub diagnostic settings.

SteveBurkettNZ commented 6 months ago

We also come across this, where we want to fire telemetry data to an operational Log Analytics workspace and audit/security logs to a security Log Analytics workspace (for ingestion into Microsoft Sentinel). Too expensive otherwise.

matt-FFFFFF commented 6 months ago

Hi - this is a change to the policy definitions, which are not maintained in this repo.

moving upstream

matt-FFFFFF commented 6 months ago

Adding @springstone and /cc @jtracey93

craigthackerx commented 5 months ago

Hey folks, any further forward on this?

Springstone commented 4 months ago

@craigthackerx Sorry we haven't been super responsive, we're busy transitioning Diagnostic Settings away from ALZ. In the next policy refresh (part of which is PR #1641), we're deprecating all our custom policies and assigning by default all logging to a centrally defined workspace. For your requirements, there are additional initiatives (published on 15 May 2024) that will allow you to target other destinations (including storage, Event Hub, Log Analytics), and the nature of categories you want to capture logs for (All Logs or Audit logs only). You can create an additional assignment targeting the destination you want for the log category you want (just make sure you change the "diagnosticSettingName" for each assignment!