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.