ArthaOps
PlatformTrustCase StudiesPricingDocs
Sign InStart Free
ZERO-AGENT READ-ONLY DEPLOYMENT // MULTI-CLOUD IAM & RBAC

Evaluate your multi-cloud environment in under 2 minutes.

Deploy the agentless read-only scanner with zero long-lived credentials stored. Real-time deterministic waste detection across 378 active multi-cloud rules.

Start Free ScanBook Demo
$curl -sSL https://arthaops.com/scan | sh
ArthaOps

Zero-Trust Multi-Cloud Cost Governance Platform. Continuous waste detection, deterministic math & automated remediation.

INSTITUTIONAL FINOPS // ZERO-TRUST ENGINE

01 PLATFORM

Platform OverviewControl RoomCloud TopologyDetector EngineAsset InventoryRemediation EngineSavings IntelligenceDetector CatalogPlatform ComparisonPricing

02 TRUST

Trust CenterSecurity ArchitectureCompliance MatrixSovereign Proxy Guarantee

03 RESOURCES

Engineering BlogSample Audit ReportDocumentationChangelogCase StudiesCustomer GuaranteesROI CalculatorGitHub Repository

04 COMPANY

About UsContact UsEnterprise Sales
45.0°W:117.0mmR:14.0mmH:53.0mmCL:298.0GAP:15.045.0°O-DIAM:117.0P-LOOP:38.0S-END:957.0117.0117.0117.0117.0117.0117.0117.0117.03.03.03.03.03.03.03.0P1P2P3P4P5P6P7P8P9⊕ DATUM-A (0,53)⊕ DATUM-B (957,0)OVERALL WIDTH: 957.00 mm53.00 mmDESIGNED BY ARTHAOPSMISSION CONTROL // CLASS-ATECH SINGULARITYSECTION 9 // ISO-128CAD DWG NO: AO-2026-M290 // SCALE 1:1 // TOLS: ±0.005mm // SHADER: WGL-V2 // CERTIFIED MAXIMUM HIGH-DENSITY CAD SCHEMATIC
© 2026 ArthaOps System Private Limited. All rights reserved.
SOC2 TYPE II READY // READ-ONLY IAM
Privacy PolicyTerms of ServiceCookie PolicyRefund PolicySystem Status
Back to Detector Directory
DET-CW-001AWS CloudWatchmedium Severity
Production-Validated
Last Verified: 2026-10-12

AWS CloudWatch Log Group Infinite Retention Detector

Identify Amazon CloudWatch log groups defaulting to 'Never Expire' quietly accumulating gigabytes of historical log storage fees.

1. Detection Scope & Operational Boundaries

Every ArthaOps detector enforces strict epistemic honesty. We clearly separate what can be mathematically proven via agentless telemetry from what requires contextual human judgement.

What This Detector Identifies

  • CloudWatch log groups where retentionInDays is null (Never Expire).
  • Non-production log groups (Lambda functions, ECS task logs, API Gateway execution logs) accumulating logs older than 30 days.
  • High-volume log groups with storedBytes exceeding 100 GB without an automated export or retention lifecycle.

What It Cannot Establish Alone

  • Whether statutory compliance standards (e.g. RBI cyber security guidelines, SOC2, PCI-DSS) mandate retaining specific audit logs for 365+ days.
  • Whether cold logs are actively referenced by Athena or OpenSearch log analysis queries.
  • Whether historical ingestion charges were justified: log ingestion fees ($0.57/GB in Mumbai, $0.50/GB in us-east-1) are sunk operational costs incurred at write time; setting retention curtails future storage fees ($0.033/GB-mo) but cannot retroactively refund past ingestion charges.

2. Telemetry & Evidence Requirements

ArthaOps operates strictly via Plane 1 (Read-Only Discovery). The following CloudFormation / IAM permissions and CloudWatch metrics are evaluated:

Target AWS Resource Type: AWS::Logs::LogGroup
Required Read-Only IAM Permissions:
logs:DescribeLogGroupslogs:PutRetentionPolicylogs:DeleteRetentionPolicy
Evaluated Telemetry Metrics:
AWS/Logs: IncomingBytes (Sum, 14d)AWS/Logs: IncomingLogEvents (Sum, 14d)
Evidence Certification: Audited using CloudWatch DescribeLogGroups API; verified that default AWS log group creation omits retention policies, incurring infinite billing.
Production-Validated

Verification Protocol: Tested against simulated log groups with retentionInDays == null and accumulated storedBytes.

Validation Context: Validated in production AWS environments uncovering gigabytes of debug and staging logs retained for over 2 years.

3. Reproducible AWS CLI Verification Recipe

List all CloudWatch log groups in ap-south-1 with infinite retention (retentionInDays is null) sorted by storage size.

bash (read-only verification)
# List log groups without retention policies in ap-south-1
aws logs describe-log-groups \
  --region ap-south-1 \
  --query "logGroups[?retentionInDays==null].{Name:logGroupName,StoredBytes:storedBytes,Created:creationTime}" \
  --output table
