# Is it possible to use HTTP input and S3 input plugin together in logstash

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-use-http-input-and-s3-input-plugin-together-in-logstash/113408>\
**Category:** Logstash\
**Created:** [December 28, 2017, 7:17am UTC](https://discuss.elastic.co/t/is-it-possible-to-use-http-input-and-s3-input-plugin-together-in-logstash/113408 "2017-12-28T07:17:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinish\_Soman](https://avatars.discourse-cdn.com/v4/letter/v/5e9695/32.png) [@Vinish\_Soman](https://discuss.elastic.co/u/Vinish_Soman)\
**Post date:** [December 28, 2017, 7:17am UTC](https://discuss.elastic.co/t/is-it-possible-to-use-http-input-and-s3-input-plugin-together-in-logstash/113408/1 "2017-12-28T07:17:04Z")

</div>

We are trying to make S3 input prefix as dynamic value.

s3 {  
bucket =\> "bucketName"  
aws\_credentials\_file =\> "/root/logstash-5.3.0/config/aws\_credentials.yaml"  
delete =\> false  
interval =\> 60 # seconds  
prefix =\> "AWSLogs//CloudTrail/" ### ---\> Dynamic  
type =\> "cloudtrail"  
codec =\> "cloudtrail"  
sincedb\_path =\> "/tmp/sincedb"  
region =\> "us-east-1"  
}

We are planning to use HTTP input plugin to get S3 prefix from the user end and passing the same S3 prefix to S3 input plugin. Is it possible to do so?

---

<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:** [December 31, 2017, 1:15pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-http-input-and-s3-input-plugin-together-in-logstash/113408/2 "2017-12-31T13:15:32Z")

</div>

You could reference an environment variable that you pass to the Logstash process or you can simply generate the configuration file.

---

<div class="post-metadata">

**Author:** ![Vinish\_Soman](https://avatars.discourse-cdn.com/v4/letter/v/5e9695/32.png) [@Vinish\_Soman](https://discuss.elastic.co/u/Vinish_Soman)\
**Post date:** [January 2, 2018, 8:42am UTC](https://discuss.elastic.co/t/is-it-possible-to-use-http-input-and-s3-input-plugin-together-in-logstash/113408/3 "2018-01-02T08:42:04Z")

</div>

If the environment variable changes its value then we need to restart logstash service

---

<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:** [January 2, 2018, 8:48am UTC](https://discuss.elastic.co/t/is-it-possible-to-use-http-input-and-s3-input-plugin-together-in-logstash/113408/4 "2018-01-02T08:48:15Z")

</div>

Yes, of course.

---

<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:** [January 30, 2018, 8:48am UTC](https://discuss.elastic.co/t/is-it-possible-to-use-http-input-and-s3-input-plugin-together-in-logstash/113408/5 "2018-01-30T08:48:17Z")

</div>

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