Skip to content

Commit c8721bf

Browse files
Merge pull request #665 from MicrosoftDocs/main
publish main to live 3:30 PM 6/10/24
2 parents 05f4b3f + c1ec57c commit c8721bf

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

defender-xdr/streaming-api-event-hub.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,22 @@ To get the data types for event properties, do the following steps:
113113
:::image type="content" source="/defender-endpoint/media/machine-info-datatype-example.png" alt-text="An example query for device info" lightbox="/defender-endpoint/media/machine-info-datatype-example.png":::
114114

115115
## Estimating initial Event Hub capacity
116-
The following Advanced Hunting query can help provide a rough estimate of data volume throughput and initial event hub capacity based on events/sec and estimated MB/sec. We recommend running the query during regular business hours so as to capture 'real' throughput.
116+
The following advanced hunting query can help provide a rough estimate of data volume throughput and initial event hub capacity based on events/sec and estimated MB/sec. We recommend running the query during regular business hours so as to capture 'real' throughput.
117117

118-
```kusto
119-
let bytes_ = 500;
120-
union withsource=MDTables *
121-
| where Timestamp > startofday(ago(6h))
118+
```kusto
119+
let bytes_ = 1000;
120+
union withsource=MDTables MyDefenderTable // TODO: Insert desired tables one by one separated by a comma (for example: DeviceEvents, DeviceInfo) or with a wildcard (Device*)
121+
| where Timestamp > startofday(ago(7d))
122122
| summarize count() by bin(Timestamp, 1m), MDTables
123-
| extend EPS = count_ /60
124-
| summarize avg(EPS), estimatedMBPerSec = (avg(EPS) * bytes_ ) / (1024*1024) by MDTables
123+
| extend EPS = count_ /60
124+
| summarize avg(EPS), estimatedMBPerSec = avg(EPS) * bytes_ / (1024*1024) by MDTables, bin(Timestamp, 3h)
125+
| summarize avg_EPS=max(avg_EPS), estimatedMBPerSec = max(estimatedMBPerSec) by MDTables
125126
| sort by toint(estimatedMBPerSec) desc
127+
| project MDTables, avg_EPS, estimatedMBPerSec
126128
```
127129

130+
To check the different Event Hub limits, review [Azure Event Hubs quota and limits](/azure/event-hubs/event-hubs-quotas).
131+
128132
## Monitoring created resources
129133

130134
You can monitor the resources created by the streaming API using **Azure Monitor**.

0 commit comments

Comments
 (0)