---
title: Monitor Azure API Management Service Event Hub Logger with Nodinite | Features & Actions
description: Monitor Azure API Management Service Event Hub Loggers with Nodinite. Detect missing or disabled target Event Hubs and invalid Resource IDs, share role-based Monitor Views, and fix problems with Remote Actions.
---

# <i class="fal fa-clouds" aria-hidden="true"></i> Monitoring Azure Event Hub Logger

Your API logging stops silently when the Event Hub behind an Azure API Management Service **Event Hub Logger** goes missing or gets disabled. The <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Azure Monitoring Agent][Azure Agent] watches every Event Hub Logger in your Azure API Management Services, evaluates its state, and lets the right people act from a role-based [Monitor View][Monitor Views], without access to the Azure Portal.

* ✅ Detect disruptions and configuration errors in Event Hub Loggers instantly  
* ✅ Share role-based [Monitor Views][] and [Remote Actions][] with your teams  
* ✅ Search the alert history and get alerts through [Alarm Plugins][]  
* ✅ Limit direct Azure access and increase security  

![An Event Hub Logger in Error because its target Event Hub doesn't exist, its details, and the Delete confirmation, animated walkthrough (7.12)][5]  
*Animated walkthrough: a [Monitor View][Monitor Views] filtered on **API Management Service - Logger** shows a Logger in Error because the target Event Hub from its Resource ID doesn't exist. **Action** > **Details** shows a Logger, and **Action** > **Delete** asks for confirmation; the walkthrough answers **No**.*  

>Learn how to perform Azure Monitoring of the Azure API Management Service **Event Hub Logger**. To log API traffic through the Event Hub Logger with a policy, see [Azure API Management logging][Azure API Management Services - Logging].

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> also provides **Monitoring** for these Azure API Management Service types:  

* <i class="fal fa-clouds" aria-hidden="true"></i> [Azure API Management Services][Azure Agent - Monitoring APIMgmt Service]  
* <i class="fal fa-cloud-upload" aria-hidden="true"></i> [API][Azure Agent - Monitoring API]  
* <i class="fal fa-file-certificate" aria-hidden="true"></i> [Certificates][Azure Agent - Monitoring API Certificates]  
* <i class="fal fa-chart-network" aria-hidden="true"></i> [Private Endpoint][Azure Agent - Monitoring APIMgmt Service - Private Endpoints]  

This page explains how you monitor Azure API Management Service **Event Hub Logger** options using <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> from one or more [role-based][Roles] [Monitor Views][]. You define global or specific thresholds, manage configured Event Hub Loggers, and use [Remote Actions][] to swiftly address reported problems. The [Managing Azure API Management Event Hub Logger][Azure Agent - Managing APIMgmt Service - Logger] page details the Remote Actions. The [Azure Event Hub][Monitoring Event Hub] page covers monitoring of the target Event Hub itself.  

![Azure API Management Service Event Hub Loggers as Resources in a Monitor View (7.12)][1]  
*Example list of monitored Azure API Management Services **Event Hub Loggers** in a <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Monitor View][Monitor Views].*  

## <i class="fal fa-diagram-project" aria-hidden="true"></i> How Monitoring Works

The agent evaluates each Event Hub Logger as a [Resource][Resources], and the [Monitoring Service][] collects the result. Users with access to a [Monitor View][Monitor Views] see the state, act on it with [Remote Actions][], and receive alerts through [Alarm Plugins][].

<div class="mermaid">
graph LR
    EHL["fa:fa-arrow-down-to-line Event Hub Logger<br/>API Management Service"] -->|"Azure REST API"| AG["fa:fa-monitor-waveform Azure Monitoring Agent"]
    AG --> OK["fa:fa-check OK<br/>Target Event Hub found"]
    AG --> WA["fa:fa-triangle-exclamation Warning<br/>Resource ID missing or invalid"]
    AG --> ER["fa:fa-xmark Error<br/>Target Event Hub missing or disabled"]
    AG --> UN["fa:fa-ban Unavailable<br/>No network or access"]
    WA --> AP["fa:fa-bell Alarm Plugins"]
    ER --> AP
    WA --> RA["fa:fa-bolt Remote Actions<br/>Edit Resource ID"]
    style OK fill:#93d16d
    style WA fill:#FFD525
    style ER fill:#c33d34,color:#fff
    style UN fill:#c33d34,color:#fff
    style AG fill:#2678BD,color:#fff
