What did you expect to happen?
Data to be displayed. Running this same query directly in cloudwatch against the same log group and time window produces results
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
There were no errors in either the query inspector or in the grafana server log - set to log level debug
This issues doesn’t appear to be fixed. My scenario:
Using 8.0.3 image
Deployed in Fargate stack
CloudWatch metrics work fine
CloudWatch logs however, never complete (spins forever).
There doesn’t appear to be anything that would diagnose issues in the logs.
I have all the required permissions in my IAM role. Even tried specifying “cloudwatch.*” and that didn’t make a difference.
I tried going into go into developers tools (firefox) while the query is running (I’m trying to explore the logs) and it looks like it’s throwing a 400 error. See screen shot(my Grafana domain name has been redacted).
Switch to CloudWatch Logs. The query spins forever and never returns.
To verify this is not a permissions issue, I used the same Access Key Id and Secret Key Id specified in the Grafana datasource configuration. The query is “fields @timestamp, @message | limit 20” The aws-cli query completes successfully leading me to believe it is NOT a permissions issue.
We are having the same issue. It was working until last night and suddenly queries of CloudWatch Logs never return and spins forever. CloudWatch Metrics are ok…
I can confirm this is still and issue with all 8.x versions. I am not sure if this being worked on or not but it’s probably holding quite a few people back from using 8.x. Please bring back the CloudWatch functionality as it was in 7.x.
Just updated to v8.1.2 enterprise (free edition) and experience the same issue. Query inspector shows an error of: “Cannot read property ‘meta’ of undefined”.
Chrome dev tools shows:
annotations_srv.ts:88 AnnotationSrv.query error TypeError: Cannot read property ‘to’ of undefined
at Module.j (app.f2e9788d35f3ceef8811.js:6158)
at y (app.f2e9788d35f3ceef8811.js:5021)
at app.f2e9788d35f3ceef8811.js:5021
at async Promise.all (/d/zUspjyEZz/index 0)
(anonymous) @ annotations_srv.ts:88
along with:
runRequest.ts:149 runRequest.catchError TypeError: Cannot read property ‘meta’ of undefined
at t.project (/public/build/cloudwatchPlugin.f2e9788d35f3ceef8811.js:1)
at t._tryNext (vendors~app.f2e9788d35f3ceef8811.js:2)
at t._next (vendors~app.f2e9788d35f3ceef8811.js:2)
at t.next (vendors~app.f2e9788d35f3ceef8811.js:2)
at t._next (vendors~app.f2e9788d35f3ceef8811.js:2)
at t.next (vendors~app.f2e9788d35f3ceef8811.js:2)
at t._next (vendors~app.f2e9788d35f3ceef8811.js:2)
at t.next (vendors~app.f2e9788d35f3ceef8811.js:2)
at t._next (vendors~app.f2e9788d35f3ceef8811.js:2)
at t.next (vendors~app.f2e9788d35f3ceef8811.js:2)
I’m getting “Query error:Log group is required” when switching to cloud watch logs in grafana 8.x version.
Any fix in grafana 8 versions for viewing cloudwatch logs ?