Azure Cloud Service Log Integration :: Kloudfuse Docs
Azure Cloud Service Log Integration
Kloudfuse integrates with the Azure cloud service to receive logs through the Datadog agent. Complete these tasks to ensure smooth sending and ingestion of log streams:
- Create an Azure Event Hub
- Create the Kloudfuse-Azure Function
- Point your Event Hub Trigger to Kloudfuse
- Create Diagnostic Settings
See Datadog documentation for the following tasks:
Create an Azure Event Hub
Create an Azure Event Hub; see Datadog documentation for Create an Azure Event Hub:
- Create an Event Hubs namespace.
- Add an Event Hub to your Event Hubs namespace
- Configure shared access.
Create the Kloudfuse-Azure Function
- Create a function app
- Configure your function app with the Event Hub connection string.
- Add a new function to your Function App using the Event Hub trigger template.
Point your Event Hub Trigger to Kloudfuse
This section is adapted from Point your Event Hub trigger to Datadog, instead pointing to Kloudfuse.
On the detail page of your Event Hub trigger function, click Code + Test under the Developer side menu.
Add the Kloudfuse-Azure function to the function’s
index.jsfile:Configure
authfor ingestion. See Ingestion Authentication with API Keys for AWS > CloudWatch Metrics and Logs on how to generate anAUTH_TOKEN.- Use the value of
AUTH_TOKENas theKF_API_KEYparameter in theindex.jsfile, line 21:
- Use the value of
const KF_API_KEY = process.env.KF_API_KEY || "<KF_API_KEY>";
```
3. Set the `KF_URL` parameter in the `index.js` file, line 22, to your Kloudfuse URL:
```yaml
const KF_URL = process.env.KF_URL || "<KF_HTTP_URL>";
```
4. Save the function.
3. Click **Integration** under the **Developer** side menu.
4. Click **Azure Event Hubs** under **Trigger and inputs**.
5. Confirm the following settings:
- Event hub connection
- Name of your connection string environment variable
- Event parameter name
- `eventHubMessages`
- Event hub name
- Name of your Event Hub.
- Event hub cardinality
- `Many`
- Event hub data type
- Empty
6. To validate your setup, click **Code + Test** under the Developer side menu.
7. Click **Test/Run** and enter a test message in valid JSON format.
8. Find your test message in the Kloudfuse Logs Explorer.
## Create Diagnostic Settings
For logs of all resources in Azure that you want to capture, create diagnostic settings:
1. Create diagnostic settings for [activity logs](https://docs.datadoghq.com/logs/guide/azure-logging-guide/?tab=manualinstallation#activity-logs).
2. Create diagnostic settings for [resource logs](https://docs.datadoghq.com/logs/guide/azure-logging-guide/?tab=manualinstallation#resource-logs).