Before moving our existing environments to Grail, I’d like to know if it supports timestamps in milliseconds. Today’s Log Management only goes as far as seconds. Will Grail provide “millisecond” timestamp support?
Both Log Monitoring Classic and Logs on Grail supports have ms resolution of timestamps. Though, in both cases, the ms are not displayed in UI.
It’s possible to display the milliseconds in Notebooks by reformatting the timestamp.
See - formatTimestamp function
Example:
fetch logs
| fieldsAdd timestamp = formatTimestamp(timestamp, format:"yyyy-MM-dd HH:mm:ss.SSS")
| limit 10
Kind regards, Philipp
Thanks. We dont have Grail yet, but the example above is confirming my hopes. Notebooks only work with Grail correct? I just tried to use a notebook (selecting the new ui) and this did not work with old log management. No results are ever returned.
Correct, Notebooks only queries data from Grail.
See @HansLougas’s response regarding one way to get started
Solved: Re: Moving to Grail: pulling out all Log Management data - Dynatrace Community
Hi Philip,
Any way to add nanoseconds to the timestamp as well and use that for ordering?
