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

File metadata

File hashes

Hashes for gammarers_aws_daily_cloud_watch_logs_archive_stack-2.7.16.tar.gz
Algorithm Hash digest
SHA256 41668ddba7af65eeaae3806b854e5a64f58a92b804a0ef0dca2123d756f3a689
MD5 efc712a3ab4282421ba0c1d0f651e044
BLAKE2b-256 a47013b9d9c94cd260d3448af89a8658df015afadc6b652c05a2055d36ddbf61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gammarers.aws_daily_cloud_watch_logs_archive_stack-2.7.16-py3-none-any.whl
Algorithm Hash digest
SHA256 8710e737994b24b158bac3a3b3ef74432440b57e1616d3a63e59708dfd3dc9e4
MD5 dddd5768926f11899f279a9917c83340
BLAKE2b-256 86c13afbe2f3a4fe853c303b4ba31de90db15dbfa149fca1d9ee5be55a3dff3f

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