Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Plugin Telemetry not logging logs in Application insights.

(2) ShareShare
ReportReport
Posted on by 21
Hi, I am unable to export plugin logs to application insights using Plugin Telemetry. I have configured all the setups like data exports in Admin center as shown in the screenshot.

I have configured the XRM SDK and plugin telemetry as follows:
The logger.IsEnabled(LogLevel.Error) or any other log levels always shows false.
  • Verified answer
    CU20060432-2 Profile Picture
    21 on at
    Plugin Telemetry not logging logs in Application insights.

    Hi Holly,

    Thank you for your answer.

    We've identified and resolved the issue — it appears to stem from the connection string configuration, which may be due to a bug in Power Platform. Specifically, the Application Insights connection string wasn't correctly set in the data export configuration.

    To fix this, we had to manually patch the organization entity record. The relevant column is telemetryinstrumentationkey in the organization table, which stores the App Insights connection string. This update requires an HTTP request using the Power Apps Web API.

    For example, use this link to find your targeted organization: https://your-env-url.crm.dynamics.com/api/data/v9.1/organizations

    I hope this is helpful for anyone encountering a similar issue.

  • Suggested answer
    Holly Huffman Profile Picture
    6,285 on at
    Plugin Telemetry not logging logs in Application insights.
     
    Good morning, afternoon, or evening – depending on where you are in the world!
    This issue you are describing—where Plugin Telemetry logs are not appearing in Application Insights, and logger.IsEnabled(LogLevel.X) always returns false—suggests that the plugin is not correctly wired into the telemetry pipeline, even though the Admin Center setup appears complete.
    Based on your screenshot and setup, here are the likely causes:
    1. Telemetry Not Enabled for the Plugin Assembly
    • Ensure that the plugin assembly is registered with telemetry enabled.
    • In the Plugin Registration Tool, check that the Telemetry Configuration is set to "Enabled" for the assembly.
    2. Missing or Incorrect Instrumentation Key
    • Confirm that the Application Insights connection string is correctly configured in the Power Platform Admin Center under Data Export > Application Insights.
    • Make sure the environment is linked to the correct Application Insights resource.
    3. Telemetry Level Not Set to Include Plugin Logs
    • Go to Power Platform Admin Center > Environment > Settings > Data Export > Application Insights.
    • Ensure that Plugin telemetry is selected under the types of telemetry to export.
    4. ILogger Not Fully Initialized
    • In your plugin code, ensure that ILogger is being retrieved from the correct service provider context:
      var logger = (ILogger)serviceProvider.GetService(typeof(ILogger));
    • If logger is null or not properly injected, IsEnabled() will always return false.
    5. Log Level Filtering in Application Insights
    • Even if logs are sent, Application Insights may filter them out based on severity level.
    • Check your sampling settings and log level filters in Application Insights.

    Suggested Next Steps:
    • Double-check the plugin registration and telemetry settings in the Admin Center.
    • Add a custom trace log using ITracingService to confirm plugin execution.
    • Temporarily log all levels (Information, Warning, Error) and verify if any telemetry appears in Application Insights.
    • Use Live Metrics Stream in Application Insights to confirm if logs are reaching the service in real time.
    I teamed up with AI to respond the most accurately and efficiently.
    Hope this helps some.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 181 Super User 2025 Season 1

#2
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#3
Adis Profile Picture

Adis 136 Super User 2025 Season 1

Product updates

Dynamics 365 release plans