# Simple file uploading using Logstash

**URL:** <https://discuss.elastic.co/t/simple-file-uploading-using-logstash/724>\
**Category:** Logstash\
**Created:** [May 15, 2015, 12:12am UTC](https://discuss.elastic.co/t/simple-file-uploading-using-logstash/724 "2015-05-15T00:12:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hemanth](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@hemanth](https://discuss.elastic.co/u/hemanth)\
**Post date:** [May 15, 2015, 12:12am UTC](https://discuss.elastic.co/t/simple-file-uploading-using-logstash/724/1 "2015-05-15T00:12:18Z")

</div>

Hi,

I have a requirement to upload files from Logstash machine to a remote machine, without any processing. Input is a file, no filtering required, output is upload entire file to remote machine. Can I do that ?

--Hemanth

---

<div class="post-metadata">

**Author:** ![Joshua\_Rich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshua_rich/32/44953_2.png) [@Joshua\_Rich](https://discuss.elastic.co/u/Joshua_Rich)\
**Post date:** [May 15, 2015, 7:38am UTC](https://discuss.elastic.co/t/simple-file-uploading-using-logstash/724/2 "2015-05-15T07:38:07Z")

</div>

Hi @hemanth,

This kind of sounds like you just need to transfer files between hosts, which can be done much more simply and efficiently without Logstash. Which begs the question, why did you pick Logstash to try to do this?

---

<div class="post-metadata">

**Author:** ![hemanth](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@hemanth](https://discuss.elastic.co/u/hemanth)\
**Post date:** [May 15, 2015, 8:10am UTC](https://discuss.elastic.co/t/simple-file-uploading-using-logstash/724/3 "2015-05-15T08:10:23Z")

</div>

Hi @Joshua_Rich,

Thanks for your quick response.

Primarily I'm using Logstash for my logs (syslog) collection. In addition to that I have another requirement, which needs scanning a folder and upload the files to remote server.

Instead of using another tool, can I leverage on Logstash for 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:** [May 15, 2015, 11:50am UTC](https://discuss.elastic.co/t/simple-file-uploading-using-logstash/724/4 "2015-05-15T11:50:42Z")

</div>

What's on the receiving side, Logstash? You can probably get away with a file input on the sending side and a file output on the receiving side. For the latter you may want to set the message\_format parameter to %{message} so it doesn't include any timestamp or similar.

---

<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:39am UTC](https://discuss.elastic.co/t/simple-file-uploading-using-logstash/724/5 "2017-07-06T05:39:48Z")

</div>

Closed on July 6, 2017, 5:39am UTC


