AMQPs Configuration Example
Info
New 6.2 On this page you will learn how to configure the Nodinite Pickup Logging Service to fetch Nodinite JSON Log Event from a queue using the AMQP protocol.
Active MQ 5.x and ActiveMQ Artemis
AMQP 1.0 compliant message queueing service
AMQPs
The AMQPs section is where you manage Apache ActiveMQ related sources.
The configuration file (Settings.json
), is in JSON format, the default path is:
C:\Program Files\Nodinite\Logging Agent - Pickup Service\Settings.json
{
...
"AMQPs": [
{
"Enabled": true,
"LogAPI": "http://localhost/Nodinite/Dev/LogAPI/",
"UseConfigurationDatabase": false,
"ConfigurationDatabaseConnectionString": "Server=.;Database=NodiniteConfig_Dev;Integrated Security=SSPI;Connection Timeout=60;TrustServerCertificate=true",
"ConnectionString": "amqp://localhost:5672",
"Username": "artemis",
"Password": "artemis",
"Queue": "a1",
"DeadLetterQueue": "DLQ",
"ReplaceRules": [
{
"Name": "Fix End Point real customer id to {customerId}",
"ReplaceName": true,
"ReplaceUri": true,
"Pattern": "/([0-9]{4,})$",
"Group1Value": "{customerId}"
}
]
}
]
...
}
AMQPs is an array of ActiveMQ queues. Each configuration is valid for one ActiveMQ queue. This configuration tells the Log Agent where to look for log messages with the Nodinite JSON Log Events.
Property | Description | Value Example | Comment |
---|---|---|---|
ConnectionString | The connection string used to the AMQP Broker | amqp://localhost:5672 |
|
Username | The user name used to connect with AMQP | System | |
Password | The password for the user | Manager | |
Queue | The name of the AMQP Queue from where to pickup JSON Log Event from | ||
DeadLetterQueue | The name of the Dead letter queue where the pickup service puts invalid events and/or events that fails to log | ||
Enabled | Review the Shared Configuration section for additional information | ||
LogAPI | Review the Shared Configuration section for additional information | ||
UseConfigurationDatabase | Review the Shared Configuration section for additional information | ||
ConfigurationDatabaseConnectionString | Review the Shared Configuration section for additional information | ||
ReplaceRules | Review the shared Replace Rules section for additional information |
Important
You must restart the Nodinite Pickup Logging Service for the changes to the configuration file to be operational.