Skip to main content
Sumo Logic

AWS Cost Explorer

AWS Cost Explorer
The Sumo Logic App for AWS Cost Explorer lets you visualize, understand, and manage your AWS costs and usage over time.  AWS Cost Explorer provides you with a set of default reports that you can use as the starting place for your analysis. From there, use the filtering and grouping capabilities to dive deeper into your cost and usage data and generate custom insights.

AWS Cost Explorer provides you with a set of default reports that you can use as the starting place for your analysis. From there, use the filtering and grouping capabilities to dive deeper into your cost and usage data and generate custom insights.

The Sumo Logic App for AWS Cost Explorer lets you visualize, understand, and manage your AWS costs and usage over time. 

Log Types

The AWS Cost Explorer App uses the JSON formatted logs collected using AWS Cost Explorer source.

{"Timestamp":1647129599999,"Estimated":true,"Service":"AmazonCloudWatch","Operation":"PutLogEvents","region":"us-east-1","StartDate":"2022-03-12","EndDate":"2022-03-13","CostUsd":0.1326919963,"MetricType":"UnblendedCost","Granularity":"Monthly","CostType":"cost_service_operation_region_UnblendedCost_Monthly"}

Query sample

The following query sample was taken from the Cost by Region panel on the AWS Cost Explorer - Account dashboard.

account={{account}} region CostUsd CostType StartDate EndDate MetricType Granularity Daily
| json "region", "CostUsd", "CostType", "StartDate", "EndDate", "MetricType", "Granularity", "Estimated"
| where MetricType matches "{{MetricType}}" and estimated matches "{{estimated}}"
| where Granularity = "Daily" and CostType = "cost_region_{{MetricType}}_Daily"
| last(CostUsd) as CostUsd by StartDate, EndDate, account, region, CostType, MetricType, Granularity, Estimated
| sum(CostUsd) as total_cost by region
| sort by total_cost, region
| limit 10