Logstash remote file input


I have a log file in a Machine1 (/home/log/logfile.log) and a logstash in Machine2.
How can I do to read remote logfile ?
I tried with :

input {
file {
path => "IP address/home/log/logfile.log"
start_position => "beginning"

Is this correct or there are other tools to use ?

Best regards,

Logstash can only read files in mounted file systems. In this case you'd have to mount the file system containing /home/log/logfile.log from the other machine via e.g. NFS. One normally installs a shipper (like Logstash or Filebeat) on each machine that has logs that should be collected.

Hope this thread is more related to my query.

No! Please start a new thread (in the Filebeat category) for your questions.