# Issues connecting to S3 bucket from Logstash

**URL:** <https://discuss.elastic.co/t/issues-connecting-to-s3-bucket-from-logstash/139812>\
**Category:** Logstash\
**Created:** [July 12, 2018, 6:26pm UTC](https://discuss.elastic.co/t/issues-connecting-to-s3-bucket-from-logstash/139812 "2018-07-12T18:26:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jobse.batres](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jobse.batres](https://discuss.elastic.co/u/jobse.batres)\
**Post date:** [July 12, 2018, 6:26pm UTC](https://discuss.elastic.co/t/issues-connecting-to-s3-bucket-from-logstash/139812/1 "2018-07-12T18:26:16Z")

</div>

Hello all,  
I'm working on setting up a Logstash server in AWS and have that server pull logs from an S3 bucket. When I start up my Logstash instance, I see the below error in the logs.

[2018-07-12T14:25:24,653][INFO][logstash.inputs.s3] Registering s3 input {:bucket=\>"bucket-name", :region=\>"us-east-1"}  
[2018-07-12T14:25:25,025][INFO][logstash.pipeline] Pipeline started successfully {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x2d782c29 run\>"}  
[2018-07-12T14:25:25,139][INFO][logstash.agent] Pipelines running {:count=\>1, :running\_pipelines=\>[:main], :non\_running\_pipelines=\>[]}  
[2018-07-12T14:25:25,767][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
[2018-07-12T14:25:27,415][ERROR][logstash.inputs.s3] **S3 input: Unable to list objects in bucket {:prefix=\>nil, :message=\>"The AWS Access Key Id you provided does not exist in our records."}**

I followed the steps outlined [here](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-s3.html) to set up my conf file.

My conf file has the below values for the S3 bucket, I'm not sure why I keep getting that message if my keys are provided in the conf file.

```
input {
   s3 {
    "bucket" => "bucket-name"
    "access_key_id" => "Axxxxxxxxxxxxxx"
    "secret_access_key" => "sxxxxxxxxxxxx"
    "region" => "us-east-1"
  }
}

filter {
    grok {
            match => { "message" => "%{TIMESTAMP_ISO8601:date_time} %{LOGLEVEL:log-level} %{DATA:key} %{GREEDYDATA:application} %{DATA:action} %{DATA:result} %{DATA:details}" }
    }
  }

output {
    elasticsearch {
            hosts => ["vpc-ivr-core-dr2mlk5allufnmlrpya2sdtd2y.us-east-1.es.amazonaws.com:443"]
            index => "my_index"
            }
          }
```

---

<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:** [August 9, 2018, 6:26pm UTC](https://discuss.elastic.co/t/issues-connecting-to-s3-bucket-from-logstash/139812/2 "2018-08-09T18:26:21Z")

</div>

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