{ "info": { "author": "Mark van Holsteijn", "author_email": "mark@binx.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# AWS Cloudwatch Log minder\nAWS CloudWatch logs is an useful logging system, but it has two quircks. It does not allow you too set a default\nretention period for newly created log groups, and it does not delete empty log streams that are older than\nthe retention period. This utility:\n\n1. sets a default retention period on log groups without a period set.\n1. removes empty log streams older than the retention period of the log group\n\nYou can use it as a command line utility. You can also install it as an AWS Lambda function and have your\nlogs kept in order, NoOps style!\n\n## install the log minder\nto install the log minder, type:\n\n```sh\npip install aws-cloudwatch-log-minder\n```\n\n## set default retention period\nto set the default retention period on log groups without one, type:\n```sh\ncwlogs-minder --dry-run set-log-retention --days 30\n```\nThis will show you which log groups will have its retention period set. Remove the `--dry-run` and\nit the retention period will be set.\n\n## delete empty log streams\nTo delete empty log streams older than the retention period, type:\n```sh\ncwlogs-minder --dry-run delete-empty-log-streams\n```\nThis will show you which empty log streams will be deleted. Remove the `--dry-run` and\nthese stream will be deleted.\n\n## deploy the log minder\nTo deploy the log minder as an AWS Lambda, type:\n\n```sh\ngit clone https://github.com/binxio/aws-cloudwatch-log-minder.git\ncd aws-cloudwatch-log-minder\naws cloudformation create-stack \\\n --capabilities CAPABILITY_IAM \\\n --stack-name aws-cloudwatch-log-minder \\\n --template-body file://./cloudformation/aws-cloudwatch-log-minder.yaml\n\naws cloudformation wait stack-create-complete --stack-name aws-cloudwatch-log-minder\n```\nThis will install the log minder in your AWS account and run every hour.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/binxio/aws-cloudwatch-log-minder", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "aws-cloudwatch-log-minder", "package_url": "https://pypi.org/project/aws-cloudwatch-log-minder/", "platform": "any", "project_url": "https://pypi.org/project/aws-cloudwatch-log-minder/", "project_urls": { "Homepage": "https://github.com/binxio/aws-cloudwatch-log-minder" }, "release_url": "https://pypi.org/project/aws-cloudwatch-log-minder/0.2.3/", "requires_dist": null, "requires_python": "", "summary": "Maintain AWS CloudWatch log streams", "version": "0.2.3" }, "last_serial": 5826520, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "52ade412277fd775c95e5e305ecd4a37", "sha256": "0953795e54cb3e419daf8e6d4c44af9412478a1781208ce4e5a025a431bd0e46" }, "downloads": -1, "filename": "aws-cloudwatch-log-minder-0.1.1.tar.gz", "has_sig": false, "md5_digest": "52ade412277fd775c95e5e305ecd4a37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3173, "upload_time": "2019-09-11T20:30:35", "url": "https://files.pythonhosted.org/packages/2b/f0/5e7d4d993defa245fca0ede2e9a2c192786dc666f8e042e7146b9b543fa6/aws-cloudwatch-log-minder-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "c674bbdba33931ec9afd4720f61a1393", "sha256": "fe71993ef55c3caa6113a3603d15a0dba67700f4903eb56912cc4ee688360432" }, "downloads": -1, "filename": "aws-cloudwatch-log-minder-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c674bbdba33931ec9afd4720f61a1393", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3724, "upload_time": "2019-09-12T08:16:36", "url": "https://files.pythonhosted.org/packages/5f/ca/dc4995d8b5ef9bf6d623d510596c3cd5a0869cf611d0cf9fb0d3b4c89f30/aws-cloudwatch-log-minder-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "8a10ad4bfd3ca34f45cd3a7e829c2bee", "sha256": "98de08f008e7434954f1953d6977367c1dc1cfaffbc716f2e8de963205348c38" }, "downloads": -1, "filename": "aws-cloudwatch-log-minder-0.1.3.tar.gz", "has_sig": false, "md5_digest": "8a10ad4bfd3ca34f45cd3a7e829c2bee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4025, "upload_time": "2019-09-12T08:21:22", "url": "https://files.pythonhosted.org/packages/61/8b/9895c804f32d3c7333bddef35c7e7119eea101c450bdc2d1c4b8e76905b6/aws-cloudwatch-log-minder-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "84e83019ba24d10ad08722f1c8516aa8", "sha256": "ad47c56eeb23f0266b539a69b29dfdc1e554c4c16c6706e8b1fe94fee310b89c" }, "downloads": -1, "filename": "aws-cloudwatch-log-minder-0.1.4.tar.gz", "has_sig": false, "md5_digest": "84e83019ba24d10ad08722f1c8516aa8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4023, "upload_time": "2019-09-12T08:22:37", "url": "https://files.pythonhosted.org/packages/03/ab/8a88992d6e9faeecdb7b37c585ffeacb5a9e09f36afc62d6a730c5018f0f/aws-cloudwatch-log-minder-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "3df71dbce1189a8df90070f0286c73b5", "sha256": "f40000fc260c00e80d4b7b98ffe426208426de9c7bbc8f74d5d81e0c66ab2006" }, "downloads": -1, "filename": "aws-cloudwatch-log-minder-0.1.5.tar.gz", "has_sig": false, "md5_digest": "3df71dbce1189a8df90070f0286c73b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4026, "upload_time": "2019-09-12T08:47:01", "url": "https://files.pythonhosted.org/packages/9f/28/49d9a81d52719d35b7a1ec9fc0311eda3bd8a5a1e0ef543a08d5d87144a9/aws-cloudwatch-log-minder-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "bcf2623803696efbd9388a6529bf695b", "sha256": "dcc50e49c0ae7aced57123fd67a56ae1b58289e1875d70a742956f60d68809ed" }, "downloads": -1, "filename": "aws-cloudwatch-log-minder-0.1.6.tar.gz", "has_sig": false, "md5_digest": "bcf2623803696efbd9388a6529bf695b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4046, "upload_time": "2019-09-12T09:08:48", "url": "https://files.pythonhosted.org/packages/5c/ff/11d0e0c4236a6d089664a5a183fb084a0faf6ae7d108a40cb163ca3fce2f/aws-cloudwatch-log-minder-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "dcc289553acfd5daeb8a1aac2f52ccc9", "sha256": "afa6f79ce9b74fed3320ab8d798e5f8a96ef623d861be87ca610a2603374465f" }, "downloads": -1, "filename": "aws-cloudwatch-log-minder-0.1.7.tar.gz", "has_sig": false, "md5_digest": "dcc289553acfd5daeb8a1aac2f52ccc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4110, "upload_time": "2019-09-12T09:56:19", "url": "https://files.pythonhosted.org/packages/4a/49/18dbb44d2abfbf18f3b019b17485fc93170e19fb072f84d78522d7cf118f/aws-cloudwatch-log-minder-0.1.7.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "bf3a35a159322a9c8cf093ded0725304", "sha256": "0f8792f09ee34cc2744e19a67224847065a6a4e4f4007a6c46269420303fd6b9" }, "downloads": -1, "filename": "aws-cloudwatch-log-minder-0.2.0.tar.gz", "has_sig": false, "md5_digest": "bf3a35a159322a9c8cf093ded0725304", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4550, "upload_time": "2019-09-12T12:46:27", "url": "https://files.pythonhosted.org/packages/04/f2/b1a99979f9884bec54b482ea714dc2405c5eea91eee5269f4b2c3133c7eb/aws-cloudwatch-log-minder-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "7fcf03f6f777317731411b258b0a056f", "sha256": "5cbbab222861c963738e425b17d6b4b43c1fe9c8e88c7ee92ca4904207d0f174" }, "downloads": -1, "filename": "aws-cloudwatch-log-minder-0.2.1.tar.gz", "has_sig": false, "md5_digest": "7fcf03f6f777317731411b258b0a056f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4545, "upload_time": "2019-09-12T14:50:24", "url": "https://files.pythonhosted.org/packages/fd/d8/4558c4d665f23e0546b13c2fa3028883c8a1b7000354fd46eca59b1c4012/aws-cloudwatch-log-minder-0.2.1.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "65ec9cbdc532fef22a48a1b2cc019faa", "sha256": "70e2f37529a545c095eb1f1dd714905c5fb467a931e0a9782c435d1ffe51a430" }, "downloads": -1, "filename": "aws-cloudwatch-log-minder-0.2.3.tar.gz", "has_sig": false, "md5_digest": "65ec9cbdc532fef22a48a1b2cc019faa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4680, "upload_time": "2019-09-13T16:00:51", "url": "https://files.pythonhosted.org/packages/e8/26/d34d1378b2557d867731e42354dca7722b2ebaf00ea6bf7dc13988c513d2/aws-cloudwatch-log-minder-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "65ec9cbdc532fef22a48a1b2cc019faa", "sha256": "70e2f37529a545c095eb1f1dd714905c5fb467a931e0a9782c435d1ffe51a430" }, "downloads": -1, "filename": "aws-cloudwatch-log-minder-0.2.3.tar.gz", "has_sig": false, "md5_digest": "65ec9cbdc532fef22a48a1b2cc019faa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4680, "upload_time": "2019-09-13T16:00:51", "url": "https://files.pythonhosted.org/packages/e8/26/d34d1378b2557d867731e42354dca7722b2ebaf00ea6bf7dc13988c513d2/aws-cloudwatch-log-minder-0.2.3.tar.gz" } ] }