Skip to content

Commit 9c72cfa

Browse files
committed
Updates based on feedback from Adi and Ilana
1 parent dce26d3 commit 9c72cfa

File tree

6 files changed

+18
-28
lines changed

6 files changed

+18
-28
lines changed

articles/azure-monitor/logs/azure-cli-log-analytics-workspace-sample.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ You can delete [Custom Log](custom-logs-overview.md), [Search Results](search-jo
6060
To delete a table, run the [az monitor log-analytics workspace table delete](/cli/azure/monitor/log-analytics/workspace/table#az-monitor-log-analytics-workspace-data-export-delete) command:
6161

6262
```azurecli
63-
az monitor log-analytics workspace table delete –subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace \
64-
--name MySearchTable_SRCH
63+
az monitor log-analytics workspace table delete –subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace --name MySearchTable_SRCH
6564
```
6665

6766
## Export data from selected tables

articles/azure-monitor/logs/basic-logs-configure.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,13 @@ For example:
103103
- To set Basic Logs:
104104

105105
```azurecli
106-
az monitor log-analytics workspace table update --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace \
107-
--name ContainerLog --plan Basic
106+
az monitor log-analytics workspace table update --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace --name ContainerLog --plan Basic
108107
```
109108
110109
- To set Analytics Logs:
111110
112111
```azurecli
113-
az monitor log-analytics workspace table update --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace \
114-
--name ContainerLog --plan Analytics
112+
az monitor log-analytics workspace table update --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace --name ContainerLog --plan Analytics
115113
```
116114
117115
---
@@ -183,8 +181,7 @@ To check the configuration of a table, run the [az monitor log-analytics workspa
183181
For example:
184182

185183
```azurecli
186-
az monitor log-analytics workspace table show --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace \
187-
--name Syslog --output table \
184+
az monitor log-analytics workspace table show --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace --name Syslog --output table
188185
```
189186

190187
---

articles/azure-monitor/logs/basic-logs-query.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ ms.date: 01/27/2022
77
---
88

99
# Query Basic Logs in Azure Monitor (Preview)
10-
Basic Logs reduce the cost of high-volume verbose logs you don’t need for analytics and alerts. Basic Logs have reduced charges for ingestion and limitations on log queries and other Azure Monitor features. This article describes how to query data from tables configured for Basic Logs in the Azure portal and using the Log Analytics REST API.
10+
Basic Logs tables reduce the cost of ingesting high-volume verbose logs and let you query the data they store using a limited set of log queries. This article explains how to query data from Basic Logs tables.
11+
12+
For more information, see [Azure log data plans](log-analytics-workspace-overview.md#log-data-plans-preview) and [Configure a table for Basic Logs.](basic-logs-configure.md).
13+
1114

1215
> [!NOTE]
1316
> Other tools that use the Azure API for querying - for example, Grafana and Power BI - cannot access Basic Logs.
1417
15-
## Limits
18+
## Limitations
1619
Queries with Basic Logs are subject to the following limitations:
1720
### KQL language limits
1821
Log queries against Basic Logs are optimized for simple data retrieval using a subset of KQL language, including the following operators:
@@ -77,7 +80,7 @@ https://api.loganalytics.io/v1/workspaces/testWS/search?timespan=P1D
7780
}
7881
```
7982

80-
## Costs
83+
## Pricing model
8184
The charge for a query on Basic Logs is based on the amount of data the query scans, not just the amount of data the query returns. For example, a query that scans three days of data in a table that ingests 100 GB each day, would be charged for 300 GB. Calculation is based on chunks of up to one day of data.
8285

8386
For more information, see [Azure Monitor pricing](https://azure.microsoft.com/pricing/details/monitor/).

articles/azure-monitor/logs/data-retention-archive.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,15 @@ To set the retention and archive duration for a table, run the [az monitor log-a
118118
This example sets table's interactive retention to 30 days, and the total retention to two years. This means the archive duration is 23 months:
119119

120120
```azurecli
121-
az monitor log-analytics workspace table update --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace \
122-
--name AzureMetrics --retention-time 30 --total-retention-time 730
121+
az monitor log-analytics workspace table update --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace --name AzureMetrics --retention-time 30 --total-retention-time 730
123122
```
124123

125124
To reapply the workspace's default interactive retention value to the table and reset its total retention to 0, run the [az monitor log-analytics workspace table update](/cli/azure/monitor/log-analytics/workspace/table#az-monitor-log-analytics-workspace-table-update) command with the `--retention-time` and `--total-retention-time` parameters set to `-1`.
126125

127126
For example:
128127

129128
```azurecli
130-
az monitor log-analytics workspace table update --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace \
131-
--name Syslog --retention-time -1 --total-retention-time -1
129+
az monitor log-analytics workspace table update --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace --name Syslog --retention-time -1 --total-retention-time -1
132130
```
133131

134132
---
@@ -156,8 +154,7 @@ To get the retention policy of a particular table, run the [az monitor log-analy
156154
For example:
157155

158156
```azurecli
159-
az monitor log-analytics workspace table show --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace \
160-
--name SecurityEvent
157+
az monitor log-analytics workspace table show --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace --name SecurityEvent
161158
```
162159

163160
---

articles/azure-monitor/logs/restore.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ To restore data from a table, run the [az monitor log-analytics workspace table
8080
For example:
8181

8282
```azurecli
83-
az monitor log-analytics workspace table restore create --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace \
84-
--name Heartbeat_RST --restore-source-table Heartbeat --start-restore-time "2022-01-01T00:00:00.000Z" --end-restore-time "2022-01-08T00:00:00.000Z" --no-wait
83+
az monitor log-analytics workspace table restore create --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace --name Heartbeat_RST --restore-source-table Heartbeat --start-restore-time "2022-01-01T00:00:00.000Z" --end-restore-time "2022-01-08T00:00:00.000Z" --no-wait
8584
```
8685

8786
---
@@ -107,8 +106,7 @@ To delete a restore table, run the [az monitor log-analytics workspace table del
107106
For example:
108107

109108
```azurecli
110-
az monitor log-analytics workspace table delete --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace \
111-
--name Heartbeat_RST
109+
az monitor log-analytics workspace table delete --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace --name Heartbeat_RST
112110
```
113111

114112
---

articles/azure-monitor/logs/search-jobs.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ To run a search job, run the [az monitor log-analytics workspace table search-jo
9696
For example:
9797

9898
```azurecli
99-
az monitor log-analytics workspace table search-job create --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace \
100-
--name HeartbeatByIp_SRCH --search-query 'Heartbeat | where ComputerIP has "00.000.00.000"' --limit 1500 \
101-
--start-search-time "2022-01-01T00:00:00.000Z" --end-search-time "2022-01-08T00:00:00.000Z" --no-wait
99+
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
102100
```
103101

104102
---
@@ -175,8 +173,7 @@ To check the status and details of a search job table, run the [az monitor log-a
175173
For example:
176174

177175
```azurecli
178-
az monitor log-analytics workspace table show --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace \
179-
--name HeartbeatByIp_SRCH --output table \
176+
az monitor log-analytics workspace table show --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace --name HeartbeatByIp_SRCH --output table \
180177
```
181178

182179
---
@@ -199,8 +196,7 @@ To delete a search table, run the [az monitor log-analytics workspace table dele
199196
For example:
200197

201198
```azurecli
202-
az monitor log-analytics workspace table delete --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace \
203-
--name HeartbeatByIp_SRCH
199+
az monitor log-analytics workspace table delete --subscription ContosoSID --resource-group ContosoRG --workspace-name ContosoWorkspace --name HeartbeatByIp_SRCH
204200
```
205201

206202
---

0 commit comments

Comments
 (0)