---
title: Configure Nodinite Pickup Service Logging Agent for Azure Service Bus Queue Integration
description: Configure the Nodinite Pickup Service Logging Agent to collect custom Log Events from Azure Service Bus Queues. This guide provides step-by-step setup, best practices, and integration tips for secure, scalable, and reliable log event collection from Azure Service Bus.
---

:ReleaseNotes(https://portal.nodinite.com/marketplace/14):

# :fa-edit: Service Bus Queue Configuration Example

Easily integrate your enterprise systems by configuring the :Nodinite: [Pickup Logging Service][Pickup Service] to fetch [JSON Log Events][JSON Log Event] directly from your Azure Service Bus Queues. This guide empowers you to set up secure, scalable, and reliable log event collection for your organization using [Azure Service Bus][].  

✅ Seamless integration with Azure Service Bus for real-time log event collection  
✅ Secure and compliant long-term storage of log data  
✅ Scalable configuration for enterprise environments  
✅ Automated error handling and message validation for reliable operations  

<div class="mermaid">
graph TD
    subgraph "Azure Service Bus"
        roS("fa:fa-list: Queue")
        roDLQ("fa:fa-skull-crossbones: Dead Letter Queue")
    end
    subgraph "Nodinite instance"
        roPS("fa:fa-truck-pickup: Pickup Service")
        roPS -.-> | Bad/invalid messages | roDLQ  
        roS --> roPS
        roPS --> | Long term storage | roDB("fa:fa-database: Log Database")  
    end
    style roS fill:#2678BD
    style roDLQ fill:#c33d34
    style roPS fill:#93d16d
    style roDB fill:#93d16d
</div>

*Diagram: Azure Service Bus Queue integration showing message flow from queue to Pickup Service, with color-coded components (blue=queue, green=healthy/active services, red=dead letter queue for failed messages). Invalid messages are routed to the Dead Letter Queue for review.*  

## :fa-list: Service Bus Queues

The **Service Bus Queues** section lets you manage all Azure Service Bus Queue sources for your log events.

In the [Remote Configuration][] GUI, navigate to the **Service Bus Queues** tab. Here, you can add, edit, or remove Service Bus Queue configurations. Each configuration defines how the :Nodinite: [Pickup Log Events Logging Service][Pickup Service] connects to and processes messages from a specific Azure Service Bus Queue.

![Service Bus Queues Configuration Tab][1]  
*Example of the Service Bus Queues configuration tab in the [Remote Configuration][] GUI.*

Click the **Add** button to create a new Service Bus Queue configuration. Fill in the required fields, such as connection string and queue name settings. You can also configure Replace Rules for advanced message processing.

![Service Bus Queue Configuration Accordion][2]  
*Example of a Service Bus Queue configuration accordion in the [Remote Configuration][] GUI.*

Expand the accordion for each Service Bus Queue configuration to access advanced settings, including [Replace Rules][ReplaceRules] for message processing. These rules allow you to modify message content before it's stored in :Nodinite:, ensuring consistency and compliance with your logging standards.

>[!IMPORTANT]
>Ensure that your Service Bus Queue connection string has the necessary permissions (Manage, Send, Listen) and that the queue exists in your Azure Service Bus namespace. Test connectivity before enabling a configuration.

### General tab

The **General tab** provides the fundamental settings for your Service Bus Queue configuration within the [Remote Configuration][] GUI.  
  ![General Tab][3]  
  *The General tab allows you to enable/disable the configuration and provide a display name and description.*

The following key fields are required:

|Field|Description|Required|Notes|  
|---|---|---|---|  
|:fa-toggle-on: **Enabled**|Checkbox to activate or deactivate this Service Bus Queue configuration|No|When unchecked, the Pickup Service will skip this configuration|  
|:fa-tag: **Display Name**|User-friendly name for this Service Bus Queue source configuration|✅ Yes|Used in the GUI and logs for easy identification|  
|:fa-align-left: **Description**|Optional detailed description of the Service Bus Queue configuration|No|Helps document the purpose and details of this specific queue setup|  

Follow these guidelines when configuring the General tab:

* Use descriptive names that clearly indicate the queue and purpose (e.g., "Production Queue - Order Events")
* In the Description field, note important details such as the queue's business purpose, owner contact, or any special processing notes
* The Display Name appears throughout the :Nodinite: interface, so keep it concise yet meaningful
* Leave the configuration disabled during initial setup if you're not ready to start collecting log events

### Source tab

The **Source tab** contains the Service Bus connection configuration and queue settings.  
  ![Source Tab][4]  
  *The Source tab contains settings for connecting to Azure Service Bus.*

The following key fields must be configured for queue connectivity:

|Field|Description|Required|Notes|  
|---|---|---|---|  
|:fa-plug: [Connection String][Connection Strings]|Service Bus connection string with authentication|✅ Yes|Example: `Endpoint=sb://yournamespace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=yourkey`|  
|:fa-inbox: **Queue**|Name of the Service Bus Queue to consume messages from|✅ Yes|Specify only the queue name (e.g., "pickup", "log-events")|  
|:fa-box-archive: **Backout Queue**|Name of the backout queue where failed or invalid messages are moved|No|The Pickup Service automatically moves messages that fail processing to this queue for review and troubleshooting|  

Follow these guidelines when setting up the Source tab:

* Ensure your connection string includes the necessary permissions (Manage, Send, Listen at minimum)
* Connection strings can be copied from the Azure portal under Shared Access Policies
* Use connection strings with the fully qualified namespace (yournamespace.servicebus.windows.net)
* Test the connection before enabling to verify credentials and queue accessibility
* For multiple queues, create separate configurations for each queue
* Configure a Backout Queue to capture failed or invalid messages for troubleshooting
* Monitor both the input queue and backout queue health using the [Message Queueing Agent][] to track queue depth, message age, and performance metrics
* The backout queue should exist in the same Service Bus namespace as the source queue
* Keep connection strings secure and never embed them in documentation or version control
* For production environments, prefer Azure AD App Registration authentication over shared access keys for enhanced security and auditability

### Destination tab

The **Destination tab** settings are shared across all source configurations. See [Destination Tab][] in the shared configuration guide.

### Queue Authentication tab

The **Queue Authentication tab** provides authentication configuration options for connecting to Azure Service Bus.  
  ![Queue Authentication Tab][6]  
  *The Queue Authentication tab allows you to configure credentials for Service Bus access.*

The following authentication methods are supported:

|Authentication Method|Use Case|Configuration|  
|---|---|---|  
|:fa-key: **Shared Access Key**|Development and testing environments|Connection string with SharedAccessKeyName and SharedAccessKey|  
|:fa-user-shield: **Managed Identity**|Production environments with Azure AD integration|Use App Registration (client credentials) with Tenant ID, Client ID, and Client Secret|  
|:fa-id-badge: **Azure AD App Registration**|Enterprise environments requiring identity-based access|Provide credentials issued by your Azure AD tenant|  

Follow these security guidelines for Queue Authentication:

* For production environments, prefer Managed Identity over shared access keys
* When using App Registration, ensure the application has the appropriate Service Bus roles assigned
* Regularly rotate credentials and access keys
* Use the principle of least privilege when assigning permissions
* Store sensitive credentials securely using [Secret Management][] features
* Test authentication configuration before enabling the source

### Replace Rules

Read about [Replace Rules][ReplaceRules] in the shared configuration section. Replace Rules allow you to modify message content before it's stored in :Nodinite:, ensuring consistency and compliance with your logging standards.
  ![Replace Rules Tab][7]  
  *The Replace Rules tab allows you to configure rules for modifying message content.*

## :fa-file: Configuration file  

>[!NOTE]
>This section applies for **older** versions (<7.1.x) of the :Nodinite: [Pickup Log Events Logging Service][Pickup Service].

```cmd
C:\Program Files\Nodinite\Logging Agent - Pickup Service\Settings.json
```

```json
{
  ...
  "ServiceBusQueues": [
    {
      "Enabled": true,
      "LogApi": "https://nodinite.contoso.com:40002/LogAPI/",
      "UseConfigurationDatabase": false,
      "ConfigurationDatabaseConnectionString": null,
      "ConnectionString": "Endpoint=sb://nodinite.com/servicebus.windows.net/;SharedAccessKeyName=yoursecretkey;SharedAccessKey=ib2+ofZaFyEhbwzgn1nAhw2XDY3UVc1JefdlGgLGIbb=",
      "Queue": "pickup",
      "ReplaceRules": [
        {
          "Name": "Fix Endpoint real customer id to {customerId}",
          "ReplaceName": false,
          "ReplaceUri": true,
          "Pattern": "/([0-9]{4,})$",
          "Group1Value": "{customerId}"
        }
      ]
    }
  ]
  ...                      
}
```

**ServiceBusQueues** is an **array** of ServiceBusQueue configurations. Each entry defines how the [Log Agent][Log Agents] connects to and processes messages from a specific Azure Service Bus Queue. This setup ensures your :Nodinite: [JSON Log Events][JSON Log Event] are reliably collected and managed.  

|Property|Description|Value Example|Comment|  
|---|---|---|---|  
|:fa-plug: **ConnectionString**|Service Bus Connection string|`Endpoint=sb://nodinite.com/servicebus.windows.net/;SharedAccessKeyName=yoursecretkey;SharedAccessKey=replaceme`|Copy from the Azure portal|  
|:fa-inbox: **Queue**|Name of the Service Bus Queue to pick up [JSON Log Event][] from||**NOTE:** Only the queue name|  
|:fa-toggle-on: **Enabled**|See the [Shared Configuration][] section for more info|||  
|:fa-link: [LogAPI][Log API]|See the [Shared Configuration][] section for more info|||  
|:fa-database: **UseConfigurationDatabase**|See the [Shared Configuration][] section for more info|||  
|:fa-plug: **ConfigurationDatabaseConnectionString**|See the [Shared Configuration][] section for more info|||  
|:fa-exchange-alt: **ReplaceRules**|See the shared [Replace Rules][ReplaceRules] section for more info|||  

>[!IMPORTANT]
>When you are done editing the configuration, you must restart the :Nodinite: [Pickup Logging Service][Pickup Service] for configuration changes to take effect.  

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

* :fa-cog: [Configure][Configuration] - Set up your Service Bus Queue integration  
* :fa-book: [Remote Configuration Guide][Remote Configuration] - Learn the GUI setup process  

## :fa-link-horizontal: Related Topics

* :fa-file-code: [JSON Log Event][] - Message format specification  
* :fa-exchange-alt: [Replace Rules][ReplaceRules] - Transform message content  
* :fa-database: [Log Databases][] - Where log events are stored  
* :fa-plug: [Log API][] - REST endpoint for log events  
* :fa-info-circle: [Pickup Service Overview][Pickup Service] - Feature overview  
* :fa-puzzle-piece: [Shared Configuration][Shared Configuration] - Common settings guide  

[1]:{ndm}/Documentation%20Pictures/LogAgent/PickupService/Configuration/SB/ServiceBusQueues.png
[2]:{ndm}/Documentation%20Pictures/LogAgent/PickupService/Configuration/SB/EmptyAccordionTab.png
[3]:{ndm}/Documentation%20Pictures/LogAgent/PickupService/Configuration/SB/GeneralTab.png
[4]:{ndm}/Documentation%20Pictures/LogAgent/PickupService/Configuration/SB/SourceTab.png
[6]:{ndm}/Documentation%20Pictures/LogAgent/PickupService/Configuration/SB/AuthenticationTab.png
[7]:{ndm}/Documentation%20Pictures/LogAgent/PickupService/Configuration/SB/ReplaceRulesTab.png

[Azure Service Bus]:{ndr}/Logging%20and%20Monitoring/Message%20Queueing/Features/Azure%20Service%20Bus%20Queues/Monitoring%20Azure%20Service%20Bus%20Queue.md
[Configuration]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Getting%20started/3.%20Configuration.md
[Connection Strings]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Connection%20Strings.md
[Destination Tab]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Getting%20started/3.%20Configuration.md#fa-right-from-bracket-destination-tab
[JSON Log Event]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md
[Log Agents]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Agent.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Message Queueing Agent]:{ndr}/Logging%20and%20Monitoring/Message%20Queueing/Overview.md
[Pickup Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Overview.md
[Remote Configuration]:{ndr}/Administration/2.%20Monitor%20Management/2.%20Monitor%20Agents/Features/How%20do%20I%20configure%20a%20Monitor%20Agent.md
[ReplaceRules]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Getting%20started/3.%20Configuration.md#fa-exchange-alt-replace-rules-clean-up-your-dynamic-endpoints-automatically
[Secret Management]:{ndr}/Install%20and%20Update/Troubleshooting/Secret%20Managment.md
[Shared Configuration]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Getting%20started/3.%20Configuration.md#fa-circles-overlap-shared-configuration