Skip to content

Commit 16618cf

Browse files
authored
Merge pull request #212910 from bwren/transform-functions
New transformation functions
2 parents bc95abb + 3cf5a94 commit 16618cf

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

articles/azure-monitor/essentials/data-collection-transformations-structure.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ The following [Bitwise operators](/azure/data-explorer/kusto/query/binoperators)
291291
- [isempty](/azure/data-explorer/kusto/query/isemptyfunction)
292292
- [isnotempty](/azure/data-explorer/kusto/query/isnotemptyfunction)
293293
- [parse_json](/azure/data-explorer/kusto/query/parsejsonfunction)
294+
- [replace](https://github.com/microsoft/Kusto-Query-Language/blob/master/doc/replacefunction.md)
294295
- [split](/azure/data-explorer/kusto/query/splitfunction)
295296
- [strcat](/azure/data-explorer/kusto/query/strcatfunction)
296297
- [strcat_delim](/azure/data-explorer/kusto/query/strcat-delimfunction)
@@ -306,10 +307,24 @@ The following [Bitwise operators](/azure/data-explorer/kusto/query/binoperators)
306307
- [isnotnull](/azure/data-explorer/kusto/query/isnotnullfunction)
307308
- [isnull](/azure/data-explorer/kusto/query/isnullfunction)
308309

309-
### Identifier quoting
310-
Use [Identifier quoting](/azure/data-explorer/kusto/query/schema-entities/entity-names?q=identifier#identifier-quoting) as required.
310+
#### Special functions
311+
312+
##### parse_cef_dictionary
313+
314+
Given a string containing a CEF message, `parse_cef_dictionary` parses the Extension property of the message into a dynamic key/value object. Semicolon is a reserved character that should be replaced prior to passing the raw message into the method, as shown in the example below.
315+
316+
```kusto
317+
| extend cefMessage=iff(cefMessage contains_cs ";", replace(";", " ", cefMessage), cefMessage)
318+
| extend parsedCefDictionaryMessage =parse_cef_dictionary(cefMessage)
319+
| extend parsecefDictionaryExtension = parsedCefDictionaryMessage["Extension"]
320+
| project TimeGenerated, cefMessage, parsecefDictionaryExtension
321+
```
322+
323+
:::image type="content" source="media/data-collection-transformations-structure/parse_cef_dictionary.png" alt-text="Sample output of parse_cef_dictionary function." lightbox="media/data-collection-transformations-structure/parse_cef_dictionary.png":::
311324

312325

326+
### Identifier quoting
327+
Use [Identifier quoting](/azure/data-explorer/kusto/query/schema-entities/entity-names?q=identifier#identifier-quoting) as required.
313328

314329

315330
## Next steps
20 KB
Loading

0 commit comments

Comments
 (0)