Skip to content

Commit 893b9e4

Browse files
committed
Merge branch 'master' of https://github.com/Microsoft/azure-docs-pr into clusterupgrade
2 parents 6e9671e + 3f07785 commit 893b9e4

File tree

14 files changed

+877
-765
lines changed

14 files changed

+877
-765
lines changed

articles/application-insights/app-insights-performance-counters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Or you can do the same thing with custom metrics you created:
9292
## Performance counters in Analytics
9393
You can search and display performance counter reports in [Analytics](app-insights-analytics.md).
9494

95-
The **performanceCounters** schema exposes the `category`, `counter` name, and `instance` name of each performance counter. In the telemetry for each application, youll see only the counters for that application. For example, to see what counters are available:
95+
The **performanceCounters** schema exposes the `category`, `counter` name, and `instance` name of each performance counter. In the telemetry for each application, you'll see only the counters for that application. For example, to see what counters are available:
9696

9797
![Performance counters in Application Insights analytics](./media/app-insights-performance-counters/analytics-performance-counters.png)
9898

articles/azure-monitor/insights/vminsights-onboard.md

Lines changed: 732 additions & 732 deletions
Large diffs are not rendered by default.

articles/azure-monitor/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,8 @@
691691
href: ../log-analytics/query-language/advanced-query-writing.md?toc=/azure/azure-monitor/toc.json
692692
- name: Charts and diagrams
693693
href: ../log-analytics/query-language/charts.md?toc=/azure/azure-monitor/toc.json
694+
- name: Functions
695+
href: ../log-analytics/query-language/functions.md?toc=/azure/azure-monitor/toc.json
694696
- name: Cheatsheets
695697
items:
696698
- name: SQL

articles/cognitive-services/Translator/migrate-to-v3.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ ms.author: v-jansko
1414

1515
# Translator Text API V2 to V3 Migration
1616

17-
The Microsoft Translator team has released Version 3 (V3) of the Translator Text API. This release includes new features, deprecated methods and a new format for sending to, and receiving data from the Microsoft Translator Service. This document provides information for changing applications to use V3. V2 will be deprecated on April 30, 2018 and will be discontinued on April 30, 2019.
17+
> [!NOTE]
18+
> V2 was deprecated on April 30, 2018 and will be discontinued on April 30, 2019.
19+
20+
The Microsoft Translator team has released Version 3 (V3) of the Translator Text API. This release includes new features, deprecated methods and a new format for sending to, and receiving data from the Microsoft Translator Service. This document provides information for changing applications to use V3.
1821

1922
The end of this document contains helpful links for you to learn more.
2023

articles/cognitive-services/Translator/reference/v3-0-reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ The error code is a 6-digit number combining the 3-digit HTTP status code follow
131131
| 403000| The operation is not allowed.|
132132
| 403001| The operation is not allowed because the subscription has exceeded its free quota.|
133133
| 405000| The request method is not supported for the requested resource.|
134+
| 408001| The custom translation system requested is not yet available. Please retry in a few minutes.|
134135
| 415000| The Content-Type header is missing or invalid.|
135136
| 429000, 429001, 429002| The server rejected the request because the client is sending too many requests. Reduce the frequency of requests to avoid throttling.|
136137
| 500000| An unexpected error occurred. If the error persists, report it with date/time of error, request identifier from response header X-RequestId, and client identifier from request header X-ClientTraceId.|

articles/cognitive-services/Translator/reference/v3-0-translate.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ Request parameters passed on the query string are:
8080
<td>toScript</td>
8181
<td>*Optional parameter*.<br/>Specifies the script of the translated text.</td>
8282
</tr>
83+
<tr>
84+
<td>AllowFallback</td>
85+
<td>*Optional parameter*.<br/>Specifies that the service is allowed to fallback to a general system when a custom system does not exist. Possible values are: `true` (default) or `false`.<br/><br/>`AllowFallback=false` specifies that the translation should only use systems trained for the `category` specified by the request. If a translation for language X to language Y requires chaining through a pivot language E, then all the systems in the chain (X->E and E->Y) will need to be custom and have the same category. If no system is found with the specific category, the request will return a 400 status code. `AllowFallback=true` specifies that the service is allowed to fallback to a general system when a custom system does not exist.
86+
</td>
87+
</tr>
8388
</table>
8489

