@Smruti Ranjan Nayak Thanks for reaching out. As Ben mentioned custom logging would be through Event Hubs.
To ingest custom logs from APIM to a Log Analytics workspace, you can follow these steps:
- Create a custom log in APIM. You can do this by adding a log-to-eventhub policy to your API or operation policy. This policy sends log data to an Azure Event Hub, which can then be ingested into a Log Analytics workspace. https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-log-event-hubs#log-to-event-hub-policy
- Create an Azure Event Hub.
- Configure the Azure Event Hub to send data to the Log Analytics workspace. You can do this by creating a diagnostic setting for the Event Hub and configuring it to send data to the Log Analytics workspace.https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/diagnostic-settings#create-a-diagnostic-setting
- Verify that the custom logs are being ingested into the Log Analytics workspace. https://learn.microsoft.com/en-us/azure/azure-monitor/logs/log-analytics-overview
I hope this helps and let me know if any questions.
If you found the answer to your question helpful, please take a moment to mark it as Yes for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.