Representative CLI Output
-----------------------------------------------------------------------------------------
|                                   DescribeLogGroups                                   |
+--------------------------+---------------------------------------------+--------------+
|         Created          |                    Name                     | StoredBytes  |
+--------------------------+---------------------------------------------+--------------+
| 2025-01-15T10:00:00.000Z | /aws/lambda/staging-payment-webhook-handler | 536870912000 |
+--------------------------+---------------------------------------------+--------------+

💡 StoredBytes indicates accumulated storage. A value of 536,870,912,000 bytes (500 GB) with no retention policy incurs $16.50/mo (₹1,386/mo) indefinitely.

4. Transparent Economic Model

Potential Monthly Waste
₹2,772 / month per TB ($33.00/TB-mo)
Storage (GB) × $0.033/GB-mo (ap-south-1). 500 GB = $16.50/mo = ₹1,386.00/mo. 5,000 GB (5 TB) = $165.00/mo = ₹13,860/mo at ₹84.0/USD.
AWS Mumbai (ap-south-1) Rate
$0.033 per GB-month log storage; $0.57 per GB ingested
US East (N. Virginia) Rate
$0.030 per GB-month log storage; $0.50 per GB ingested
Gross Provisioned Spend
$0.033 / GB-month for CloudWatch Logs storage ($33.00 per 1,000 GB in ap-south-1)
Total baseline committed spend
Avoidable Incremental Waste
₹1,386 to ₹13,860 / month depending on accumulated log volume in non-production accounts
Redundant / unutilized delta
Realized Net Savings Potential
Up to 90% storage reduction by applying a 30-day retention policy on legacy staging log groups
Net recovery after retention/cutover
Pricing Source & Validity: Official AWS CloudWatch Pricing (ap-south-1 and us-east-1) (Retrieved: October 2026)
Model Assumptions
  • Calculated purely on stored historical log data ($0.033/GB-mo in Mumbai) beyond the target 30-day retention threshold.
  • Ingestion charges ($0.57/GB in Mumbai, $0.50/GB in us-east-1) are sunk operational costs incurred at write time; purging stored logs stops future storage accrual but does not recover historical ingestion fees.
Explicit Exclusions
  • Vended logs discount tiers and CloudWatch Logs Insights query scanning fees ($0.005/GB scanned) are excluded.

5. False-Positive Scenarios & Operational Risks

Never delete or terminate cloud resources blindly. These validated architectural scenarios must be reviewed before initiating remediation:

Documented False-Positive Scenarios

  • Security & Audit Trails: CloudTrail digest logs and VPC flow log groups may be intentionally retained for regulatory compliance.
  • Dispute Resolution Data: Payment callback logs retained for 180 days to resolve chargebacks.

Blast Radius & Remediation Risks

  • Permanent Log Deletion: Applying a 30-day retention policy permanently purges all log events older than 30 days within hours. Deleted log events cannot be recovered.

6. Remediation Procedure & Rollback Runbook

Follow this ordered sequence of verified AWS CLI actions to remediate the resource with complete rollback availability:

1

Export Historical Logs to S3 (Optional)

If compliance requires retaining logs, export historical data to an S3 bucket with Glacier lifecycle rules.

aws cli command
aws logs create-export-task --log-group-name /aws/lambda/staging-payment-webhook-handler --from 0 --to $(date +%s000) --destination my-archive-bucket
2

Apply 30-Day Retention Policy

Set the retention policy to 30 days. CloudWatch will asynchronously delete events older than 30 days.

aws cli command
aws logs put-retention-policy --region ap-south-1 --log-group-name /aws/lambda/staging-payment-webhook-handler --retention-in-days 30

Forensic Rollback Procedure

Retention policies can be removed at any time via `aws logs delete-retention-policy --log-group-name <name>`, returning the group to Never Expire. However, log events already purged cannot be recovered.

🔒 ArthaOps Assurance: ArthaOps checks log group name patterns and flags potential security/audit groups (e.g. CloudTrail, audit, auth) to prevent unintended log purging.

Irreversible Actions & Rollback Limitations

Log events purged after applying a retention policy cannot be undeleted by AWS Support.

SAMPLE FINDING (ILLUSTRATIVE)

How This Appears in the ArthaOps Control Plane

/aws/ecs/staging-api-servicestagingap-south-1
₹4,158 / mo ($49.50)
ESTIMATED RECOVERABLE

Staging container log group has accumulated 1,500 GB of logs over 18 months with retention set to Never Expire.

Log Group Name
/aws/ecs/staging-api-service
Retention Period
Never Expire (null)
Accumulated Storage
1,500 GB (1.5 TB)
Creation Date
540 days ago
Target Policy
30 days (saves ₹3,742/mo)

Test Your Infrastructure in 180 Seconds

Explore our zero-setup interactive sample report covering real Mumbai findings, or launch a 100% read-only agentless scan across your AWS environment.

Explore Sample Audit Report (Zero Setup)Run Free Read-Only CloudFormation Scan →