27 Feb 2025
01:23 PM
- last edited on
27 Feb 2025
01:46 PM
by
MaciejNeumann
Hi All
I have this DQL which produces the desired output:
fetch bizevents
| filter event.type == "cost.list.spend"
| lookup [fetch dt.entity.host | fieldsAdd entity.name,osArchitecture,osType],sourceField:dt.entity.host,lookupField:id,prefix:"host."
| fieldsAdd event.start_timestamp = timestampFromUnixNanos(event.start)
However I am unable to convert event.start into a timstamp using timestampFromUnixNanos
As per the documentation here: Business Analytics — Dynatrace Docs
Solved! Go to Solution.
27 Feb 2025 10:44 PM
It's a string (green)
| fieldsAdd timestampFromUnixMillis(toLong(event.start))
28 Feb 2025 04:59 AM
Thanks Mark
You are correct in both instances - it needs to be converted from a string and i need to use timestampFromUnixMillis instead
Appreciate your time
Regards
Alan