Skip to content

Commit fd9e0a2

Browse files
Merge pull request #643 from MicrosoftDocs/main
Publish main to live, 06/07, 3:30 PM IST
2 parents 5259ee6 + 76cee66 commit fd9e0a2

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

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

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,18 @@ 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

118118
```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))
119+
let bytes_ = 500;
120+
union withsource=MDTables *
121+
| where Timestamp > startofday(ago(6h))
122122
| summarize count() by bin(Timestamp, 1m), MDTables
123123
| 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
124+
| summarize avg(EPS), estimatedMBPerSec = (avg(EPS) * bytes_ ) / (1024*1024) by MDTables
126125
| sort by toint(estimatedMBPerSec) desc
127-
| project MDTables, avg_EPS, estimatedMBPerSec
128126
```
129127

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

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

0 commit comments

Comments
 (0)