# Logstash output to EC2

**URL:** <https://discuss.elastic.co/t/logstash-output-to-ec2/41628>\
**Category:** Logstash\
**Created:** [February 12, 2016, 3:16pm UTC](https://discuss.elastic.co/t/logstash-output-to-ec2/41628 "2016-02-12T15:16:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amerikiwi](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@Amerikiwi](https://discuss.elastic.co/u/Amerikiwi)\
**Post date:** [February 12, 2016, 3:16pm UTC](https://discuss.elastic.co/t/logstash-output-to-ec2/41628/1 "2016-02-12T15:16:58Z")

</div>

How to you set up Logstash to output to an ec2 instance in AWS? I want to use Log stash to grab input log files from S3 bucket and send the output cvs files to an eC2 instance via Logstash. Basically use Logstash as a data pipeline (or log forwarder) using the mechanism to keep track of the new files in S3 and using the scheduler to send new files every 10 minutes to ec2. How to config Logstash to do this?

---

<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:** [February 13, 2016, 11:28am UTC](https://discuss.elastic.co/t/logstash-output-to-ec2/41628/2 "2016-02-13T11:28:39Z")

</div>

Use an s3 input for reading the input files, a csv filter for parsing the files, and whatever output you need for your EC2 instance. What do you intend to run on the EC2 machine to receive the messages?

---

<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 6, 2017, 5:11am UTC](https://discuss.elastic.co/t/logstash-output-to-ec2/41628/3 "2017-07-06T05:11:42Z")

</div>