</div>

*Diagram: The agent evaluates each Event Hub Logger into OK (green), Warning (yellow), or Error and Unavailable (red); Warning and Error raise alerts, and you fix the Resource ID with the Edit Remote Action.*

## <i class="fal fa-sliders-h" aria-hidden="true"></i> Monitoring Features

* <i class="fal fa-traffic-light-go" aria-hidden="true"></i> **State Evaluation** - Provide state according to user-defined thresholds.  
    >If <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> can't check your Azure API Management Service items' state, chances are no one else can use them either.  
* <i class="fal fa-radar" aria-hidden="true"></i> Services have **Automatic Discovery**  
  * The <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Azure Agent][] uses the [Azure REST API][]<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>. Hence, the agent manages the Azure API Management Services **Event Hub Loggers** dynamically.  
* <i class="fal fa-folder" aria-hidden="true"></i> **Category-based monitoring** - The Azure API Management Service **Event Hub Logger** belongs to the [Category][Categories] **API Management Service - Logger**  
* <i class="fal fa-users-class" aria-hidden="true"></i> Share access to individual **Event Hub Loggers** from within <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> using one or more role-based [Monitor Views][].  
* <i class="fal fa-box-open" aria-hidden="true"></i> The [Application][Applications] name is constructed as `/ConfigurationName/ResourceGroupName/API Management Service Name/`. This naming scheme provides uniqueness, even if you deploy the same set of artifacts/services with the same name in different Monitored Azure Subscriptions.  

![Application path naming scheme for Azure API Management Service resources (7.12)][3]  
*The [Application][Applications] path combines the configuration, Resource Group, and API Management Service names.*  

## <i class="fal fa-traffic-light-go" aria-hidden="true"></i> State evaluation for Azure API Management Service Event Hub Logger

The configured Subscriptions with Azure API Management Services **Event Hub Loggers** to monitor appear within <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> as one or more [Resources][]. For example, if you have two Event Hub Loggers, you have two **Resources** in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>.

* <i class="fal fa-lightbulb-on" aria-hidden="true"></i> The <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Resources][] name is the name of the deployed Event Hub Logger.

Each item (presented in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> as a [Resource][Resources]) evaluates with a state (OK, Warning, Error, Unavailable).

You can override the evaluation process by configuring the [Expected State][] option available for all <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Resources][]. Use [Auto Healing][] when you want <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> to act on a state change automatically.

### <i class="fal fa-clouds" aria-hidden="true"></i> API Management Service Event Hub Logger  

For the Category **API Management Service - Logger**, the state evaluates as described in the table below:  

