Logstash json file on a different server

my project and ES are on different server.

my logstash conf file

input {
  file {
    path => "/home/es/templetes/review_data.json"
    start_position => "beginning"
    sincedb_path => "/dev/null"
    codec => "json"        
  }
}

filter { }

output {
  if [reviewId] != "" {
    stdout { codec => rubydebug }
  }
}

But my current situation is , i can not write review_data.json on the ES server. so I am writing the file on my project server. So i have to acceess review_data.json file (in project server). I am expecting something like this

input {
  file {
    path => "http://projectServerIp/path/review_data.json"
    start_position => "beginning"
    sincedb_path => "/dev/null"
    codec => "json"        
  }
}

filter { }

output {
  if [reviewId] != "" {
    stdout { codec => rubydebug }
  }
}

thanks advance.

I'm not entirely sure the file plugin can work over http, only local file paths. Try the http_poller plugin instead, it can visit URLs.

ok i will check, thanks for reply. What about filebeat, does that work? i have no idea about filebeat.

Filebeat will work if you can install it on the source server yes.