Utility for CloudWatch Logs
npm install cwlogs-utilUtility for CloudWatch Logs.
```
npm i cwlogs-util
Set a retention policy to log groups that have no policy.
- options.logGroupNamePrefixoptions.retentionInDays
- The prefix of target log groups.
-
- The number of days to retain log events.
Return an object has following properties:
- logGroups
- Log groups that the retention policy is set.
Delete log groups that have no log events.
- options.logGroupNamePrefix
- The prefix of target log groups.
Return an object has following properties:
- deletedLogGroups`
- Deleted log groups.
MIT