CloudWatch not receiving a group of logs

0

Normally my CloudWatch client works without problem: The desired message was posted can can be viewed in CloudWatch console.

However in a case, the clients was triggered to post 50 messages in 4 seconds. And in the console, none of the messages were received. The client, in this case, still get responses which contain NextSequenceToken. So I assume the messages were all sent, and received without problem. However, it's not.

In this case, how can I know what happened?

Mark
質問済み 8ヶ月前238ビュー
1回答
0

Considering CloudWatch is a push based service, meaning that it just receives data and visualises it, absence of data to display indicates a possible issue with the service where data is published from (eg. CW Agent or an AWS Service). To confirm if the service published the data to CloudWatch, resources such as CloudTrail can be analysed to track API calls associated with your log setup.

Although, please note that the ‘NextSequenceToken’ field has been deprecated. The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions are always accepted even if the sequence token is not valid. You can use parallel PutLogEvents actions on the same log stream and you do not need to wait for the response of a previous PutLogEvents action to obtain the nextSequenceToken value.

Reference : https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html

Which indicates that it would not entirely mean the previous logs were received. Although, for every API call made via SDK or CLI etc. if the --debug option is enabled, a request ID would be generated along with the timestamp, that can help in investigating the root cause of it. Hence I would recommend reaching out to us via support case incase you would like to troubleshoot the issue further.

If CloudWatch agent is the source for pushing the logs, please refer to the following documentation which may be of additional help :

https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/troubleshooting-CloudWatch-Agent.html

AWS
回答済み 8ヶ月前

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

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

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

関連するコンテンツ