# AWS Daily CloudWatch Logs Archiver
[](https://github.com/gammarer/aws-daily-cloud-watch-logs-archiver/blob/main/LICENSE)
[](https://www.npmjs.com/package/@gammarer/aws-daily-cloud-watch-logs-archiver)
[](https://pypi.org/project/gammarer.aws-daily-cloud-watch-logs-archiver/)
[](https://www.nuget.org/packages/Gammarer.CDK.AWS.DailyCloudWatchLogsArchiver/)
[](https://s01.oss.sonatype.org/content/repositories/releases/com/gammarer/aws-daily-cloud-watch-logs-archiver/)
[](https://github.com/gammarer/aws-daily-cloud-watch-logs-archiver/actions/workflows/release.yml)
[](https://github.com/gammarer/aws-daily-cloud-watch-logs-archiver/releases)
[](https://constructs.dev/packages/@gammarer/aws-daily-cloud-watch-logs-archiver)
AWS CloudWatch Logs daily(13:00Z) archive to s3 bucket.
## Resources
This construct creating resource list.
* S3 Bucket (log-archive-xxxxxxxx from @gammarer/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

## Install
### TypeScript
```shell
npm install @gammarer/aws-daily-cloud-watch-logs-archiver
# or
yarn add @gammarer/aws-daily-cloud-watch-logs-archiver
```
### Python
```shell
pip install gammarer.aws-daily-cloud-watch-logs-archiver
```
### C# / .NET
```shell
dotnet add package Gammarer.CDK.AWS.DailyCloudWatchLogsArchiver
```
### Java
Add the following to pom.xml:
```xml
<dependency>
<groupId>com.gammarer</groupId>
<artifactId>aws-daily-cloud-watch-logs-archiver</artifactId>
</dependency>
```
## Example
```shell
npm install @gammarer/aws-daily-cloud-watch-logs-archiver
```
```python
import { DailyCloudWatchLogsArchiver } from '@gammarer/aws-daily-cloud-watch-logs-archiver';
new DailyCloudWatchLogsArchiver(stack, 'DailyCloudWatchLogsArchiver', {
resource: {
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](https://github.com/gammarer/aws-cloud-watch-logs-exporter)
## License
This project is licensed under the Apache-2.0 License.
Raw data
{
"_id": null,
"home_page": "https://github.com/gammarer/aws-daily-cloud-watch-logs-archiver.git",
"name": "gammarer.aws-daily-cloud-watch-logs-archiver",
"maintainer": "",
"docs_url": null,
"requires_python": "~=3.8",
"maintainer_email": "",
"keywords": "",
"author": "yicr<yicr@users.noreply.github.com>",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/43/ca/adb4358f7b094b26d4a57537de28dbaacfa37a9a8d98c84621e57b4fe55f/gammarer.aws-daily-cloud-watch-logs-archiver-2.2.6.tar.gz",
"platform": null,
"description": "# AWS Daily CloudWatch Logs Archiver\n\n[](https://github.com/gammarer/aws-daily-cloud-watch-logs-archiver/blob/main/LICENSE)\n[](https://www.npmjs.com/package/@gammarer/aws-daily-cloud-watch-logs-archiver)\n[](https://pypi.org/project/gammarer.aws-daily-cloud-watch-logs-archiver/)\n[](https://www.nuget.org/packages/Gammarer.CDK.AWS.DailyCloudWatchLogsArchiver/)\n[](https://s01.oss.sonatype.org/content/repositories/releases/com/gammarer/aws-daily-cloud-watch-logs-archiver/)\n[](https://github.com/gammarer/aws-daily-cloud-watch-logs-archiver/actions/workflows/release.yml)\n[](https://github.com/gammarer/aws-daily-cloud-watch-logs-archiver/releases)\n\n[](https://constructs.dev/packages/@gammarer/aws-daily-cloud-watch-logs-archiver)\n\nAWS CloudWatch Logs daily(13:00Z) archive to s3 bucket.\n\n## Resources\n\nThis construct creating resource list.\n\n* S3 Bucket (log-archive-xxxxxxxx from @gammarer/aws-secure-log-bucket)\n* Lambda function execution role\n* Lambda function\n* Lambda function log group\n* StepFunctions state machine execution role\n* StepFunctions state machine\n* EventBridge Scheduler execution role\n* EventBridge Scheduler\n\n## Architecture\n\n\n\n## Install\n\n### TypeScript\n\n```shell\nnpm install @gammarer/aws-daily-cloud-watch-logs-archiver\n# or\nyarn add @gammarer/aws-daily-cloud-watch-logs-archiver\n```\n\n### Python\n\n```shell\npip install gammarer.aws-daily-cloud-watch-logs-archiver\n```\n\n### C# / .NET\n\n```shell\ndotnet add package Gammarer.CDK.AWS.DailyCloudWatchLogsArchiver\n```\n\n### Java\n\nAdd the following to pom.xml:\n\n```xml\n<dependency>\n <groupId>com.gammarer</groupId>\n <artifactId>aws-daily-cloud-watch-logs-archiver</artifactId>\n</dependency>\n```\n\n## Example\n\n```shell\nnpm install @gammarer/aws-daily-cloud-watch-logs-archiver\n```\n\n```python\nimport { DailyCloudWatchLogsArchiver } from '@gammarer/aws-daily-cloud-watch-logs-archiver';\n\nnew DailyCloudWatchLogsArchiver(stack, 'DailyCloudWatchLogsArchiver', {\n resource: {\n key: 'DailyLogExport',\n values: ['Yes'],\n },\n});\n```\n\n## Otherwise\n\nIf you want to export old log files, please refer to the following repository. The log file will be exported in the same output format.\n\n[AWS CloudWatch Logs Exporter](https://github.com/gammarer/aws-cloud-watch-logs-exporter)\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "AWS CloudWatch Logs daily archive to s3 bucket",
"version": "2.2.6",
"project_urls": {
"Homepage": "https://github.com/gammarer/aws-daily-cloud-watch-logs-archiver.git",
"Source": "https://github.com/gammarer/aws-daily-cloud-watch-logs-archiver.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3dec583b0dbf0b8445bfcabd4577ac05a4cf91816ffeffc800d52d746b219696",
"md5": "cf4692aa30e63f13271f742f1ffddb51",
"sha256": "c6a83482b995e0346d45aa427b55883a0fd694929abcc9c9c9e3c3cd84c903b9"
},
"downloads": -1,
"filename": "gammarer.aws_daily_cloud_watch_logs_archiver-2.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cf4692aa30e63f13271f742f1ffddb51",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 47702,
"upload_time": "2024-02-21T19:12:27",
"upload_time_iso_8601": "2024-02-21T19:12:27.799495Z",
"url": "https://files.pythonhosted.org/packages/3d/ec/583b0dbf0b8445bfcabd4577ac05a4cf91816ffeffc800d52d746b219696/gammarer.aws_daily_cloud_watch_logs_archiver-2.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "43caadb4358f7b094b26d4a57537de28dbaacfa37a9a8d98c84621e57b4fe55f",
"md5": "1f4d8c26b7451d8c158c84fa36f4f044",
"sha256": "0082bc641d45bb2b728e1b29cbf9ff979eaa645be251c88b0155ccae59215607"
},
"downloads": -1,
"filename": "gammarer.aws-daily-cloud-watch-logs-archiver-2.2.6.tar.gz",
"has_sig": false,
"md5_digest": "1f4d8c26b7451d8c158c84fa36f4f044",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 49063,
"upload_time": "2024-02-21T19:12:30",
"upload_time_iso_8601": "2024-02-21T19:12:30.091758Z",
"url": "https://files.pythonhosted.org/packages/43/ca/adb4358f7b094b26d4a57537de28dbaacfa37a9a8d98c84621e57b4fe55f/gammarer.aws-daily-cloud-watch-logs-archiver-2.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-21 19:12:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gammarer",
"github_project": "aws-daily-cloud-watch-logs-archiver",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "gammarer.aws-daily-cloud-watch-logs-archiver"
}