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/search-jobs.md
+15-23Lines changed: 15 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,30 +146,20 @@ Status code: 202 accepted.
146
146
147
147
To run a search job, run the [az monitor log-analytics workspace table search-job create](/cli/azure/monitor/log-analytics/workspace/table/search-job#az-monitor-log-analytics-workspace-table-search-job-create) command. The name of the results table, which you set using the `--name` parameter, must end with *_SRCH*.
148
148
149
-
For example:
149
+
**Example**
150
150
151
151
```azurecli
152
152
az monitor log-analytics workspace table search-job create --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace --name HeartbeatByIp_SRCH --search-query 'Heartbeat | where ComputerIP has "00.000.00.000"' --limit 1500 --start-search-time "2022-01-01T00:00:00.000Z" --end-search-time "2022-01-08T00:00:00.000Z" --no-wait
153
153
```
154
154
155
155
### [PowerShell](#tab/powershell-1)
156
156
157
+
To run a search job, run the [New-AzOperationalInsightsSearchTable](/powershell/module/az.operationalinsights/new-azoperationalinsightssearchtable?view=azps-12.0.0) command. The name of the results table, which you set using the `TableName` parameter, must end with *_SRCH*.
@@ -252,23 +242,25 @@ GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000
252
242
253
243
To check the status and details of a search job table, run the [az monitor log-analytics workspace table show](/cli/azure/monitor/log-analytics/workspace/table#az-monitor-log-analytics-workspace-table-show) command.
254
244
255
-
For example:
245
+
**Example**
256
246
257
247
```azurecli
258
248
az monitor log-analytics workspace table show --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace --name HeartbeatByIp_SRCH --output table \
259
249
```
260
250
261
251
### [PowerShell](#tab/powershell-2)
262
252
253
+
To check the status and details of a search job table, run the [Get-AzOperationalInsightsTable](/powershell/module/az.operationalinsights/get-azoperationalinsightstable?view=azps-12.0.0) command.
0 commit comments