SOLVED

Escape/Ignore funcitons in Log Analytics

Copper Contributor

Hi,

 

I'm trying to write a query that outputs a column named "time" (Notice the lower case 't').
When doing so, for instance with the "extend" function, it presents me with a syntax error message due to "time" being a function in Log Analytics already. That means I'm forced to name the column "Time" (with an upper case 'T') which does not work with case sensitive software like Grafana, which does not recognize a time column without the column being named time with a lower case 't'.

 

Example:

2019-01-03 11_05_13-Clipboard.png

 

Any suggestions would be appreciated.

2 Replies
best response confirmed by Ali Kristoffer Njie (Copper Contributor)
Solution
Hi,

"time" is a reserved word in our query language so it shall be expressed differently:
| extend ['time'] = TimeGenerated

Thanks,
Meir

Perfect! Just what I was looking for. Just tested and I now see the expected results.

 

Thanks a lot :)

1 best response

Accepted Solutions
best response confirmed by Ali Kristoffer Njie (Copper Contributor)
Solution
Hi,

"time" is a reserved word in our query language so it shall be expressed differently:
| extend ['time'] = TimeGenerated

Thanks,
Meir

View solution in original post