Skip to content

Commit b7c13d4

Browse files
committed
Log search regex
1 parent c5081ff commit b7c13d4

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

articles/log-analytics/log-analytics-search-reference.md

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
title: Log Analytics search reference | Microsoft Docs
33
description: The Log Analytics search reference describes the search language and provides the general query syntax options you can use when searching for data and filtering expressions to help narrow your search.
44
services: log-analytics
@@ -13,7 +13,7 @@ ms.workload: na
1313
ms.tgt_pltfrm: na
1414
ms.devlang: na
1515
ms.topic: article
16-
ms.date: 10/25/2016
16+
ms.date: 12/07/2016
1717
ms.author: banders
1818

1919
---
@@ -250,6 +250,29 @@ TimeGenerated:[NOW..NOW+1DAY]
250250
SampleValue:[0..2]
251251
```
252252

253+
### Regular Expressions
254+
You can specify a search condition for a field with a regular expression by using the Regex keyword.
255+
256+
**Syntax**
257+
258+
```
259+
field:Regex("Regular Expression")
260+
```
261+
262+
```
263+
field=Regex("Regular Expression")
264+
```
265+
266+
**Example**
267+
268+
```
269+
Computer=Regex("C.*")
270+
```
271+
272+
```
273+
Computer=Regex("^C.*")
274+
```
275+
253276
### Logical operators
254277
The query languages support the logical operators (*AND*, *OR*, and *NOT*) and their C-style aliases (*&&*, *||*, and *!*) respectively. You can use parentheses to group these operators.
255278

0 commit comments

Comments
 (0)