Skip to content

Logs: Enable 'AllLogs' #1160

@AlexanderSehr

Description

@AlexanderSehr

Example

@description('Optional. The name of logs that will be streamed.')
@allowed([
  'AllLogs'
  'SQLInsights'
  'AutomaticTuning'
  'QueryStoreRuntimeStatistics'
  'QueryStoreWaitStatistics'
  'Errors'
  'DatabaseWaitStatistics'
  'Timeouts'
  'Blocks'
  'Deadlocks'
  'DevOpsOperationsAudit'
  'SQLSecurityAuditEvents'
])
param logsToEnable array = [
  'AllLogs'
]

image

We'd need to update the diagnostic logs across all modules to allow 'AllLogs' that feed into the 'LogCategory'. That should be relatively easy like:

categoryGroup: contains(logsToEnable, 'AllLogs') ? 'AllLogs' : null


var diagnosticsLogs = categoryGroup: contains(logsToEnable, 'AllLogs') ? {
  enabled: true
  categoryGroup: 'allLogs'
    retentionPolicy: {
    enabled: true
    days: diagnosticLogsRetentionInDays
  }
} : [for log in logsToEnable: {
  category: log
  enabled: true
    retentionPolicy: {
    enabled: true
    days: diagnosticLogsRetentionInDays
  }
}]

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions