---
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.
---

# :fa-clouds: 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 :Nodinite: [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].

:Nodinite: also provides **Monitoring** for these Azure API Management Service types:  

* :fa-clouds: [Azure API Management Services][Azure Agent - Monitoring APIMgmt Service]  
* :fa-cloud-upload: [API][Azure Agent - Monitoring API]  
* :fa-file-certificate: [Certificates][Azure Agent - Monitoring API Certificates]  
* :fa-chart-network: [Private Endpoint][Azure Agent - Monitoring APIMgmt Service - Private Endpoints]  

This page explains how you monitor Azure API Management Service **Event Hub Logger** options using :Nodinite: 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 :Nodinite: [Monitor View][Monitor Views].*  

## :fa-diagram-project: 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.*

## :fa-sliders-h: Monitoring Features

* :fa-traffic-light-go: **State Evaluation** - Provide state according to user-defined thresholds.  
    >If :Nodinite: can't check your Azure API Management Service items' state, chances are no one else can use them either.  
* :fa-radar: Services have **Automatic Discovery**  
  * The :Nodinite: [Azure Agent][] uses the [Azure REST API][]<sup>:fa-arrow-up-right-from-square:</sup>. Hence, the agent manages the Azure API Management Services **Event Hub Loggers** dynamically.  
* :fa-folder: **Category-based monitoring** - The Azure API Management Service **Event Hub Logger** belongs to the [Category][Categories] **API Management Service - Logger**  
* :fa-users-class: Share access to individual **Event Hub Loggers** from within :Nodinite: using one or more role-based [Monitor Views][].  
* :fa-box-open: 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.*  

## :fa-traffic-light-go: 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 :Nodinite: as one or more [Resources][]. For example, if you have two Event Hub Loggers, you have two **Resources** in :Nodinite:.

* :fa-lightbulb-on: The :Nodinite: [Resources][] name is the name of the deployed Event Hub Logger.

Each item (presented in :Nodinite: 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 :Nodinite: [Resources][]. Use [Auto Healing][] when you want :Nodinite: to act on a state change automatically.

### :fa-clouds: 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|:fa-bolt: 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)|:fa-edit: [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 :new6.2.1.2:|See [Missing Resource ID](#missing-resource-id)|:fa-edit: [Edit][Azure Agent - Managing APIMgmt Service - Logger - Edit]|  
|✅ <span title="Used to indicate normal operation">OK</span>|**Within user-defined thresholds**|Operational|:fa-edit: [Edit][Azure Agent - Managing APIMgmt Service - Logger - Edit]<br/>:fa-circle-info: [Details][Azure Agent - Managing APIMgmt Service - Logger - Details]|  

____

## :fa-history: 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="{ndm}/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="{ndm}/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*|  

____

## :fa-question: Frequently asked questions

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

### Missing Resource ID

:new6.2.1.2:

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}
```

>[!NOTE]
>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.

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

:new6.2.1.2:

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][]).  
  * :fa-circle-info: [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}
  ```

____

## :fa-hand-point-right: Next Steps

* :fa-wrench: [Managing Azure API Management Event Hub Logger][Azure Agent - Managing APIMgmt Service - Logger]  
* :fa-cloud: [Azure Logging and Monitoring Overview][Azure Logging and Monitoring Overview]  
* :fa-bell: [Alarm Plugins][]  

## :fa-link-horizontal: Related Topics

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

[1]:{ndm}/Documentation%20Pictures/MonitorAgent/Azure/APIMgmt/Logger/ResourcesInMonitorView.png
[2]:{ndm}/Documentation%20Pictures/MonitorAgent/Azure/APIMgmt/Logger/MissingResourceIDWarning.png
[3]:{ndm}/Documentation%20Pictures/MonitorAgent/Azure/ApplicationNaming.png
[4]:{ndm}/Documentation%20Pictures/MonitorAgent/Azure/APIMgmt/Logger/MissingEventHubError.png
[5]:{ndm}/Documentation%20Pictures/MonitorAgent/Azure/APIMgmt/APIM_EventHubLogger.gif

