• Pricing
© 2025 Serverless, Inc. All rights reserved.
Terms of ServicePrivacy Policy
serverless

Serverless Plugin Log Retention

by

Control the retention of your serverless function's cloudwatch logs.

0
23
  1. Serverless Plugin Log Retention

[!IMPORTANT]
The Serverless Framework now has built-in support for the log retention setting. For more information please refer to the official documentation. This plugin should no longer be needed.

serverless-plugin-log-retention

Control the retention of your serverless function's cloudwatch logs.

Usage example

serverless.yml

service: sample

plugins:
  - serverless-plugin-log-retention

provider:
  name: aws

custom:
  logRetentionInDays: 30 # used to set a global value for all functions

functions:
  function1:
  function2:
    logRetentionInDays: 10 # set the retention for specific log group

Contents

  • serverless-plugin-log-retention
  • Usage example

Related

GuidesPluginsExamplesSlack CommunitySupport