I looked through the documentation of CloudWatch Logs, but I could not find any method to manually remove partial data from a log stream
.
The only way to remove data is to:
log stream
, but that will remove all data (not just the
data we want to remove) Does anyone have experience with removing specific log records?
The comment of user ronald8192
is indeed the reality:
Unfortunately, as of today, you cannot delete a single log event from CloudWatch log stream, the alternative will be using Lambda functions: set a Lambda function trigger, filter all logs, then write the remaining logs to a new log group/stream, then delete the original log stream.