# Topbeat immediately exiting

**URL:** https://discuss.elastic.co/t/topbeat-immediately-exiting/53706
**Category:** Beats
**Created:** [June 22, 2016, 7:52pm UTC](https://discuss.elastic.co/t/topbeat-immediately-exiting/53706 "2016-06-22T19:52:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![apomerenk](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@apomerenk](https://discuss.elastic.co/u/apomerenk)
#### Post date: [June 22, 2016, 7:52pm UTC](https://discuss.elastic.co/t/topbeat-immediately-exiting/53706/1 "2016-06-22T19:52:33Z")

</div>

I am trying to send topbeat logs from a Centos7 on virtualbox to an ELK stack running on the local machine. When I run sudo /etc/init.d/topbeat start from the terminal, I get the message:

Starting topbeat (via systemctl): [OK]

with no other logs and it returns immediately to the command line. I have run topbeat successfully on the local machine (Mac OSX) and have logged CPU usage and such all the way to Kibana. Any idea why Topbeat is immediately exiting?

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [June 22, 2016, 9:07pm UTC](https://discuss.elastic.co/t/topbeat-immediately-exiting/53706/2 "2016-06-22T21:07:12Z")

</div>

The [Getting Started](https://www.elastic.co/guide/en/beats/topbeat/current/topbeat-configuration.html) guide recommends that you test the configuration before starting the service. Did you do a config test?

If the config test passes, then run Topbeat in the foreground instead of as a service and see if there are any errors. See [Troubleshooting](https://www.elastic.co/guide/en/beats/topbeat/current/enable-topbeat-debugging.html).

---

<div class="post-metadata">

### Author: ![apomerenk](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@apomerenk](https://discuss.elastic.co/u/apomerenk)
#### Post date: [June 23, 2016, 1:04pm UTC](https://discuss.elastic.co/t/topbeat-immediately-exiting/53706/3 "2016-06-23T13:04:42Z")

</div>

Thanks, I did not realize it was running in the background. It is now sending logs to logstash, but outside of the VM, on the local machine, logstash is not receiving any of the events that are being sent. In my topbeat.yml file the only output lines I have are:

logstash:  
# The Logstash hosts  
hosts: ["ip of host machine and port number 5044"]

```
# Number of workers per Logstash host.
worker: 1

```

In the logstash .conf file the only input lines I have are:

input {  
beats{  
port =\> 5044  
}  
}

I am not sure what else I need to complete the pipeline.

---

<div class="post-metadata">

### Author: ![apomerenk](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@apomerenk](https://discuss.elastic.co/u/apomerenk)
#### Post date: [June 23, 2016, 2:50pm UTC](https://discuss.elastic.co/t/topbeat-immediately-exiting/53706/4 "2016-06-23T14:50:19Z")

</div>

Turns out that I had not set the time on the VM so I was looking at the current time in Kibana but the timestamp of the logs was hours in the future so it was not showing up. Thanks for the help!

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [June 30, 2016, 5:48am UTC](https://discuss.elastic.co/t/topbeat-immediately-exiting/53706/5 "2016-06-30T05:48:17Z")

</div>


