# Logstash json file on a different server

**URL:** <https://discuss.elastic.co/t/logstash-json-file-on-a-different-server/160497>\
**Category:** Logstash\
**Created:** [December 12, 2018, 8:16am UTC](https://discuss.elastic.co/t/logstash-json-file-on-a-different-server/160497 "2018-12-12T08:16:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![inandi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inandi/32/40801_2.png) [@inandi](https://discuss.elastic.co/u/inandi)\
**Post date:** [December 12, 2018, 8:16am UTC](https://discuss.elastic.co/t/logstash-json-file-on-a-different-server/160497/1 "2018-12-12T08:16:52Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![Eniqmatic](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Eniqmatic](https://discuss.elastic.co/u/Eniqmatic)\
**Post date:** [December 12, 2018, 8:22am UTC](https://discuss.elastic.co/t/logstash-json-file-on-a-different-server/160497/2 "2018-12-12T08:22:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![inandi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inandi/32/40801_2.png) [@inandi](https://discuss.elastic.co/u/inandi)\
**Post date:** [December 12, 2018, 8:24am UTC](https://discuss.elastic.co/t/logstash-json-file-on-a-different-server/160497/3 "2018-12-12T08:24:09Z")

</div>

> [@Eniqmatic](#):
>
> http\_poller

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

---

<div class="post-metadata">

**Author:** ![Eniqmatic](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Eniqmatic](https://discuss.elastic.co/u/Eniqmatic)\
**Post date:** [December 12, 2018, 8:34am UTC](https://discuss.elastic.co/t/logstash-json-file-on-a-different-server/160497/4 "2018-12-12T08:34:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 9, 2019, 8:34am UTC](https://discuss.elastic.co/t/logstash-json-file-on-a-different-server/160497/5 "2019-01-09T08:34:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
