# How file input plugin work?

**URL:** <https://discuss.elastic.co/t/how-file-input-plugin-work/142703>\
**Category:** Logstash\
**Created:** [August 2, 2018, 7:46am UTC](https://discuss.elastic.co/t/how-file-input-plugin-work/142703 "2018-08-02T07:46:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [August 2, 2018, 7:46am UTC](https://discuss.elastic.co/t/how-file-input-plugin-work/142703/1 "2018-08-02T07:46:09Z")

</div>

Hello All,

Currently i am using filebeat agent to forward the logs from file to logstash server. But i want to know how file input plugin work in logstash? I am confused how it will fetch the logs from remote server? If we need to make changes in remote server then what are those configuration changes? As per my knowledge we must to tell remote server where he will forward the logs like IP and Port.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 2, 2018, 7:48am UTC](https://discuss.elastic.co/t/how-file-input-plugin-work/142703/2 "2018-08-02T07:48:14Z")

</div>

> Currently i am using filebeat agent to forward the logs from file to logstash server.

That's good. You should continue doing so.

> I am confused how it will fetch the logs from remote server?

The file input can only read files from file systems mounted on the same machine where Logstash runs.

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [August 2, 2018, 8:25am UTC](https://discuss.elastic.co/t/how-file-input-plugin-work/142703/3 "2018-08-02T08:25:49Z")

</div>

Hello Magnus,

Thank you for your quick response and to clearing my doubt.

---

<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:** [August 30, 2018, 8:25am UTC](https://discuss.elastic.co/t/how-file-input-plugin-work/142703/4 "2018-08-30T08:25:50Z")

</div>

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