Simple file uploading using Logstash


(hemanth) #1

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


(Joshua Rich) #2

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?


(hemanth) #3

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 ?


(Magnus B├Ąck) #4

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.


(system) #5