Show / Hide Table of Contents

    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

    integration Message queue

    • Enable the Log target setting for Message bus:

    Messages 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:

    Azure service bus monitor

    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.

    message-bus-consuming

    Limitations

    Hot reloading settings are not applied for Runtime. Restarting IIS is required.

    Back to top Generated by DocFX