|State|Status|Description|<i class="fal fa-bolt" aria-hidden="true"></i> Actions|  
|---|---|---|---|  
|🚫 <span title="Used to indicate an error/fatal condition">Unavailable</span>|**Resource not available**|<ul><li>Evaluation of the 'Event Hub Logger' is not possible either due to network or security-related problems</li></ul>|Review [Prerequisites][]|  
|❌ <span title="Used to indicate that an error or abnormal condition has been detected">Error</span>|<ul><li>Target Event Hub Entity is missing</li><li>Target Event Hub is Disabled</li></ul>|See [Target Event Hub does not exist](#target-event-hub-from-resource-id-does-not-exist)|<i class="fal fa-edit" aria-hidden="true"></i> [Edit][Azure Agent - Managing APIMgmt Service - Logger - Edit]|  
|⚠️ <span title="Used to indicate an unexpected but not invalid state"> Warning</span>|Resource ID is missing or is invalid <sup><span class="nodinite-new-badge">New 6.2.1.2</span></sup>|See [Missing Resource ID](#missing-resource-id)|<i class="fal fa-edit" aria-hidden="true"></i> [Edit][Azure Agent - Managing APIMgmt Service - Logger - Edit]|  
|✅ <span title="Used to indicate normal operation">OK</span>|**Within user-defined thresholds**|Operational|<i class="fal fa-edit" aria-hidden="true"></i> [Edit][Azure Agent - Managing APIMgmt Service - Logger - Edit]<br/><i class="fal fa-circle-info" aria-hidden="true"></i> [Details][Azure Agent - Managing APIMgmt Service - Logger - Details]|  

____

## <i class="fal fa-history" aria-hidden="true"></i> Alert history for Azure API Management Service  

During root cause analysis or other purposes, it helps to understand how often your Azure API Management Service problems happen. If your [Monitor View][Monitor Views] allows it, you can search for historical state changes for the provided time span, either for all your Azure API Management Services or individually. The generic instructions on how to [Add or manage Monitor View][] and the [Resource State History][] guide detail this topic.  

|Search|Resource history|  
|---|---|  
|<img src="https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Monitor/SearchHistoryByDateTime.png" alt="Search for alert history by date and time in a Monitor View (7.12)" /><br/>*Search for alert history for all resources in the Monitor View*|<img src="https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/Azure/APIMgmt/Logger/ResourceHistory.png" alt="Alert history for a selected Event Hub Logger resource (7.12)" /><br/>*Alert history for the selected Azure API Management Service item*|  

____

## <i class="fal fa-question" aria-hidden="true"></i> Frequently asked questions

Use the [Troubleshooting][] guide to find the FAQ and answers to known problems.

### Missing Resource ID

<sup><span class="nodinite-new-badge">New 6.2.1.2</span></sup>

If you see the following **Warning** (Configuration error: the Resource ID is missing or has an invalid configuration. Please contact the System Administrator to update this configuration):  

![Warning for a missing Resource ID on an Event Hub Logger][2]  
*Warning message when the Resource ID is missing for an Event Hub Logger.*  

You must update the configuration to resolve this problem. Earlier versions of this agent lacked the feature to set and update the **Resource ID**.

As a [User][Users] with the [Remote Actions][] grant, click the **Actions** button, then [Edit][Azure Agent - Managing APIMgmt Service - Logger - Edit] and update the configuration with a valid path to the **target** Event Hub entity.

``` python
/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventHub/namespaces/{namespace}/eventhubs/{eventhub-name}
```

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>The target Event Hub entity might be located in a different resource group or namespace than the API Management Service where this Event Hub logger will be utilized.</p></div>
</aside>

### Target Event Hub from Resource ID does not exist

<sup><span class="nodinite-new-badge">New 6.2.1.2</span></sup>

If you see the following **Error** (Target Event Hub: '{{NAME}}' from Resource ID does not exist. Ensure the configuration is valid and the Resource Group: '{{RESOURCEGROUPNAME}}' with the target Event Hub entity is included in the Monitoring):  

![Error for a missing target Event Hub on an Event Hub Logger (7.12)][4]  
*Error message when the Target Event Hub is either missing for an Event Hub Logger or the Resource Group is not included in the Monitoring.*  

The problem exists because the target Event Hub entity is either missing (potentially deleted) or the Resource Group is not included in the Monitoring.

* Ensure the target Event Hub entity exists, for example from the [Azure Event Hub monitoring][Monitoring Event Hub] Resources.  
* Ensure the Resource Group with the target Event Hub entity is included in the Monitoring ([Configuration][]).  
  * <i class="fal fa-circle-info" aria-hidden="true"></i> [Subscription Details][Azure Agent - Managing Subscription - Details]  
* Review [Azure access rights][AzureApplicationsAccess].  
* Ensure the Resource ID has proper configuration:  

  ``` python
  /subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventHub/namespaces/{namespace}/eventhubs/{eventhub-name}
  ```

____

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-wrench" aria-hidden="true"></i> [Managing Azure API Management Event Hub Logger][Azure Agent - Managing APIMgmt Service - Logger]  
* <i class="fal fa-cloud" aria-hidden="true"></i> [Azure Logging and Monitoring Overview][Azure Logging and Monitoring Overview]  
* <i class="fal fa-bell" aria-hidden="true"></i> [Alarm Plugins][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-cloud" aria-hidden="true"></i> [Azure Monitoring Agent][Azure Agent]  
* <i class="fal fa-clouds" aria-hidden="true"></i> [Azure API Management features][APIM Features Overview]  
* <i class="fal fa-clipboard-check" aria-hidden="true"></i> [Prerequisites][]  
* <i class="fal fa-gear" aria-hidden="true"></i> [Configuration][]  
* <i class="fal fa-arrow-down-to-line" aria-hidden="true"></i> [Azure Event Hub monitoring][Monitoring Event Hub]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Azure API Management logging][Azure API Management Services - Logging]  
* <i class="fal fa-coins" aria-hidden="true"></i> [Azure Costs for Blob Storage and Event Hub][]  
* <i class="fal fa-display" aria-hidden="true"></i> [Monitor Views][]  
* <i class="fal fa-lightbulb-on" aria-hidden="true"></i> [Resources][]  
* <i class="fal fa-folder" aria-hidden="true"></i> [Categories][]  
* <i class="fal fa-box-open" aria-hidden="true"></i> [Applications][]  
* <i class="fal fa-wrench" aria-hidden="true"></i> [Troubleshooting][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/Azure/APIMgmt/Logger/ResourcesInMonitorView.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/Azure/APIMgmt/Logger/MissingResourceIDWarning.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/Azure/ApplicationNaming.png
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/Azure/APIMgmt/Logger/MissingEventHubError.png
[5]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/Azure/APIMgmt/APIM_EventHubLogger.gif

[Add or manage Monitor View]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/add-or-manage-monitor-view/
[Alarm Plugins]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/what-is-an-alarm-plugin/
[APIM Features Overview]:https://docs.nodinite.com/logging-and-monitoring/azure/features/api-management/overview/
[Applications]:https://docs.nodinite.com/administration/monitor-management/applications/features/what-is-an-application/
[Auto Healing]:https://docs.nodinite.com/administration/monitor-management/resources/features/auto-healing/
[Azure Agent]:https://docs.nodinite.com/logging-and-monitoring/azure/overview/
[Azure Agent - Managing APIMgmt Service - Logger]:https://docs.nodinite.com/logging-and-monitoring/azure/features/api-management/event-hub-logger/managing-logger/
[Azure Agent - Managing APIMgmt Service - Logger - Details]:https://docs.nodinite.com/logging-and-monitoring/azure/features/api-management/event-hub-logger/managing-logger/#fa-circle-info-details
[Azure Agent - Managing APIMgmt Service - Logger - Edit]:https://docs.nodinite.com/logging-and-monitoring/azure/features/api-management/event-hub-logger/managing-logger/#fa-edit-edit
[Azure Agent - Managing Subscription - Details]:https://docs.nodinite.com/logging-and-monitoring/azure/features/subscription/managing-subscription/#fa-circle-info-details
[Azure Agent - Monitoring API]:https://docs.nodinite.com/logging-and-monitoring/azure/features/api-management/api/monitoring-api/
[Azure Agent - Monitoring API Certificates]:https://docs.nodinite.com/logging-and-monitoring/azure/features/api-management/certificate/monitoring-certificate/
[Azure Agent - Monitoring APIMgmt Service]:https://docs.nodinite.com/logging-and-monitoring/azure/features/api-management/service/monitoring-service/
[Azure Agent - Monitoring APIMgmt Service - Private Endpoints]:https://docs.nodinite.com/logging-and-monitoring/azure/features/api-management/private-endpoint/monitoring-private-endpoint/
[Azure API Management Services - Logging]:https://docs.nodinite.com/logging-and-monitoring/azure-api-management/overview/
[Azure Costs for Blob Storage and Event Hub]:https://docs.nodinite.com/logging-and-monitoring/custom-logging/troubleshooting/azure-costs-for-blob-storage-and-event-hub/
[Azure Logging and Monitoring Overview]:https://docs.nodinite.com/logging-and-monitoring/azure/features/overview/
[Azure REST API]:https://learn.microsoft.com/en-us/rest/api/azure/  
[AzureApplicationsAccess]:https://docs.nodinite.com/install-and-update/troubleshooting/azure/azure-application-access/
[Categories]:https://docs.nodinite.com/administration/monitor-management/categories/features/what-is-a-category/
[Configuration]:https://docs.nodinite.com/logging-and-monitoring/azure/getting-started/configuration/
[Expected State]:https://docs.nodinite.com/administration/monitor-management/resources/features/expected-state/
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[Monitoring Event Hub]:https://docs.nodinite.com/logging-and-monitoring/azure/features/event-hub/monitoring-event-hub/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[Prerequisites]:https://docs.nodinite.com/logging-and-monitoring/azure/getting-started/prerequisites/
[Remote Actions]:https://docs.nodinite.com/getting-started/monitor/remote-actions/
[Resource State History]:https://docs.nodinite.com/getting-started/monitor/resource-state-history/
[Resources]:https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/
[Roles]:https://docs.nodinite.com/administration/access-management/roles/features/what-is-a-role/
[Troubleshooting]:https://docs.nodinite.com/logging-and-monitoring/azure/troubleshooting/overview/
[Users]:https://docs.nodinite.com/administration/access-management/users/features/what-is-a-user/