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/search/search-monitor-logs.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,9 +35,9 @@ If you are using Log Analytics or Azure Storage, you can create resources in adv
35
35
36
36
+[Create a storage account](https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account) if you require a log archive.
37
37
38
-
## Create a diagnostic setting
38
+
## Create a log
39
39
40
-
Each setting specifies how and what is collected. Besides storage, you can choose whether to collect operational logs, metrics, or both.
40
+
Diagnostic settings define data collection. A setting specifies how and what is collected.
41
41
42
42
1. Under **Monitoring**, select **Diagnostic settings**.
43
43
@@ -76,9 +76,11 @@ Data structures that contain Azure Cognitive Search log data conform to the sche
76
76
77
77
For Blob storage, each blob has one root object called **records** containing an array of log objects. Each blob contains records for all the operations that took place during the same hour.
78
78
79
+
The following table is a partial list of fields common to diagnostic logging.
80
+
79
81
| Name | Type | Example | Notes |
80
82
| --- | --- | --- | --- |
81
-
|time|datetime |"2018-12-07T00:00:43.6872559Z" |Timestamp of the operation |
83
+
|timeGenerated|datetime |"2018-12-07T00:00:43.6872559Z" |Timestamp of the operation |
@@ -113,7 +117,7 @@ Metrics are captured for query requests and measured in one minute intervals. Ev
113
117
| count |int |4 |The number of metrics emitted from a node to the log within the one minute interval. |
114
118
| timegrain |string |"PT1M" |The time grain of the metric in ISO 8601. |
115
119
116
-
It's common for queries to execute in milliseconds, so only queries that measure as seconds will appear in metrics.
120
+
It's common for queries to execute in milliseconds, so only queries that measure as seconds will appear in metric like QPS.
117
121
118
122
For the **Search Queries Per Second** metric, minimum is the lowest value for search queries per second that was registered during that minute. The same applies to the maximum value. Average, is the aggregate across the entire minute. For example, within one minute, you might have a pattern like this: one second of high load that is the maximum for SearchQueriesPerSecond, followed by 58 seconds of average load, and finally one second with only one query, which is the minimum.
Copy file name to clipboardExpand all lines: articles/search/search-monitor-usage.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,14 @@ AzureDiagnostics
100
100
| render timechart
101
101
```
102
102
103
-
In contrast with queries which are not saved on your search service, you can call search service APIs directly to return information about objects on the service. For more information, see [Monitor indexing](search-monitor-indexing.md).
103
+
### Use search APIs
104
+
105
+
Both the Azure Cognitive Search REST API and the .NET SDK provide programmatic access to service metrics, index and indexer information, and document counts.
106
+
107
+
+[GET Service Statistics](/rest/api/searchservice/get-service-statistics)
108
+
+[GET Index Statistics](/rest/api/searchservice/get-index-statistics)
0 commit comments