# Logstash is not populating custom index

**URL:** https://discuss.elastic.co/t/logstash-is-not-populating-custom-index/110388
**Category:** Logstash
**Created:** [December 5, 2017, 3:47pm UTC](https://discuss.elastic.co/t/logstash-is-not-populating-custom-index/110388 "2017-12-05T15:47:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rromanovic](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@rromanovic](https://discuss.elastic.co/u/rromanovic)
#### Post date: [December 5, 2017, 3:47pm UTC](https://discuss.elastic.co/t/logstash-is-not-populating-custom-index/110388/1 "2017-12-05T15:47:16Z")

</div>

Hi all,  
I have a problem when I try to populate custom index.

First, I create index using following syntax:  
PUT testIndex  
{  
"mappings": {  
"txs": {  
"properties": {  
"date": {  
"type": "date",  
"format": "dd-MM-yyyy"  
},  
"procedure": {  
"type": "text"  
}  
}  
}  
}  
}

And after that I add new index in Kibana using "Create index pattern".

Output plugin looks like this:

output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "testIndex"  
}  
}

And then when I start logstash, it happens nothing. Index is not populated, but I cannot see any error.  
But when I delete index I've created and run logstash again, it seems that logstash is creating new index named "testIndex" with default field types and populating it.

I'm pretty much confused right now.

Thanks in advance!

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [December 5, 2017, 4:21pm UTC](https://discuss.elastic.co/t/logstash-is-not-populating-custom-index/110388/2 "2017-12-05T16:21:06Z")

</div>

Check your Logstash logs. Index names in Elasticsearch must be lowercased, so try lowercasing yours and see if that makes a difference.

---

<div class="post-metadata">

### Author: ![rromanovic](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@rromanovic](https://discuss.elastic.co/u/rromanovic)
#### Post date: [December 7, 2017, 10:48am UTC](https://discuss.elastic.co/t/logstash-is-not-populating-custom-index/110388/3 "2017-12-07T10:48:12Z")

</div>

Lowercasing index name helped.

Thank you!

---

<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: [January 4, 2018, 10:48am UTC](https://discuss.elastic.co/t/logstash-is-not-populating-custom-index/110388/4 "2018-01-04T10:48:13Z")

</div>

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