1

I am trying to write a query to fetch some of the data from the Azure Application Insight, and what I want to do is there's one field inside that log which I want to extend it as a separate column, but while trying to run the query with that exported column in giving syntax error.

Column Name: Request Duration (milliseconds)

Query:

customEvents
| extend Request_Duration_(milliseconds)_ = tostring(parse_json(tostring(customDimensions.Properties)).["Request Duration (milliseconds)"])
Dishant
  • 1,545
  • 12
  • 29

1 Answers1

0

There are some errors in your query, please try the code below:

customEvents 
| where name == "e2" 
| extend Request_Duration_milliseconds = parse_json(tostring(customDimensions.Properties)).["Request Duration (milliseconds)"]
| project customDimensions, Request_Duration_milliseconds

Test result:

enter image description here

Ivan Glasenberg
  • 29,865
  • 2
  • 44
  • 60