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

Debayan
Databricks Employee
Databricks Employee

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.