# Syslog index

**URL:** https://discuss.elastic.co/t/syslog-index/46654
**Category:** Elasticsearch
**Created:** [April 7, 2016, 9:43am UTC](https://discuss.elastic.co/t/syslog-index/46654 "2016-04-07T09:43:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![brayndasilva](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@brayndasilva](https://discuss.elastic.co/u/brayndasilva)
#### Post date: [April 7, 2016, 9:43am UTC](https://discuss.elastic.co/t/syslog-index/46654/1 "2016-04-07T09:43:05Z")

</div>

Hi,

I currently have one index with fields for Syslog and NETFlow at the same time and can visualize them both on the Discover tab on Kibana.

Would I be able to create a seperate index for just my incoming Syslogs? I tried looking up how to make a index and managed to create a test one, but I don't understand how I can tell that it's gonna process Syslogs and have the required fields/template for it.

Because my test index is just empty right now. I can select it on Kibana when creating a new index, but it has no time fields or whatever to select.

Can someone guide me?

---

<div class="post-metadata">

### Author: ![mourlos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mourlos/32/10788_2.png) [@mourlos](https://discuss.elastic.co/u/mourlos)
#### Post date: [April 7, 2016, 3:43pm UTC](https://discuss.elastic.co/t/syslog-index/46654/2 "2016-04-07T15:43:59Z")

</div>

You can split them based on their hosts. I 've done something similar based on the type.

`
output {
	if [type] == "filesystem" {
		elasticsearch { 
			hosts => ["localhost:9200"]
			index => ["logstash-%{+YYY.MM.dd}"]
		}
	}
	else if [type] == "http" {
		elasticsearch {
			hosts => ["localhost:9200"]
			index => ["packetbeat-%{+YYYY.MM.dd}"]
		}
	}
	else if [type] == "syslog" {
		elasticsearch {
			hosts => ["localhost:9200"]
			index => ["filebeat-%{+YYYY.MM.dd}"]
		}
	}
	else {
		elasticsearch {
			hosts => ["localhost:9200"]
			index => ["topbeat-%{+YYYY.MM.dd}"]
		}
	}
}
`

Of course you can use any name you want for the indexing.

Hope this helps.

---

<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, 11:01pm UTC](https://discuss.elastic.co/t/syslog-index/46654/3 "2017-07-05T23:01:26Z")

</div>


