Logging in Azure
Deploying your application or infrastructure in Microsoft Azure? Stream your logs to highlight to see everything in one place.
Check out the following examples of setting up logs streaming in these services:
Setup the Azure Event Hubs to enable streaming logs.
Create an Azure Function triggered by Event Hubs that will forward logs to highlight.
Configure the Azure Function with the following Node.js code, updating the values for
Click on Integration then Azure Event Hubs under trigger and check the following settings: a. Event Parameter Name is set to eventHubMessages. b. Event Hub Cardinality is set to Many. c. Event Hub Data Type is left empty.
- Enable Azure service diagnostic settings in the Activity Log to send logs to the Event Hub, which in turn will be streamed to highlight by the function created in step 3.
At this point, your infrastructure / service logs (for which you enabled the diagnostic setting) should show up in highlight!