8590
Request headers include:
@@ -103,6 +108,11 @@ Request headers include:
103108
<td>X-ClientTraceId</td>
104109
<td>*Optional*.<br/>A client-generated GUID to uniquely identify the request. You can omit this header if you include the trace ID in the query string using a query parameter named `ClientTraceId`.</td>
105110
</tr>
111+
<tr>
112+
<td>X-MT-System</td>
113+
<td>*Optional*.<br/>Specifies the system type that was used for translation for each ‘to’ language requested for translation. The value is a comma-separated list of strings. Each string indicates a type:<br/><ul><li>Custom - Request includes a custom system and at least one custom system was used during translation.</li><li>Team - All other requests</li></ul>
114+
</td>
115+
</tr>
106116
</table>
107117

108118
## Request body
@@ -183,6 +193,10 @@ The following are the possible HTTP status codes that a request returns.
183193
<td>403</td>
184194
<td>The request is not authorized. Check the details error message. This often indicates that all free translations provided with a trial subscription have been used up.</td>
185195
</tr>
196+
<tr>
197+
<td>408</td>
198+
<td>The request could not be fulfilled because a resource is missing. Check the details error message. When using a custom `category`, this often indicates that the custom translation system is not yet available to serve requests. The request should be retried after a waiting period (e.g. 10 minutes).</td>
199+
</tr>
186200
<tr>
187201
<td>429</td>
188202
<td>The caller is sending too many requests.</td>

