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

File metadata

File hashes

Hashes for gammarers.aws-daily-cloud-watch-logs-archive-stack-2.7.13.tar.gz
Algorithm Hash digest
SHA256 7ea7b3cb144f96fba0b28bd5f20fda3bbb2c0e0e7078ef06a07a7f07d6a38ec9
MD5 c1c04514101d2cbd321c30d1dbf5ef70
BLAKE2b-256 42f3cbc72d4ecc22c9963afe8457ceb721a0ef15dcf074f3fb6a5a54eb80b306

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gammarers.aws_daily_cloud_watch_logs_archive_stack-2.7.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a37d1ef7721c194e03e1ae79841bb8e030e66d9b8e231b273b8fac63c2a69e46
MD5 44916cf024bc1c6bb95ccc21e941f506
BLAKE2b-256 f044240e3b76e35884b390c823a6980d151c75047845e4d74a2d571cd04d283a

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