# Pipe input plugin for a remote logfile

**URL:** <https://discuss.elastic.co/t/pipe-input-plugin-for-a-remote-logfile/136323>\
**Category:** Logstash\
**Created:** [June 18, 2018, 2:26pm UTC](https://discuss.elastic.co/t/pipe-input-plugin-for-a-remote-logfile/136323 "2018-06-18T14:26:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeenon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zeenon/32/24883_2.png) [@zeenon](https://discuss.elastic.co/u/zeenon)\
**Post date:** [June 18, 2018, 2:26pm UTC](https://discuss.elastic.co/t/pipe-input-plugin-for-a-remote-logfile/136323/1 "2018-06-18T14:26:33Z")

</div>

Hi,  
I have to collect logs from a remote AIX server without permission to install a remote logstash  
So, is it correct to use the following command in the pipe input plugin ?  
command =\> "ssh myuser@rs6000 -c 'tail -f /var/log/log-to-inspect.log'"

at 00:00, there is a log rotation on the AIX server and I am afraid that yhat my script is out oht cope. How to deal with it ?  
thanks for your tips

---

<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:** [June 18, 2018, 6:35pm UTC](https://discuss.elastic.co/t/pipe-input-plugin-for-a-remote-logfile/136323/2 "2018-06-18T18:35:23Z")

</div>

Yeah, log rotations are going to be a problem. Also, what if the SSH connection is broken?

---

<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:** [July 16, 2018, 6:35pm UTC](https://discuss.elastic.co/t/pipe-input-plugin-for-a-remote-logfile/136323/3 "2018-07-16T18:35:29Z")

</div>

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