# Sending data to logstash from remote machine

**URL:** <https://discuss.elastic.co/t/sending-data-to-logstash-from-remote-machine/304192>\
**Category:** Logstash\
**Created:** [May 8, 2022, 2:56pm UTC](https://discuss.elastic.co/t/sending-data-to-logstash-from-remote-machine/304192 "2022-05-08T14:56:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![safaeaz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/safaeaz/32/105379_2.png) [@safaeaz](https://discuss.elastic.co/u/safaeaz)\
**Post date:** [May 8, 2022, 2:56pm UTC](https://discuss.elastic.co/t/sending-data-to-logstash-from-remote-machine/304192/1 "2022-05-08T14:56:18Z")

</div>

i have logstash running on a different machine and want to read csv files from anothere mechine.

Is there a way to set the ip in file input of config file?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [May 8, 2022, 3:45pm UTC](https://discuss.elastic.co/t/sending-data-to-logstash-from-remote-machine/304192/2 "2022-05-08T15:45:57Z")

</div>

No, the `file` input only works for local files on the same machine that is running Logstash.

In your case you may use [filebeat](https://www.elastic.co/beats/filebeat) to read the file in the remote machine and send it to the logstash machine.

---

<div class="post-metadata">

**Author:** ![ibra\_013](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ibra_013/32/104827_2.png) [@ibra\_013](https://discuss.elastic.co/u/ibra_013)\
**Post date:** [May 8, 2022, 3:49pm UTC](https://discuss.elastic.co/t/sending-data-to-logstash-from-remote-machine/304192/3 "2022-05-08T15:49:05Z")

</div>

Hi Leandro,

what about this;

> **[File input plugin | Logstash Reference \[8.2\] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#_reading_from_remote_network_volumes)**

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 8, 2022, 3:52pm UTC](https://discuss.elastic.co/t/sending-data-to-logstash-from-remote-machine/304192/4 "2022-05-08T15:52:41Z")

</div>

Hi @ibra_013

Well yes (maybe) .. if you can mount remote filesystems to the local machine then yes / maybe (with a lot of cautions as the doc you linked to speaks to) ... but I don't think that was what the OP was asking.

As @leandrojmp was describing ...

`Filebeat (1 to Many Remote) -> Logstash -> Elasticsearch`

is a pretty common architecture

---

<div class="post-metadata">

**Author:** ![ibra\_013](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ibra_013/32/104827_2.png) [@ibra\_013](https://discuss.elastic.co/u/ibra_013)\
**Post date:** [May 8, 2022, 3:58pm UTC](https://discuss.elastic.co/t/sending-data-to-logstash-from-remote-machine/304192/5 "2022-05-08T15:58:58Z")

</div>

Hi Stephen,

it can be used but at your own risk, not recommended, understood.

---

<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:** [June 5, 2022, 3:59pm UTC](https://discuss.elastic.co/t/sending-data-to-logstash-from-remote-machine/304192/6 "2022-06-05T15:59:20Z")

</div>

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