[Add or manage Monitor View]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/Add%20or%20manage%20Monitor%20View.md
[Alarm Plugins]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/What%20is%20an%20Alarm%20Plugin.md
[APIM Features Overview]:{ndr}/Logging%20and%20Monitoring/Azure/Features/API%20Management/Overview.md
[Applications]:{ndr}/Administration/2.%20Monitor%20Management/5.%20Applications/Features/What%20is%20an%20Application.md
[Auto Healing]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/Auto%20Healing.md
[Azure Agent]:{ndr}/Logging%20and%20Monitoring/Azure/Overview.md
[Azure Agent - Managing APIMgmt Service - Logger]:{ndr}/Logging%20and%20Monitoring/Azure/Features/API%20Management/Event%20Hub%20Logger/Managing%20Logger.md
[Azure Agent - Managing APIMgmt Service - Logger - Details]:{ndr}/Logging%20and%20Monitoring/Azure/Features/API%20Management/Event%20Hub%20Logger/Managing%20Logger.md#fa-circle-info-details
[Azure Agent - Managing APIMgmt Service - Logger - Edit]:{ndr}/Logging%20and%20Monitoring/Azure/Features/API%20Management/Event%20Hub%20Logger/Managing%20Logger.md#fa-edit-edit
[Azure Agent - Managing Subscription - Details]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Subscription/Managing%20Subscription.md#fa-circle-info-details
[Azure Agent - Monitoring API]:{ndr}/Logging%20and%20Monitoring/Azure/Features/API%20Management/API/Monitoring%20API.md
[Azure Agent - Monitoring API Certificates]:{ndr}/Logging%20and%20Monitoring/Azure/Features/API%20Management/Certificate/Monitoring%20Certificate.md
[Azure Agent - Monitoring APIMgmt Service]:{ndr}/Logging%20and%20Monitoring/Azure/Features/API%20Management/Service/Monitoring%20Service.md
[Azure Agent - Monitoring APIMgmt Service - Private Endpoints]:{ndr}/Logging%20and%20Monitoring/Azure/Features/API%20Management/Private%20Endpoint/Monitoring%20Private%20Endpoint.md
[Azure API Management Services - Logging]:{ndr}/Logging%20and%20Monitoring/Azure%20API%20Management/Overview.md
[Azure Costs for Blob Storage and Event Hub]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Troubleshooting/Azure%20Costs%20for%20Blob%20Storage%20and%20Event%20Hub.md
[Azure Logging and Monitoring Overview]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Overview.md
[Azure REST API]:https://learn.microsoft.com/en-us/rest/api/azure/  
[AzureApplicationsAccess]:{ndr}/Install%20and%20Update/Troubleshooting/Azure/Azure%20Application%20Access.md
[Categories]:{ndr}/Administration/2.%20Monitor%20Management/4.%20Categories/Features/What%20is%20a%20Category.md
[Configuration]:{ndr}/Logging%20and%20Monitoring/Azure/Getting%20started/3.%20Configuration.md
[Expected State]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/Expected%20State.md
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[Monitoring Event Hub]:{ndr}/Logging%20and%20Monitoring/Azure/Features/Event%20Hub/Monitoring%20Event%20Hub.md
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[Prerequisites]:{ndr}/Logging%20and%20Monitoring/Azure/Getting%20started/1.%20Prerequisites.md
[Remote Actions]:{ndr}/Getting%20Started/3.%20Monitor/Remote%20Actions.md
[Resource State History]:{ndr}/Getting%20Started/3.%20Monitor/Resource%20State%20History.md
[Resources]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/What%20is%20a%20Resource.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Troubleshooting]:{ndr}/Logging%20and%20Monitoring/Azure/Troubleshooting/Overview.md
[Users]:{ndr}/Administration/3.%20Access%20Management/2.%20Users/Features/What%20is%20a%20User.md