Skip to content

Commit 4c57426

Browse files
committed
remove section from old artricle
1 parent 79dea04 commit 4c57426

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

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

0 commit comments

Comments
 (0)