- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2022 04:56 AM
Hi,
I would want to setup the cluster logging (to capture eventlogs to /dbfs/cluster-logs dir) in my cluster pool configuration? is it possible?
If I create cluster manually, I could able to setup the cluster logging as mentioned here: https://docs.microsoft.com/en-us/azure/databricks/clusters/configure#cluster-log-delivery
But I am using instance pool to create cluster automatically and run the workload, in that case I was not able to setup the logging and capture the eventlogs. Any help here is highly appreciated. Thanks in advance!!
Thanks,
Stephanraj
- Labels:
-
Cluster
-
Cluster Pools
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2022 05:27 AM
If you are using API, you can set the logging using the below piece of information in your json body.
https://docs.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/examples#cluster-log-example
"cluster_log_conf": {
"dbfs": {
"destination": "dbfs:/cluster-logs"
}
},
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2022 05:20 AM
Hi @Stephanraj Cā instance pool is to reduce cluster start and auto-scaling times for a cluster. Are you using any API to create clusters? If so could you please share the API request?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2022 05:27 AM
If you are using API, you can set the logging using the below piece of information in your json body.
https://docs.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/examples#cluster-log-example
"cluster_log_conf": {
"dbfs": {
"destination": "dbfs:/cluster-logs"
}
},
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2022 05:52 AM
Hi @Prabakar Ammeappinā , Thank you so much for your input. Yes it worked well!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2022 06:06 AM
Hi @Stephanraj Cā it's good to know that it worked. Please mark the best answer so this question can be closed and will help other members.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2022 06:10 AM
Hi @Prabakar Ammeappinā Thanks. The logs are getting stored in folder with the spark-context-id, is it possible to save the logs with some specific tag names.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2022 06:22 AM
Hi @Stephanraj Cā I am not sure if that would be possible. Also, I haven't seen such configurations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2022 06:35 AM
Hi @Prabakar Ammeappinā Okay, I would write some custom script for that. Once again thanks for your support!!

