Skip to content

Automatically send logs from CloudWatch to other destinations based on tags on CloudWatch log groups

License

Notifications You must be signed in to change notification settings

truemark/autolog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoLog

AWS CDK deployed stack that allows you to manipulate and ship AWS CloudWatch logs through tags.

Installation

  1. Install Node version 20. The use of nvm is recommended. See https://github.com/nvm-sh/nvm

  2. Install AWS CDK. See https://docs.aws.amazon.com/cdk/latest/guide/work-with-cdk-typescript.html

  3. Set the AWS_REGION environment variable and credentials in your terminal or alternatively use AWS_PROFILE.

  4. Run a diff

    pnpm cdk-diff
  5. Deploy the stack

    pnpm cdk-deploy

Supported Tags

CloudWatch LogGroup Tags

Tag Description
autolog:dest The destination logs will be written to

The following destination patterns are supported

Destination Description
{{bucketName}}/{{indexName}} Logs will be written to an s3 bucket managed by overwatch using the path /autolog/{{indexName}}/{{account}}/{{region}}/

About

Automatically send logs from CloudWatch to other destinations based on tags on CloudWatch log groups

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published