i want to build a Logging Dashboard to monitor a application in AWS EC2. So i configure the cloudwatch stuff and everything looks like a charm. But when i go to the cloudwatch logs insights and create a query for the logs, I'm getting 'no data found' for every querry/time range im using. I can see there are some logs in the stream when i click on it (in the logs panel) but it cannot discover from insights.
What I'm doing wrong?
Maybe someone could help me, thanks a lot
CodePudding user response:
Try changing the query to:
fields @logStream, @message | limit 20
And expand the time frame to, say, 4 weeks, making sure there are log streams within that time frame that contain log events.
For example: