How to log to message buses
You can configure Identify to log to message buses like Azure Service Bus or RabbitMQ, allowing other client applications to monitor many of Identify's activities based on the incoming log messages.
Enable logging to message buses
To log data to message buses, you need to do the following steps:
- Create and set up your Azure service bus or RabbitMQ resource and collect its connection string.
- Create a new Integration and enable its Publish logs option
- Enable the Log target setting for Message bus:
- Save your changes.
Note: To prevent unexpected errors, ensure that the connection to the message bus is properly configured and that the web server can successfully connect to it.
Monitoring
After setting up the message bus logging correctly, now you can monitor the published log messages on the message bus portal. Below is an example of Azure service bus:
Sample client code for consuming published log messages
Sample client code can be found at https://github.com/Safewhere/Safewhere-Identify-samples/tree/master/EventFramework.
Limitations
Hot reloading settings are not applied for Runtime. Restarting IIS is required.