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.14.tar.gz.

File metadata

File hashes

Hashes for gammarers.aws-daily-cloud-watch-logs-archive-stack-2.7.14.tar.gz
Algorithm Hash digest
SHA256 6b0589a81ea449b35116c6893dcaeb405b944481ce25ab41c9c4d5670af5034b
MD5 48a5ceee8fc1bba9cd92d4abde75b86a
BLAKE2b-256 343633e9c11972972225d91a892e685a5879b4a1487c6f231f3f8b6e6f5d1877

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gammarers.aws_daily_cloud_watch_logs_archive_stack-2.7.14-py3-none-any.whl
Algorithm Hash digest
SHA256 8fc03fb1c7a23cec7e2ba7aacccc8ac895efb5d28316e251b4cccc9108b3d9b9
MD5 88f1835977ba2b35f4158054e09ff7fe
BLAKE2b-256 dd3aac4323718d1ec4a7b6a9a01fd4318920ae0d466101500f65c37cbedb7391

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