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
asked 7 months ago222 views
1 Answer
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
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions