I am unable to send the logs to the log analytics workspace in order to monitor the service principal sign in logs.
I have a service principal in azure. I want to send its signin logs to a log analytics workspace in order to monitor and later setup alerts on them. But when I follow these steps https://learn.microsoft.com/en-us/entra/identity/monitoring-health/howto-integrate-activity-logs-with-azure-monitor-logs I cannot see any logs in my log analytics workspace.
I can finally see the logs in the log analytics. Had to follow these steps only https://learn.microsoft.com/en-us/entra/identity/monitoring-health/howto-integrate-activity-logs-with-azure-monitor-logs but instead of 15 min I had to wait for ~2 hours for the logs to be visible.
Steps to direct service principal logs to the log analytics workspace. Prerequisites:
Security Administratorrole assigned.Steps, from the document:
As per the doc, we should see the logs getting streamed in the workspace after about ~15 min but it might take longer as well.