<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do you enable verbose logging from with in Workspace Settings using Terraform? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-do-you-enable-verbose-logging-from-with-in-workspace/m-p/7359#M3253</link>
    <description>&lt;P&gt;I've searched and there is no such resource as `databricks_workspace_cluster_policy`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather this should work:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;resource "databricks_cluster_policy" "audit_logs_policy" {
  name = "Audit Logs Policy"
  definition = jsonencode({
    "audit_logs": {
      "audit_enabled": true,
      "audit_logs_level": "ALL"
      "log_all_clusters": true,
      "log_all_users": true,      
    }
  })
}
&amp;nbsp;
output "audit_policy_id" {
  value = databricks_cluster_policy.audit_logs_policy.id
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This cluster policy will need to be applied to the cluster created inside the workspace. &lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 11:06:32 GMT</pubDate>
    <dc:creator>njglen</dc:creator>
    <dc:date>2023-03-27T11:06:32Z</dc:date>
    <item>
      <title>How do you enable verbose logging from with in Workspace Settings using Terraform?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-you-enable-verbose-logging-from-with-in-workspace/m-p/7356#M3250</link>
      <description>&lt;P&gt;I've searched in the databricks provider and online and couldn't find out if it is possible to set the `Verbose Audit Logs` to `enabled` using Terraform. Can anybody clarify if it is possible? &lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 13:19:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-you-enable-verbose-logging-from-with-in-workspace/m-p/7356#M3250</guid>
      <dc:creator>njglen</dc:creator>
      <dc:date>2023-03-21T13:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable verbose logging from with in Workspace Settings using Terraform?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-you-enable-verbose-logging-from-with-in-workspace/m-p/7357#M3251</link>
      <description>&lt;P&gt;@Nicholas Glen​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it is possible to enable verbose audit logs in Databricks Workspace Settings using Terraform.&lt;/P&gt;&lt;P&gt;You can use the databricks_workspace_cluster_policy resource to create or update a cluster policy that enables verbose audit logs. Here's an example code snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;resource "databricks_workspace_cluster_policy" "example_policy" {
  policy_id   = "example_policy"
  policy_name = "Example Policy"
  policy_json = jsonencode({
    "audit_logs": {
      "log_all_users": true,
      "log_all_clusters": true,
      "audit_enabled": true,
      "audit_logs_level": "ALL"
    }
  })
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In this example, we're creating a new cluster policy with the ID example_policy that enables verbose audit logs for all users and clusters. The policy_json field specifies the JSON representation of the policy, which is a nested object with an audit_logs field that contains the settings for audit logging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then attach this policy to a workspace by using the databricks_workspace_resource&lt;/P&gt;&lt;P&gt;resource with the policy field set to the ID of the policy:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;resource "databricks_workspace_resource" "example_workspace" {
  name  = "example_workspace"
  path  = "/"
  policy {
    policy_id = databricks_workspace_cluster_policy.example_policy.policy_id
  }
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This attaches the example_policy policy to the workspace with the name example_workspace.&lt;/P&gt;&lt;P&gt;Note that enabling verbose audit logs can generate a large amount of log data, so make sure you have adequate storage and log management in place.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 04:09:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-you-enable-verbose-logging-from-with-in-workspace/m-p/7357#M3251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-23T04:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable verbose logging from with in Workspace Settings using Terraform?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-you-enable-verbose-logging-from-with-in-workspace/m-p/7358#M3252</link>
      <description>&lt;P&gt;Hi @Nicholas Glen​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting your question in our community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To assist you better, please take a moment to review the answer and let me know if it best fits your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help us select the best solution by clicking on "Select As Best" if it does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your feedback will help us ensure that we are providing the best possible service to you. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 04:58:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-you-enable-verbose-logging-from-with-in-workspace/m-p/7358#M3252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-27T04:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable verbose logging from with in Workspace Settings using Terraform?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-you-enable-verbose-logging-from-with-in-workspace/m-p/7359#M3253</link>
      <description>&lt;P&gt;I've searched and there is no such resource as `databricks_workspace_cluster_policy`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather this should work:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;resource "databricks_cluster_policy" "audit_logs_policy" {
  name = "Audit Logs Policy"
  definition = jsonencode({
    "audit_logs": {
      "audit_enabled": true,
      "audit_logs_level": "ALL"
      "log_all_clusters": true,
      "log_all_users": true,      
    }
  })
}
&amp;nbsp;
output "audit_policy_id" {
  value = databricks_cluster_policy.audit_logs_policy.id
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This cluster policy will need to be applied to the cluster created inside the workspace. &lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 11:06:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-you-enable-verbose-logging-from-with-in-workspace/m-p/7359#M3253</guid>
      <dc:creator>njglen</dc:creator>
      <dc:date>2023-03-27T11:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable verbose logging from with in Workspace Settings using Terraform?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-you-enable-verbose-logging-from-with-in-workspace/m-p/45602#M27946</link>
      <description>&lt;P&gt;The switch you're looking for is&amp;nbsp;enableVerboseAuditLogs in&amp;nbsp;&lt;SPAN&gt;databricks_workspace_conf&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;resource&lt;/SPAN&gt;: {&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;databricks_workspace_conf&lt;/SPAN&gt;: {&lt;BR /&gt;    &lt;SPAN&gt;this&lt;/SPAN&gt;: {&lt;BR /&gt;      &lt;SPAN&gt;custom_config&lt;/SPAN&gt;: {&lt;BR /&gt;        &lt;SPAN&gt;enableIpAccessLists&lt;/SPAN&gt;: &lt;SPAN&gt;true&lt;/SPAN&gt;,&lt;BR /&gt;        &lt;SPAN&gt;enableVerboseAuditLogs&lt;/SPAN&gt;: &lt;SPAN&gt;true&lt;/SPAN&gt;,&lt;BR /&gt;      },&lt;BR /&gt;    },&lt;BR /&gt;  },&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Sep 2023 02:26:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-you-enable-verbose-logging-from-with-in-workspace/m-p/45602#M27946</guid>
      <dc:creator>qiaochu</dc:creator>
      <dc:date>2023-09-22T02:26:23Z</dc:date>
    </item>
  </channel>
</rss>

