Hi user_unknown,
Thanks for reaching out to Microsoft Q&A.
You can assign the system-assigned identity contributor role to your log analytics workspace. For the spark conf settings that you would need, please see the link below which explains the step-by-step instructions including the configuration settings in detail.
https://github.com/mspnp/spark-monitoring/blob/main/README.md
https://dustinvannoy.com/2022/05/12/monitor-synapse-spark-with-log-analytics/
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.