-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request a sample Diagnostics setting for enabling auditing for SQL server to send logs to existing Loganalytics workspace(aso v2) #4582
Comments
Hi , is it possible to set this with combination of auditsetting and diagnosticssettings for enabling audit logs for SQL server and send the destination logs to existing log analytics workspace using aso v2 helm chart ? |
Unfortunately, the ASO maintainers (myself included) are not experts in every Azure resource, so I don't fully know how to accomplish what you want. With that said, it does seem like you're on the right track trying to use a BICEP/ARM template sample that does what you want, and translate that into ASO. That template seems to create a
Translating that into ASO, it would look something like this:
If the above doesn't work, I recommend you raise a request to support (via the Azure portal) or file feedback on the ARM template/BICEP documentation for the example you found (either via GitHub issue or via the feedback button on this page |
Hi Matthchr, I have done one change with reference to your template is the owner is mentioned as Sql server instead of database. |
Can you share the fully formatted yaml you submitted? |
Yaml file sample :
|
You're not allowed to set group+kind if you also set ARMID, for this one:
Either set |
Hi @matthchr , Any thoughts on this? |
Describe the current behavior
_A sample code is shared where the audit logs are redirected to storage account:https://github.com/Azure/azure-service-operator/blob/main/v2/samples/sql/v1api20211101/v1api20211101_serversauditingsetting.yaml
Can you please share the edited version where audit logs for sql server are redirected to existing loganalytics workspace
I went through the documentation , fields are not clearly explaining which field to use for enabling log. As part of my understanding I have enabled auditing settings with 'Enabled' state and set 'IsAzureMonitorTargetEnabled . Currently am seeing the destination of audit logs is not set.
In page https://learn.microsoft.com/en-us/samples/azure/azure-quickstart-templates/sql-auditing-server-policy-to-oms/ : it is mentioned to configure Diagnostic Settings as well with 'SQLSecurityAuditEvents' diagnostic logs category on the 'master' database (for server level auditing).Please elaborate on this.
Describe the improvement
Please share a sample with combination of auditsetting and diagnosticssettings for enabling audit logs for SQL server and send the destination logs to existing log analytics workspace using aso v2 helm chart.
Additional context
I tried this combination but some information on the master database seemed little unclear when i want to enable currently for sqlserver. I get some errors when category or category groups are mentioned as not existing e.g allLogs as value. Please share a sample aso v2 helm chart for this.
Thanks in advance .
The text was updated successfully, but these errors were encountered: