# Getting HIgh s3 cost on LISTBUCKET OPERATION using logstash s3 pipeline

**URL:** <https://discuss.elastic.co/t/getting-high-s3-cost-on-listbucket-operation-using-logstash-s3-pipeline/335970>\
**Category:** Logstash\
**Created:** [June 14, 2023, 9:53am UTC](https://discuss.elastic.co/t/getting-high-s3-cost-on-listbucket-operation-using-logstash-s3-pipeline/335970 "2023-06-14T09:53:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dharampal\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dharampal_singh/32/118725_2.png) [@Dharampal\_Singh](https://discuss.elastic.co/u/Dharampal_Singh)\
**Post date:** [June 14, 2023, 9:53am UTC](https://discuss.elastic.co/t/getting-high-s3-cost-on-listbucket-operation-using-logstash-s3-pipeline/335970/1 "2023-06-14T09:53:45Z")

</div>

Hi elastic Team,

We have 3 logstash s3 pipeine from buckets(elb,cloudflare,cloudtrail) .Currently we are getting high s3 list bucket operation cost on these buckets.We want to know is there any way so we can minimize this cost.Below is the INPUT of logstash config:-

```auto
input {
      s3 {
        access_key_id => "AXXXXXXXXXXXXXXXXX"
        secret_access_key => "XXXXXXXXXXXXXXXXXX"
        region => "ap-south-1"
        bucket => "elb`Preformatted text`"
        #prefix => "2021/09/14"
        type => "application-load-balancer"
        interval => "10"
        exclude_pattern => "\/2021\/08\/|\/2021\/07\/|\/2021\/06\/"
        additional_settings => {
          force_path_style => true
          follow_redirects => false
        }
      }
    }

```

current cost:- $22-- list bucket operation on single bucket

---

<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:** [July 12, 2023, 9:53am UTC](https://discuss.elastic.co/t/getting-high-s3-cost-on-listbucket-operation-using-logstash-s3-pipeline/335970/2 "2023-07-12T09:53:53Z")

</div>

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