Skip to main content

AWS CloudWatch Logs daily archive to s3 bucket

Project description

AWS Daily CloudWatch Logs Archive Stack

GitHub npm (scoped) PyPI Nuget GitHub Workflow Status (branch) GitHub release (latest SemVer)

View on Construct Hub

AWS CloudWatch Logs daily(13:00Z) archive to s3 bucket.

Resources

This construct creating resource list.

  • S3 Bucket (log-archive-xxxxxxxx from @gammarers/aws-secure-log-bucket)
  • Lambda function execution role
  • Lambda function
  • Lambda function log group
  • StepFunctions state machine execution role
  • StepFunctions state machine
  • EventBridge Scheduler execution role
  • EventBridge Scheduler

Architecture

architecture

Install

TypeScript

npm install @gammarers/aws-daily-cloud-watch-logs-archive-stack
# or
yarn add @gammarers/aws-daily-cloud-watch-logs-archive-stack

Python

pip install gammarers.aws-daily-cloud-watch-logs-archive-stack

C# / .NET

dotnet add package Gammarers.CDK.AWS.DailyCloudWatchLogsArchiveStack

Example

npm install @gammarers/aws-daily-cloud-watch-logs-archive-stack
import { DailyCloudWatchLogsArchiveStack } from '@gammarers/aws-daily-cloud-watch-logs-archive-stack';

new DailyCloudWatchLogsArchiveStack(stack, 'DailyCloudWatchLogsArchiveStack', {
    targetResourceTag: {
      key: 'DailyLogExport',
      values: ['Yes'],
    },
});

Otherwise

If you want to export old log files, please refer to the following repository. The log file will be exported in the same output format.

AWS CloudWatch Logs Exporter

License

This project is licensed under the Apache-2.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file gammarers_aws_daily_cloud_watch_logs_archive_stack-2.7.15.tar.gz.

File metadata

File hashes

Hashes for gammarers_aws_daily_cloud_watch_logs_archive_stack-2.7.15.tar.gz
Algorithm Hash digest
SHA256 6f931eaad471c7129e0db5417db9dad548347e5492e7d909cf4a88f6a5161ac1
MD5 02b09a4b12beb170a59d79b16ef73808
BLAKE2b-256 e60ead1cefb719e466bc9dd7b20d92524f5757c746dd2493975654dc6051b298

See more details on using hashes here.

File details

Details for the file gammarers.aws_daily_cloud_watch_logs_archive_stack-2.7.15-py3-none-any.whl.

File metadata

File hashes

Hashes for gammarers.aws_daily_cloud_watch_logs_archive_stack-2.7.15-py3-none-any.whl
Algorithm Hash digest
SHA256 014a53aa87f133f94e5683bd146181c172099369ea79902ac8c4801c8e26081c
MD5 8e5d339e0273c022da011ca0857e7fce
BLAKE2b-256 89d3514254c999a2fa8518d06e0fe721938b68121255cd62eef9647d1e05cb50

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page