# S3 plugin relative path error

**URL:** <https://discuss.elastic.co/t/s3-plugin-relative-path-error/149586>\
**Category:** Logstash\
**Created:** [September 23, 2018, 11:03am UTC](https://discuss.elastic.co/t/s3-plugin-relative-path-error/149586 "2018-09-23T11:03:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harshet\_Jain](https://avatars.discourse-cdn.com/v4/letter/h/dc4da7/32.png) [@Harshet\_Jain](https://discuss.elastic.co/u/Harshet_Jain)\
**Post date:** [September 23, 2018, 11:03am UTC](https://discuss.elastic.co/t/s3-plugin-relative-path-error/149586/1 "2018-09-23T11:03:15Z")

</div>

I keep getting an error that relative path has been specified

Any ideas?

```
   input {

```

s3 {  
id =\> 'main'  
access\_key\_id =\> ''  
secret\_access\_key =\> '/O'  
bucket =\> 'sales-data'  
region =\> 'us-east-1'  
prefix =\> '/'  
type =\> 's3'  
additional\_settings =\> {  
force\_path\_style =\> true  
follow\_redirects =\> false  
}  
}  
file {  
path =\> '[https://s3.amazonaws.com/sales-data/sales/SfileName0.csv](https://s3.amazonaws.com/sales-data/sales/SfileName0.csv)'  
start\_position =\> 'beginning'

# sincedb\_path =\> 'NUL'

```
}

```

}

filter {  
csv {  
separator =\> ","  
columns =\> ["Type"]  
}  
}

output {  
elasticsearch {  
hosts =\> ""  
user =\> ""  
password =\> ""  
index =\> "data"  
}  
stdout {}  
}

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 26, 2018, 4:39am UTC](https://discuss.elastic.co/t/s3-plugin-relative-path-error/149586/2 "2018-09-26T04:39:58Z")

</div>

As documented, the file input only reads files from a locally mounted file system. To read a file from an HTTP resource you can use the http\_poller input plugin.

---

<div class="post-metadata">

**Author:** ![Harshet\_Jain](https://avatars.discourse-cdn.com/v4/letter/h/dc4da7/32.png) [@Harshet\_Jain](https://discuss.elastic.co/u/Harshet_Jain)\
**Post date:** [September 27, 2018, 11:13pm UTC](https://discuss.elastic.co/t/s3-plugin-relative-path-error/149586/3 "2018-09-27T23:13:50Z")

</div>

Works!!

---

<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:** [October 25, 2018, 11:13pm UTC](https://discuss.elastic.co/t/s3-plugin-relative-path-error/149586/4 "2018-10-25T23:13:51Z")

</div>

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