Example for remote path in logstash conf file

Hello All,
Can someone give me pls example how to specify remote path in logstash conf file?
i mean in section :input {
file {
path => REMOTE PATH (to other server in linux environment)

You mean like NFS?

Hi, i need to specify the mongo db log location, so yes like NFS

Well unless the path has been mounted locally, using something like NFS, there is no way.

Sorry , didn't get you . Can you pls explain?

You cannot read a remote file from a host.

so how to accomplish it?

Install filebeat on the remote host and then ship the data over to Logstash.

Oh,great, filebeat .missed that point ,tnx