You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/api-management/api-management-howto-log-event-hubs.md
+23-6Lines changed: 23 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,9 @@ Now that you have an Event Hub, the next step is to configure a [Logger](https:/
30
30
31
31
API Management loggers are configured using the [API Management REST API](https://aka.ms/apimapi). For detailed request examples, see [how to create Loggers](https://docs.microsoft.com/rest/api/apimanagement/2019-12-01/logger/createorupdate).
32
32
33
-
## Configure log-to-eventhubs policies
33
+
## Configure log-to-eventhub policies
34
34
35
-
Once your logger is configured in API Management, you can configure your log-to-eventhubs policies to log the desired events. The log-to-eventhubs policy can be used in either the inbound policy section or the outbound policy section.
35
+
Once your logger is configured in API Management, you can configure your log-to-eventhub policy to log the desired events. The log-to-eventhub policy can be used in either the inbound policy section or the outbound policy section.
36
36
37
37
1. Browse to your APIM instance.
38
38
2. Select the API tab.
@@ -45,16 +45,33 @@ Once your logger is configured in API Management, you can configure your log-to-
45
45
9. In the window on the right, select **Advanced policies** > **Log to EventHub**. This inserts the `log-to-eventhub` policy statement template.
new JProperty("EventTime", DateTime.UtcNow.ToString()),
52
+
new JProperty("ServiceName", context.Deployment.ServiceName),
53
+
new JProperty("RequestId", context.RequestId),
54
+
new JProperty("RequestIp", context.Request.IpAddress),
55
+
new JProperty("OperationName", context.Operation.Name)
56
+
).ToString();
57
+
}
50
58
</log-to-eventhub>
51
59
```
52
-
Replace `logger-id` with the value you used for `{new logger name}` in the URL to create the logger in the previous step.
60
+
Replace `logger-id` with the value you used for `{loggerId}` in the request URL to create the logger in the previous step.
53
61
54
-
You can use any expression that returns a string as the value for the `log-to-eventhub` element. In this example, a string containing the date and time, service name, request id, request ip address, and operation name is logged.
62
+
You can use any expression that returns a string as the value for the `log-to-eventhub` element. In this example, a string in JSON format containing the date and time, service name, request id, request ip address, and operation name is logged.
55
63
56
64
Click **Save** to save the updated policy configuration. As soon as it is saved the policy is active and events are logged to the designated Event Hub.
57
65
66
+
## Preview the log in Event Hubs by using Azure Stream Analytics
67
+
68
+
You can preview the log in Event Hubs by using [Azure Stream Analytics queries](https://docs.microsoft.com/azure/event-hubs/process-data-azure-stream-analytics).
69
+
70
+
1. In the Azure portal, browse to the event hub that the logger sends events to.
71
+
2. Under **Features**, select the **Process data** tab.
72
+
3. On the **Enable real time insights from events** card, select **Explore**.
73
+
4. You should be able to preview the log on the **Input preview** tab. If the data shown isn't current, select **Refresh** to see the latest events.
74
+
58
75
## Next steps
59
76
* Learn more about Azure Event Hubs
60
77
*[Get started with Azure Event Hubs](../event-hubs/event-hubs-c-getstarted-send.md)
Copy file name to clipboardExpand all lines: articles/data-factory/tumbling-window-trigger-dependency.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,10 @@ The following table provides the list of attributes needed to define a Tumbling
85
85
86
86
## Tumbling window self-dependency properties
87
87
88
-
In scenarios where the trigger should not proceed to next window until the previous window is successfully completed, build a self-dependency. A self-dependency trigger that is dependent on the success of earlier runs of itself within the previous hr will have the below properties:
88
+
In scenarios where the trigger shouldn't proceed to the next window until the preceding window is successfully completed, build a self-dependency. A self-dependency trigger that's dependent on the success of earlier runs of itself within the preceding hour will have the properties indicated in the following code.
89
+
90
+
> [!NOTE]
91
+
> If your triggered pipeline relies on the output of pipelines in previously triggered windows, we recommend using only tumbling window trigger self-dependency. To limit parallel trigger runs, set the maximimum trigger concurrency.
0 commit comments