# Topbeat server configuration question

**URL:** https://discuss.elastic.co/t/topbeat-server-configuration-question/57271
**Category:** Beats
**Created:** [August 4, 2016, 6:32pm UTC](https://discuss.elastic.co/t/topbeat-server-configuration-question/57271 "2016-08-04T18:32:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Diggy](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@Diggy](https://discuss.elastic.co/u/Diggy)
#### Post date: [August 4, 2016, 6:32pm UTC](https://discuss.elastic.co/t/topbeat-server-configuration-question/57271/1 "2016-08-04T18:32:07Z")

</div>

Hello, all.

I've just installed Topbeat on a node and, of course, want to capture data and view it in Kibana. I do have it working (topbeat.yml configured to use logstash as output), but all the Topbeat data end up in the logstash-\* indices. I'd like to get the Topbeat data into topbeat-\* indices, but everything else into logstash-\*. Can this be done? If so, I take it I have to set up it up in my logstash output configuration? How?

Many thanks.

---

<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: [August 4, 2016, 6:35pm UTC](https://discuss.elastic.co/t/topbeat-server-configuration-question/57271/2 "2016-08-04T18:35:54Z")

</div>

> [@Diggy](#):
>
> I take it I have to set up it up in my logstash output configuration? How?

Here's how: [Installing Logstash (Optional) | Beats Platform Reference [1.2] | Elastic](https://www.elastic.co/guide/en/beats/libbeat/1.2/logstash-installation.html#logstash-setup)

---

<div class="post-metadata">

### Author: ![Diggy](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@Diggy](https://discuss.elastic.co/u/Diggy)
#### Post date: [August 4, 2016, 6:46pm UTC](https://discuss.elastic.co/t/topbeat-server-configuration-question/57271/3 "2016-08-04T18:46:43Z")

</div>

Thanks, Andrew.

I've read that doc, but in my setup, it doesn't work. I have three config files: 02-input.conf, 15-filters.conf, and 30-elasticsearch-output.conf. 02-input.conf has the beats input section in it:

input {  
beats {  
port =\> 5044  
}  
}

30-elasticsearch-output.conf has the following output stanza:

output {  
elasticsearch { hosts =\> ["10.0.101.101:9200"] }  
stdout { codec =\> rubydebug }  
}

As I understand it, since no index is specified, logstash-\* is used by default. That's fine for everything but Topbeat, which I'd like to use topbeat-\* indices. That said, how do I specify that Topbeat specifically use the topbeat-\* indices.

Hope I'm clear about what I'm after.

---

<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: [August 4, 2016, 7:24pm UTC](https://discuss.elastic.co/t/topbeat-server-configuration-question/57271/4 "2016-08-04T19:24:26Z")

</div>

You can use a conditional statement around your outputs in order to have two different output paths. Here's a great [example](https://discuss.elastic.co/t/coexistence-with-logstash-forwarder/33632/2?u=andrewkroh) from Magnus.

Reference: [Logstash | Event Dependent Configuration](https://www.elastic.co/guide/en/logstash/2.3/event-dependent-configuration.html#conditionals)

---

<div class="post-metadata">

### Author: ![Diggy](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@Diggy](https://discuss.elastic.co/u/Diggy)
#### Post date: [August 4, 2016, 7:46pm UTC](https://discuss.elastic.co/t/topbeat-server-configuration-question/57271/5 "2016-08-04T19:46:14Z")

</div>

Andrew,

That worked a treat - thank you so much! And to Magnus, too!

Diggy

---

<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: [August 25, 2016, 6:32pm UTC](https://discuss.elastic.co/t/topbeat-server-configuration-question/57271/6 "2016-08-25T18:32:14Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
