sana lambda-log-format-distribution
is used to get the Lambda function distribution by log format (Text or JSON)
sh
$ sana lambda-log-format-distribution
> Lambda Distribution by Log Format
> JSON: 329 functions.
> Text: 455 functions.
> --------------------------------------------
> Done!Configuration Purpose
LoggingConfig.LogFormat property indicates the format in which Lambda sends your function's application and system logs to CloudWatch.
Command Use-cases
- Useful for measuring progress of logging format change rollout / migrations.
- Useful for quantifying the amount of functions that uses Text vs JSON log format.
Analyze Logging KPIs
Use the lambda-logging-kpis to run all logging-related commands.
Tips
- Structured logging (like JSON format) can make it easier and more cost-effective to query and analyze logs.
- Lambda currently supports the option to output JSON structured application logs for the following runtimes:
java8.al2java11java17java21nodejs16.xnodejs18.xnodejs20.xpython3.7python3.8python3.9python3.10python3.11python3.12