perennial_
perennial_

Reputation: 1846

Get unix timestamp Azure App Insights

How would I project the unix timestamp for when my data was logged in Azure through Azure App Insights? I know I can use now() to get the current timestamp, but what about the timestamp of a row?

Upvotes: 5

Views: 2168

Answers (1)

Assaf Neufeld
Assaf Neufeld

Reputation: 743

Every table in AppInsights has a "timestamp" column, which marks when the event occurred.

In order to convert to Unix timestamp, try this:

requests
| take 1
| project unixtime = tolong(timestamp - datetime(1970-01-01)) / 10000000

Upvotes: 8

Related Questions