# Topbeat doesn't send metrics to Logstash in client-server architecture

**URL:** <https://discuss.elastic.co/t/topbeat-doesnt-send-metrics-to-logstash-in-client-server-architecture/44881>\
**Category:** Beats\
**Created:** [March 19, 2016, 4:26am UTC](https://discuss.elastic.co/t/topbeat-doesnt-send-metrics-to-logstash-in-client-server-architecture/44881 "2016-03-19T04:26:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)\
**Post date:** [March 19, 2016, 4:26am UTC](https://discuss.elastic.co/t/topbeat-doesnt-send-metrics-to-logstash-in-client-server-architecture/44881/1 "2016-03-19T04:26:52Z")

</div>

Hi all,

I just set up topbeat following the documentation. But I can't have metrics of my cluster in logstash. I use a client-server architecture (i.e a client with Topbeat configured and installed and a server with logstash and elasticsearch) The client and the server are not in the same subnet so I used domain name to reach logstash in the Server instance.

Here is my /etc/topbeat/topbeat.yml config file:

`input: period: 10 procs: [".*"] stats: system: true proc: true filesystem: true cpu_per_core: false output: logstash: hosts: ["topbeatdomainname:5044"] index: topbeat`  
And on logstash side, I just configured a logstash.conf file under /etc/logstash/conf.d/logstash.conf:

`input {  
beats {  
port =\> 5044  
}  
}

output {  
elasticsearch {  
hosts =\> "172.31.62.244:9200"  
manage\_template =\> false  
index =\> "%{[@metadata][beat]}-%{+YYYY.MM.dd}"  
document\_type =\> "%{[@metadata][type]}"  
}  
}  
`  
So nothing special. But what am I missing??

Many thanks!!

---

<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:** [March 19, 2016, 4:07pm UTC](https://discuss.elastic.co/t/topbeat-doesnt-send-metrics-to-logstash-in-client-server-architecture/44881/2 "2016-03-19T16:07:41Z")

</div>

Check your Topbeat logs for clues.

---

<div class="post-metadata">

**Author:** ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)\
**Post date:** [March 19, 2016, 4:22pm UTC](https://discuss.elastic.co/t/topbeat-doesnt-send-metrics-to-logstash-in-client-server-architecture/44881/3 "2016-03-19T16:22:11Z")

</div>

Thanks for responding. I don't know where are topbeat logs. I expected it to be on /var/log/topbeat but I don't have it here. Do you know where I can see them?

---

<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:** [March 19, 2016, 4:26pm UTC](https://discuss.elastic.co/t/topbeat-doesnt-send-metrics-to-logstash-in-client-server-architecture/44881/4 "2016-03-19T16:26:31Z")

</div>

If you start Topbeat with `-e` you'll get the logs to stderr. Otherwise see the logging configuration you have in topbeat.yml.

[https://www.elastic.co/guide/en/beats/topbeat/current/configuration-logging.html](https://www.elastic.co/guide/en/beats/topbeat/current/configuration-logging.html)

---

<div class="post-metadata">

**Author:** ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)\
**Post date:** [March 19, 2016, 4:39pm UTC](https://discuss.elastic.co/t/topbeat-doesnt-send-metrics-to-logstash-in-client-server-architecture/44881/5 "2016-03-19T16:39:53Z")

</div>

Thank you for the logging stuff. But there is no entry in the log file. I configured the logging and set the level to error. But the log file is not created when restarting the service. Do you think I need t use certificates in the yml file?

---

<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:** [March 19, 2016, 5:01pm UTC](https://discuss.elastic.co/t/topbeat-doesnt-send-metrics-to-logstash-in-client-server-architecture/44881/6 "2016-03-19T17:01:35Z")

</div>

Not unless you want to use SSL, which you AFAICT haven't configured. Maybe the configuration is incorrect. If you post it here (formatting the whole file as code with the `</>` toolbar button) maybe we can spot the error. Alternatively, use the `-e` option to get logs to stderr.

---

<div class="post-metadata">

**Author:** ![jstar](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jstar](https://discuss.elastic.co/u/jstar)\
**Post date:** [March 19, 2016, 5:30pm UTC](https://discuss.elastic.co/t/topbeat-doesnt-send-metrics-to-logstash-in-client-server-architecture/44881/7 "2016-03-19T17:30:45Z")

</div>

Ok issue solved as you said it was due to improper configuration. Also tls was not necessary. Thank you for your great help!!!

---

<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 5, 2017, 9:54pm UTC](https://discuss.elastic.co/t/topbeat-doesnt-send-metrics-to-logstash-in-client-server-architecture/44881/8 "2017-07-05T21:54:29Z")

</div>


