cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dashboard Grails query vs Notebook Grails query - different results

garryclarke
Observer

I have been developing the following query in a Notebook which seems to provide me accurate results

fetch logs, from: bin(now()-6d, 1d) + 23h + 0m, to: now()
| filter matchesValue(aws.log_group, "Prod-mop-service-order-int") and matchesPhrase(content, "HTTP_INBOUND") and matchesPhrase(content, "/api/mopServiceOrder") and matchesPhrase(content, "ABC LTD")
| fieldsAdd Date= formatTimestamp(timestamp,format:"dd/MM/YYYY")
| summarize Count = count(), by:{Date}
| sort Date desc

this provides the following correct output

garryclarke_0-1692205308186.png

However when I drop the same query onto a Dashboard as a Grails query I get the following result set which is incorrect

garryclarke_1-1692205384535.png

The problem seems to be that formatTimestamp(timestamp,format:"dd/MM/YYYY") seems to be working correctly in Notebook but not on a Dashboard. The issue seems to be with events with a timestamp up to 1hr after the midnight boundary getting allocated to the previous day.

Notebook

garryclarke_2-1692207130470.png


Dashboard

garryclarke_3-1692207327206.png

This would seem to attribute to difference between 806 and 840

Any ideas how this would be functioning differently on a dashboard?



 

1 REPLY 1

robaxelsen
Dynatrace Helper
Dynatrace Helper

Hi @garryclarke, and thanks for your post. It looks like it's not something you can tweak on the dashboard itself, but rather a bug. It's reported and our engineers will look into it.

Featured Posts