cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to enforce a cleanup policy on job cluster logs

EDDatabricks
Contributor

We have a number of jobs on our databricks workspaces. All job clusters are configured with a dbfs location to save the respective logs (configured from Job cluster -> "Advanced options" -> "Logging").

However, the logs are retained in the dbfs indefinitely, even after 60 days (which is the retention period for job runs history). Is it possible to configure a clean up policy on logs older than a defined threshold via the databricks workspace? If it's not possible to achieve this within databricks, what would be a best practice to do this on Azure?

2 REPLIES 2

Atanu
Databricks Employee
Databricks Employee

@EDDatabricks Thanks for reaching out to us.

I think you should explore our Purge option is enabled or not. 
https://docs.databricks.com/en/administration-guide/workspace/settings/storage.html

mtz629
New Contributor II

Pretty sure that controls what's available to the UI in terms of cluster logs, not what resides in the cluster-logs storage directory.  Those are two different considerations.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group