How to get apim subsctiption name into apim insight logs?

Bhargav Pasarla 120 Reputation points
2023-06-16T04:57:10.58+00:00

How to get apim subsctiption name into apim insight logs?

By default, it is logging only subscription id in Apim insight logs under custom dimensions.

We need to have subscription name also into apim insight logs. How we can acheive this?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,666 questions
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,463 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 28,596 Reputation points MVP
    2023-06-16T05:45:34.3166667+00:00

    Hi,

    The subscription name is not available out of the box in the logs. You will have to do something custom on your own if you want to have the subscription name. For example, this can be achieved by having some daily or hourly automation like azure function, logic app or azure automation runbook. That workflow can take the subscription ID and subscription name from your APIM instance and put it into its own table. You can use Log Ingestion API to insert data in Log Analytics.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.