# Not able to run filebeat instance remotely

**URL:** <https://discuss.elastic.co/t/not-able-to-run-filebeat-instance-remotely/90493>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 22, 2017, 3:49pm UTC](https://discuss.elastic.co/t/not-able-to-run-filebeat-instance-remotely/90493 "2017-06-22T15:49:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raazeev64](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@raazeev64](https://discuss.elastic.co/u/raazeev64)\
**Post date:** [June 22, 2017, 3:49pm UTC](https://discuss.elastic.co/t/not-able-to-run-filebeat-instance-remotely/90493/1 "2017-06-22T15:49:30Z")

</div>

I have been trying to run filebeat remotely spawning it through a ssh session.  
Below is the call I use to invoke it

```
ssh user@host 'cd ./filebeat-5.3.2; ./filebeat -e -c ./filebeat.yml & disown'

```

This does run filebeat but is killed as the ssh session closes.  
Below is the script I use to spawn a logstash process

```
ssh username@host 'cd ./logstash-2.3.2; ./bin/logstash -f ./myConf.conf & disown'

```

The filebeat process does not survive after the ssh session is terminated. Whereas the logstash process survives which runs as a java process.

How is this happening?

Following are some question which will help solve my purpose. But I am not able to get around the above behaviour.

[Does getting disconnected from an SSH session kill your programs?](https://serverfault.com/questions/463366/does-getting-disconnected-from-an-ssh-session-kill-your-programs)

> <https://stackoverflow.com/questions/3430330/best-way-to-make-a-shell-script-daemon>

---

<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 20, 2017, 3:49pm UTC](https://discuss.elastic.co/t/not-able-to-run-filebeat-instance-remotely/90493/2 "2017-07-20T15:49:58Z")

</div>

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