# Metric Beat AWS Billing

**URL:** <https://discuss.elastic.co/t/metric-beat-aws-billing/265654>\
**Category:** Beats\
**Tags:** beats-module, metricbeat\
**Created:** [February 26, 2021, 6:55pm UTC](https://discuss.elastic.co/t/metric-beat-aws-billing/265654 "2021-02-26T18:55:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinay9](https://avatars.discourse-cdn.com/v4/letter/v/3be4f8/32.png) [@vinay9](https://discuss.elastic.co/u/vinay9)\
**Post date:** [February 26, 2021, 6:55pm UTC](https://discuss.elastic.co/t/metric-beat-aws-billing/265654/1 "2021-02-26T18:55:54Z")

</div>

Any help on this is appreciated, I am using metricbeat to get the data from aws cloud watch and cost explorer, from Elasticsearch and to kibana dashboard i was able successfully get the all metrics for ec2 from aws. But when coming billing i was not able to filter it out by cost center.  
Reference

> **[AWS billing metricset | Metricbeat Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-aws-billing.html)**

aws.yml looks like

> Blockquote

* * *

- module: aws  
period: 300s  
metricsets:
  - ec2  
access\_key\_id: '\<access\_key\_id\>'  
secret\_access\_key: '\<secret\_access\_key\>'  
tags\_filter:
  - key: "CostCenter"  
value: "xxxxx"

> Blockquote`Preformatted text`

- module: aws  
period: 24h  
metricsets:
  - billing  
tags\_filter:
  - key: "CostCenter"  
value: "xxxxx"  
cost\_explorer\_config:  
group\_by\_dimension\_keys:
    - "AZ"
    - "INSTANCE\_TYPE"
    - "SERVICE"  
group\_by\_tag\_keys:
    - "aws:createdBy"

> Blockquote

By doing this i was able to get the estimated cost for all the account but not able to filter it out in the kibana dashboard. no values displayed.

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [March 1, 2021, 9:40am UTC](https://discuss.elastic.co/t/metric-beat-aws-billing/265654/2 "2021-03-01T09:40:11Z")

</div>

Could you please format the post using `` tags? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![vinay9](https://avatars.discourse-cdn.com/v4/letter/v/3be4f8/32.png) [@vinay9](https://discuss.elastic.co/u/vinay9)\
**Post date:** [March 20, 2021, 5:18am UTC](https://discuss.elastic.co/t/metric-beat-aws-billing/265654/4 "2021-03-20T05:18:19Z")

</div>

`to access aws ec2 metrics`

```auto
module: aws
period: 300s
metricsets:
   ec2
access_key_id: '<access_key_id>'
secret_access_key: '<secret_access_key>'
tags_filter:
   key: "CostCenter"
   value: "xxxxx"

```

`to access the billing dashboard`

```auto
module:

```

```auto
period: 24h
metricsets:
   billing
tags_filter:
   key: "CostCenter"
   value: "xxxxx"
cost_explorer_config:
group_by_dimension_keys:
     "AZ"
     "INSTANCE_TYPE"
     "SERVICE"
group_by_tag_keys:
     "aws:createdBy"

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 17, 2021, 7:18am UTC](https://discuss.elastic.co/t/metric-beat-aws-billing/265654/5 "2021-04-17T07:18:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
