Skip to content

Commit 7c58c5f

Browse files
committed
Update basic-logs-query.md
1 parent aad8a7a commit 7c58c5f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ You can run two concurrent queries per user.
4545
You cannot [purge personal data](personal-data-mgmt.md#how-to-export-and-delete-private-data) from Basic Logs tables.
4646

4747

48-
## Run a query from the Azure portal
48+
## Run a query on a Basic Logs table
4949
Creating a query using Basic Logs is the same as any other query in Log Analytics. See [Get started with Azure Monitor Log Analytics](./log-analytics-tutorial.md) if you aren't familiar with this process.
5050

51+
# [Portal](#tab/portal-1)
52+
5153
Open Log Analytics in the Azure portal and open the **Tables** tab. When browsing the list of tables, Basic Logs tables are identified with a unique icon:
5254

5355
![Screenshot of the Basic Logs table icon in the table list.](./media/basic-logs-configure/table-icon.png)
@@ -61,13 +63,15 @@ When you add a table to the query, Log Analytics will identify a Basic Logs tabl
6163

6264
![Screenshot of Query on Basic Logs limitations.](./media/basic-logs-query/query-validator.png)
6365

64-
## Run a query from REST API
66+
# [API](#tab/api-1)
67+
6568
Use **/search** from the [Log Analytics API](api/overview.md) to run a query with Basic Logs using a REST API. This is similar to the [/query](api/request-format.md) API with the following differences:
6669

6770
- The query is subject to the language limitations described above.
6871
- The time span must be specified in the header of the request and not in the query statement.
6972

70-
### Sample Request
73+
**Sample Request**
74+
7175
```http
7276
https://api.loganalytics.io/v1/workspaces/testWS/search?timespan=P1D
7377
```
@@ -80,6 +84,7 @@ https://api.loganalytics.io/v1/workspaces/testWS/search?timespan=P1D
8084
}
8185
```
8286

87+
---
8388
## Pricing model
8489
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.
8590

0 commit comments

Comments
 (0)