# Read log files from remote location in Linux

**URL:** <https://discuss.elastic.co/t/read-log-files-from-remote-location-in-linux/79935>\
**Category:** Logstash\
**Created:** [March 24, 2017, 6:21pm UTC](https://discuss.elastic.co/t/read-log-files-from-remote-location-in-linux/79935 "2017-03-24T18:21:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![netaibiswas](https://avatars.discourse-cdn.com/v4/letter/n/5f9b8f/32.png) [@netaibiswas](https://discuss.elastic.co/u/netaibiswas)\
**Post date:** [March 24, 2017, 6:21pm UTC](https://discuss.elastic.co/t/read-log-files-from-remote-location-in-linux/79935/1 "2017-03-24T18:21:08Z")

</div>

Hi,

I was trying to read log file using Logstash I couldn’t make it working. I have set up Logstash and application server in different Linux box.

I have configured something like this, can you please help me out figuring out the issue.

input {  
file {  
path =\> "[//xx.x.xxx.xx/logs/app.log](https://xx.x.xxx.xx/logs/app.log)"  
type =\> "log4j"  
}  
}

# here xx.x.xxx.xx is the host of the application server which is different than Logstash server.

---

<div class="post-metadata">

**Author:** ![Nestor\_Manrique](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nestor_manrique/32/70072_2.png) [@Nestor\_Manrique](https://discuss.elastic.co/u/Nestor_Manrique)\
**Post date:** [March 24, 2017, 6:30pm UTC](https://discuss.elastic.co/t/read-log-files-from-remote-location-in-linux/79935/2 "2017-03-24T18:30:46Z")

</div>

Hello,

The file input plugin does not support remote locations. If you want to retrieve log data from other servers you could use the beat input plugin, after setting up filebeat in the remote servers.

You can check [filebeat documentation](https://www.elastic.co/guide/en/beats/filebeat/5.2/filebeat-overview.html) and the [beats input documentation](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-beats.html).

Cheers,

---

<div class="post-metadata">

**Author:** ![netaibiswas](https://avatars.discourse-cdn.com/v4/letter/n/5f9b8f/32.png) [@netaibiswas](https://discuss.elastic.co/u/netaibiswas)\
**Post date:** [March 24, 2017, 6:49pm UTC](https://discuss.elastic.co/t/read-log-files-from-remote-location-in-linux/79935/3 "2017-03-24T18:49:05Z")

</div>

> [@Nestor\_Manrique](#):
>
> g up filebeat in the remote serv

Thanks for the information.

---

<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:** [April 21, 2017, 6:49pm UTC](https://discuss.elastic.co/t/read-log-files-from-remote-location-in-linux/79935/4 "2017-04-21T18:49:11Z")

</div>

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