Skip to content

Disable INIT_START CloudWatch Message on Lambda Execution Environment Startup

0

I see that the INIT_START message was added back in January:

https://aws.amazon.com/blogs/compute/introducing-aws-lambda-runtime-management-controls/

I am wondering if there is a way to disable these INIT_START messages from being appended to CloudWatch logs that report the execution environment's ARN version. They look like this:

INIT_START Runtime Version: provided:alami.v14 Runtime Version ARN: arn:aws:lambda:us-west-2::runtime:etc

Thanks very much!

2 Answers
0

No. There is no way to configure which messages gets logged. You can remove CloudWatch from the Lambda's execution role, but that will disable all logs.

Why would you want to disable that log line?

AWS
EXPERT
answered 3 years ago
  • Are you using Provisioned Concurrency? (this will usually be the reason for having empty log streams). If so, why?

    As to finding the log streams with content, just use the "Search log group" button (and limit the time frame to search) to find the appropriate messages.

0

I definitely don't want to disable CloudWatch.

The reason I want to disable that line is for the following reason:

When I go to the log stream page, say I want to review some various requests that happened yesterday 4/12.

So, I open all the 4/12 log streams.

Many of them will be empty logs that contain only that INIT_START line. Thus it takes up my time when trying to find only actual requests from the outside world.

answered 3 years 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.