# Logstash data won't read new template

**URL:** https://discuss.elastic.co/t/logstash-data-wont-read-new-template/146988
**Category:** Logstash
**Created:** [September 2, 2018, 5:26pm UTC](https://discuss.elastic.co/t/logstash-data-wont-read-new-template/146988 "2018-09-02T17:26:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Yash\_Sharma](https://avatars.discourse-cdn.com/v4/letter/y/ecc23a/32.png) [@Yash\_Sharma](https://discuss.elastic.co/u/Yash_Sharma)
#### Post date: [September 2, 2018, 5:26pm UTC](https://discuss.elastic.co/t/logstash-data-wont-read-new-template/146988/1 "2018-09-02T17:26:40Z")

</div>

I am creating a new template in my elastic search using kibana dev console.

```
PUT _template/template_1
{
  "index_patterns": ["ubq-*"],
  "settings": {
    "number_of_shards": 1
  },
  "mappings": {
    "_doc": {
      
      "properties": {
          "Index": {
          "type": "float",
          "index": "true"
        
        },
          "Category":{
            "type": "keyword",
            "index": "true"
          
          },
          "Scat":{
            "type": "keyword",
            "index": "true"
          },
           "Sscat":{
            "type": "keyword",
            "index": "true"
          }, 
          "Products":{
            "type": "keyword",
            "index": "true"
          },
          "Measure":{
            "type": "keyword",
            "index": "true"
          },
          "Price":{
            "type": "float",
            "index": "true"
          },
          "Description":{
            "type": "keyword",
            "index": "true"
          },
          "Gst":{
            "type": "float",
            "index": "true"
          }
      }
    }
  }
}

```

I am using the following config file to upload data to elastic

```
input{
	file{
	path => "/Users/apple/Desktop/data/data.csv"
	start_position =>"beginning"
	
	}
}
filter{
	csv{
	separator => ","
	columns => ["Index", "Category", "Scat", "Sscat", "Products", "Measure", "Price", "Description", "Gst"]
	}
	mutate{convert => ["Index", "float"] }
	mutate{convert => ["Price", "float"] }
	mutate{convert => ["Gst", "float"] }

}
output{
	elasticsearch{
		template_overwrite => true
		hosts => "host"
		user => "elastic"
		password => "pass"
		index => "ubq-gk"
		}

}

```

The new index is not getting created at all even though i am not getting error whil running -f logstash command.

I am trying to make sure that every new index which has ubq- in its name should get the above mapping.

---

<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: [September 3, 2018, 6:10am UTC](https://discuss.elastic.co/t/logstash-data-wont-read-new-template/146988/2 "2018-09-03T06:10:59Z")

</div>

You've probably processed data.csv before. Delete the sincedb file or set the file input's `sincedb_path` option to "/dev/null". This is an extremely common question.

---

<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: [October 1, 2018, 6:11am UTC](https://discuss.elastic.co/t/logstash-data-wont-read-new-template/146988/3 "2018-10-01T06:11:07Z")

</div>

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