All Apps and Add-ons

Splunk App for AWS: The Billing Dashboard does not handle multiple adjustment cost records/events in a given month

BillBaker
Explorer

In a previous month, our AWS billing feed received 31 cost adjustment records. The 2 searches on that dashboard (monthly-cost-by-account and monthly-cost-by-service) adds all the cost events for that given month thus distorting the total cost. The actual cost was received in the last event. The search string for each of the dashboard displays is as follows

`aws-billing-monthly($cAccountId$, $cCurrency$)` RecordType=AccountTotal  | timechart span=1mon eval(round(sum(TotalCost),2)) as TotalCost by LinkedAccount limit=20 | eval nowstring=strftime(now(), "%Y-%m")  | eval timestring=strftime(_time, "%Y-%m") |  where NOT timestring=nowstring | fields - nowstring timestring

`aws-billing-monthly($cAccountId$, $cCurrency$)` RecordType=LinkedLineItem | timechart span=1mon eval(round(sum(TotalCost),2)) as TotalCost by ProductName limit=20 | eval nowstring=strftime(now(), "%Y-%m") | eval timestring=strftime(_time, "%Y-%m") | where NOT timestring=nowstring | fields - nowstring timestring

The search strings above are only expecting 1 record for a given month.

So, my question(s) is how to proceed - can the 2 searches be modified to handle multiple cost adjustments records received in a given month using the last one as the final cost? Should I attempt to delete the 30 records that do not reflect the true/final cost ot that month? The search strings above are only expecting 1 record for a given month.

0 Karma

BillBaker
Explorer

The 2 work a rounds were for

https://splunkbase.splunk.com/app/1274/

There is a billing dashboard in this app.

0 Karma

ppablo
Retired

Hi @BillBaker

I edited and retagged your post, but wanted to clarify for other users that find this. Are you referring to the Splunk App for AWS (https://splunkbase.splunk.com/app/1274/ ), or the Splunk App for AWS Billing (https://splunkbase.splunk.com/app/1577/ ) in your post?

0 Karma

BillBaker
Explorer

I figured out correcting the first search using "latest" parm with timechart

The second search is a little more involved because it does have multiple feeding each month's services - not just one for each service. I am attempting to find and then filter out the extra records.

AWS app is maintained by splunk. Those who maintain it may want to review and adapt to what seems to be new billing practices by AWS.

0 Karma

BillBaker
Explorer

Better result on "latest" was using "last" parm with timechart

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...