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: 

Custom Log4j logs are not being written to the DBFS storage.

vs_29
New Contributor II

 I used custom Log4j appender to write the custom logs through the init script and I can see the Custom Log file on the Driver logs but Databricks is not writing those custom logs to the DBFS. I have configured Logging Destination in the Advanced section of the cluster properties. Attaching the screenshots of the init script, Databricks Driver logs, init scriptinit scriptdriver logslogs destination

1 REPLY 1

Debayan
Esteemed Contributor III

Hi @VIjeet Sharma​ , Do you receive any error?

This can be an issue using DBFS mount point /dbfs in an init script: the DBFS mount point is installed asynchronously, so at the very beginning of init script execution, that mount point might not be available yet and hence the logs are not getting updated. Please let us know if I understood it correctly.

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