Cloudwatch Dashboard - Best practice for use and cost

0

Good afternoon. I have a server the sends logs to a log-stream and I wish to have 3 graphs with a count of WARNING, ERROR and CRITICAL. I did a multi-dimension query, separated and things worked perfect, the issue is after 3 hours it dropped off (then I noticed the query past 3 hour message) so I can't do that.

So looking around I see the widget option to use Logs as a source. From there I can pick that stream, but the query process looks a bit much, I want to say here is the source, find that string and count those. Before I take on that task of learning, will I be hit with the same limit?

I want to have an ongoing line graph showing the counts, a cloudwatch alert if a threshold is met, I know they charge for custom metrics AND I can really use this type of logic for others if I can use the logs, query on the fly and keep that count going.

Thanks all.

質問済み 10ヶ月前328ビュー
3回答
0
承認された回答

When you build a dashboard, only widgets powered by Metrics Insights queries are limited to the latest 3 hours currently. All other widget sources will allow you to query longer time spans.

profile pictureAWS
Jsc
回答済み 10ヶ月前
0

Have you considered creating a graph based on a log insights query using the stat? I dont think you will hit the limit.

https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_Insights-Visualizing-Log-Data.html

profile picture
エキスパート
回答済み 10ヶ月前
0

Ah ok ... So that explains why I was getting that 3 hour drop off. So I am going to play a bit more as I continue this, appreciate the replies as this is a big help.

回答済み 10ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