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/azure-monitor/logs/azure-monitor-data-explorer-proxy.md
+29-28Lines changed: 29 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,29 +124,6 @@ More use cases:
124
124
- Use a tag to determine whether VMs should be running 24x7 or should be shut down at night.
125
125
- Show alerts on any server that contains a certain number of cores.
126
126
127
-
### Combine Azure Resource Graph tables with a Log Analytics workspace
128
-
129
-
Use the `union` command to combine cluster tables with a Log Analytics workspace.
130
-
131
-
For example:
132
-
133
-
```kusto
134
-
union AzureActivity, arg("").Resources
135
-
| take 10
136
-
```
137
-
```kusto
138
-
let CL1 = arg("").Resources ;
139
-
union AzureActivity, CL1 | take 10
140
-
```
141
-
142
-
When you use the [`join` operator](/azure/data-explorer/kusto/query/joinoperator) instead of union, you need to use a [`hint`](/azure/data-explorer/kusto/query/joinoperator#join-hints) to combine the data in Azure Resource Graph with data in the Log Analytics workspace. Use `Hint.remote={Direction of the Log Analytics Workspace}`. For example:
143
-
144
-
```kusto
145
-
Perf | where ObjectName == "Memory" and (CounterName == "Available MBytes Memory")
| join hint.remote=left (arg("").Resources | where type =~ 'Microsoft.Compute/virtualMachines' | project _ResourceId=id, tags) on _ResourceId | project-away _ResourceId1 | where tostring(tags.env) == "prod"
148
-
```
149
-
150
127
## Create an alert based on a cross-service query
151
128
152
129
To create a new alert rule based on a cross-service query, follow the steps in [Create a new alert rule](../alerts/alerts-create-new-alert-rule.md), selecting your Log Analytics workspace on the **Scope** tab.
@@ -163,19 +140,43 @@ To create a new alert rule based on a cross-service query, follow the steps in [
163
140
* Database names are case sensitive.
164
141
* Identifying the Timestamp column in the cluster isn't supported. The Log Analytics Query API won't pass the time filter.
165
142
* Cross-service queries support data retrieval only.
166
-
*[Private Link](../logs/private-link-security.md) (private endpoints) and [IP restrictions](/azure/data-explorer/security-network-restrict-public-access)do not support cross-service queries.
167
-
*`mv-expand` is limited to 2000 records.
168
-
* Azure Monitor Logs does not support the `external_table()` function, which lets you query external tables in Azure Data Explorer. To query an external table, define `external_table(<external-table-name>)` as a parameterless function in Azure Data Explorer. You can then call the function using the expression `adx("").<function-name>`.
143
+
* [Private Link](../logs/private-link-security.md) (private endpoints) and [IP restrictions](/azure/data-explorer/security-network-restrict-public-access) don't support cross-service queries.
144
+
* `mv-expand` is limited to 2,000 records.
145
+
* Azure Monitor Logs doesn't support the `external_table()` function, which lets you query external tables in Azure Data Explorer. To query an external table, define `external_table(<external-table-name>)` as a parameterless function in Azure Data Explorer. You can then call the function using the expression `adx("").<function-name>`.
### Combine Azure Resource Graph tables with a Log Analytics workspace
158
+
159
+
Use the `union` command to combine cluster tables with a Log Analytics workspace.
160
+
161
+
For example:
162
+
163
+
```kusto
164
+
union AzureActivity, arg("").Resources
165
+
| take 10
166
+
```
167
+
```kusto
168
+
let CL1 = arg("").Resources ;
169
+
union AzureActivity, CL1 | take 10
170
+
```
171
+
172
+
When you use the [`join` operator](/azure/data-explorer/kusto/query/joinoperator) instead of union, you need to use a [`hint`](/azure/data-explorer/kusto/query/joinoperator#join-hints) to combine the data in Azure Resource Graph with data in the Log Analytics workspace. Use `Hint.remote={Direction of the Log Analytics Workspace}`. For example:
173
+
174
+
```kusto
175
+
Perf | where ObjectName == "Memory" and (CounterName == "Available MBytes Memory")
0 commit comments