# Unknown setting error with s3 input plugin

**URL:** <https://discuss.elastic.co/t/unknown-setting-error-with-s3-input-plugin/220334>\
**Category:** Logstash\
**Created:** [February 21, 2020, 10:40am UTC](https://discuss.elastic.co/t/unknown-setting-error-with-s3-input-plugin/220334 "2020-02-21T10:40:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Alex](https://avatars.discourse-cdn.com/v4/letter/_/54ee81/32.png) [@\_Alex](https://discuss.elastic.co/u/_Alex)\
**Post date:** [February 21, 2020, 10:40am UTC](https://discuss.elastic.co/t/unknown-setting-error-with-s3-input-plugin/220334/1 "2020-02-21T10:40:22Z")

</div>

When using the s3 input plugin with this configuration:

```
input {
  s3 {
    "bucket" => "my-bucket-name"
    "add_field" => {
      "service" => "aws-access-log-alb"
      "environment" => "demo"
    }
  }
}

```

I get these errors:

```
[ERROR] 2020-02-21 10:24:23.701 [LogStash::Runner] s3 - Unknown setting '"bucket"' for s3
[ERROR] 2020-02-21 10:24:23.702 [LogStash::Runner] s3 - Unknown setting '"add_field"' for s3

```

According to the [S3 input plugin docs](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-s3.html) this looks correct.

This is logstash verison 7.6.0. Recently upgraded from 6.8.0 where this config was working. Could anyone help me find out why these errors are showing up? Cheers!

---

<div class="post-metadata">

**Author:** ![\_Alex](https://avatars.discourse-cdn.com/v4/letter/_/54ee81/32.png) [@\_Alex](https://discuss.elastic.co/u/_Alex)\
**Post date:** [February 21, 2020, 10:56am UTC](https://discuss.elastic.co/t/unknown-setting-error-with-s3-input-plugin/220334/2 "2020-02-21T10:56:43Z")

</div>

I have figured this out, the quoted key names were the problem. Changing my configuration to this resolved it:

```auto
input {
  s3 {
    bucket => "my-bucket-name"
    add_field => {
      service => "aws-access-log-alb"
      environment => "demo"
    }
  }
}

```

I'll raise a PR for the documentation!

EDIT: [https://github.com/logstash-plugins/logstash-input-s3/pull/195](https://github.com/logstash-plugins/logstash-input-s3/pull/195)

---

<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:** [March 20, 2020, 10:56am UTC](https://discuss.elastic.co/t/unknown-setting-error-with-s3-input-plugin/220334/3 "2020-03-20T10:56:46Z")

</div>

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