articles/log-analytics/log-analytics-cross-workspace-search.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.workload: na
1212
ms.tgt_pltfrm: na
1313
ms.devlang: na
1414
ms.topic: conceptual
15-
ms.date: 04/17/2018
15+
ms.date: 11/15/2018
1616
ms.author: magoedte
1717
ms.component:
1818
---
@@ -86,7 +86,7 @@ Identifying an application in Application Insights can be accomplished with the
8686
```
8787
8888
### Performing a query across multiple resources
89-
You can query multiple resorces from any of your resource instances, these can be workspaces and apps combined.
89+
You can query multiple resources from any of your resource instances, these can be workspaces and apps combined.
9090
9191
Example for query across two workspaces:
9292
@@ -97,6 +97,36 @@ union Update, workspace("contosoretail-it").Update, workspace("b459b4u5-912x-46d
9797
| summarize dcount(Computer) by Classification
9898
```
9999
100+
## Using cross-resource query for multiple resources
101+
When using cross-resource queries to correlate data from multiple Log Analytics and Application Insights resources, the query can become complex and difficult to maintain. You should leverage [functions in Log Analytics](query-language/functions.md) to separate the query logic from the scoping of the query resources, which simplifies the query structure. The following example demonstrates how you can monitor multiple Application Insights resources and visualize the count of failed requests by application name.
102+
103+
Create a query like the following that references the scope of Application Insights resources. The `withsource= SourceApp` command adds a column that designates the application name that sent the log. [Save the query as function](query-language/functions.md#create-a-function) with the alias _applicationsScoping_.
104+
105+
```Kusto
106+
// crossResource function that scopes my Application Insights resources
107+
union withsource= SourceApp
108+
app('Contoso-app1').requests,
109+
app('Contoso-app2').requests,
110+
app('Contoso-app3').requests,
111+
app('Contoso-app4').requests,
112+
app('Contoso-app5').requests
113+
```
114+
115+
116+
117+
You can now [use this function](query-language/functions.md#use-a-function) in a cross-resource query like the following. The function alias _applicationsScoping_ returns the union of the requests table from all the defined applications. The query then filters for failed requests and visualizes the trends by application. The _parse_ operator is optional in this example. It extracts the application name from _SourceApp_ property.
118+
119+
```Kusto
120+
applicationsScoping
121+
| where timestamp > ago(12h)
122+
| where success == 'False'
123+
| parse SourceApp with * '(' applicationName ')' *
124+
| summarize count() by applicationName, bin(timestamp, 1h)
125+
| sort by count_ desc
126+
| render timechart
127+
```
128+
![Timechart](media/log-analytics-cross-workspace-search/chart.png)
129+
100130
## Next steps
101131

102132
Review the [Log Analytics log search reference](https://docs.microsoft.com/azure/log-analytics/query-language/kusto) to view all of the query syntax options available in Log Analytics.
40.7 KB
Loading

articles/log-analytics/query-language/advanced-query-writing.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.workload: na
1212
ms.tgt_pltfrm: na
1313
ms.devlang: na
1414
ms.topic: conceptual
15-
ms.date: 08/16/2018
15+
ms.date: 11/15/2018
1616
ms.author: bwren
1717
ms.component: na
1818
---
@@ -73,28 +73,6 @@ Event
7373
| project TimeGenerated, USTimeGenerated, Source, Computer, EventLevel, EventData
7474
```
7575

76-
## Functions
77-
You can save a query with a function alias so it can be referenced by other queries. For example, the following standard query returns all missing security updates reported in the last day:
78-
79-
```Kusto
80-
Update
81-
| where TimeGenerated > ago(1d)
82-
| where Classification == "Security Updates"
83-
| where UpdateState == "Needed"
84-
```
85-
86-
You can save this query as a function and give it an alias such as _security_updates_last_day_. Then you can use it in another query to search for SQL-related needed security updates:
87-
88-
```Kusto
89-
security_updates_last_day | where Title contains "SQL"
90-
```
91-
92-
To save a query as a function, select the **Save** button in the portal and change **Save as** to _Function_. The function alias can contain letters, digits, or underscores but must start with a letter or an underscore.
93-
94-
> [!NOTE]
95-
> Saving a function is possible in Log Analytics queries, but currently not for Application Insights queries.
96-
97-
9876
## Print
9977
`print` will return a table with a single column and a single row, showing the result of a calculation. This is often used in cases where you need a simple calcuation. For example, to find the current time in PST and add a column with EST:
10078

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
title: Functions Azure Log Analytics | Microsoft Docs
3+
description: This article describes how to use functions to call a query from another query in Log Analytics.
4+
services: log-analytics
5+
documentationcenter: ''
6+
author: bwren
7+
manager: carmonm
8+
editor: ''
9+
ms.assetid:
10+
ms.service: log-analytics
11+
ms.workload: na
12+
ms.tgt_pltfrm: na
13+
ms.devlang: na
14+
ms.topic: conceptual
15+
ms.date: 11/15/2018
16+
ms.author: bwren
17+
ms.component: na
18+
---
19+
20+
21+
# Using functions in Azure Monitor Log Analytics
22+
23+
> [!NOTE]
24+
> You should complete [Get started with the Analytics portal](get-started-analytics-portal.md) and [Getting started with queries](get-started-queries.md) before completing this lesson.
25+
26+
[!INCLUDE [log-analytics-demo-environment](../../../includes/log-analytics-demo-environment.md)]
27+
28+
29+
To use a Log Analytics query with another query you can save it as a function. This allows you to simplify complex queries by breaking them into parts and allows you to reuse common code with multiple queries.
30+
31+
## Create a function
32+
33+
Create a function in the Azure portal by clicking **Save** and then providing the information in the following table.
34+
35+
| Setting | Description |
36+
|:---|:---|
37+
| Name | Display name for the query in **Query explorer**. |
38+
| Save as | Function |
39+
| Function Alias | Short name to use the function in other queries. May not contain spaces and must be unique. |
40+
| Category | A category to organize saved queries and functions in **Query explorer**. |
41+
42+
> [!NOTE]
43+
> A function in Log Analytics cannot contain another function.
44+
45+
> [!NOTE]
46+
> Saving a function is possible in Log Analytics queries, but currently not for Application Insights queries.
47+
48+
49+
50+
## Use a function
51+
Use a function by including its alias in another query. It can be used like any other table.
52+
53+
## Example
54+
The following sample query returns all missing security updates reported in the last day. Save this query as a function with the alias _security_updates_last_day_.
55+
56+
```Kusto
57+
Update
58+
| where TimeGenerated > ago(1d)
59+
| where Classification == "Security Updates"
60+
| where UpdateState == "Needed"
61+
```
62+
63+
Create another to search for SQL-related needed security updates.
64+
65+
```Kusto
66+
security_updates_last_day | where Title contains "SQL"
67+
```
68+
69+
## Next steps
70+
See other lessons for using the Log Analytics query language:
71+
72+
- [String operations](string-operations.md)
73+
- [Date and time operations](datetime-operations.md)
74+
- [Aggregation functions](aggregations.md)
75+
- [Advanced aggregations](advanced-aggregations.md)
76+
- [JSON and data structures](json-data-structures.md)
77+
- [Joins](joins.md)
78+
- [Charts](charts.md)

0 commit comments

Comments
 (0)