# Logstash is not creating the Index form the template index\_not\_found\_exception

**URL:** https://discuss.elastic.co/t/logstash-is-not-creating-the-index-form-the-template-index-not-found-exception/69614
**Category:** Logstash
**Created:** [December 20, 2016, 8:13pm UTC](https://discuss.elastic.co/t/logstash-is-not-creating-the-index-form-the-template-index-not-found-exception/69614 "2016-12-20T20:13:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ganapathydselva](https://avatars.discourse-cdn.com/v4/letter/g/a6a055/32.png) [@ganapathydselva](https://discuss.elastic.co/u/ganapathydselva)
#### Post date: [December 20, 2016, 8:13pm UTC](https://discuss.elastic.co/t/logstash-is-not-creating-the-index-form-the-template-index-not-found-exception/69614/1 "2016-12-20T20:13:57Z")

</div>

HI ,  
Logstash is not creating the Index form the default template or the temple name provided in Elasticsearch .

i am trying to process my logs with custom template svlogs but Inex is not getting created on the go based on my template .i am facing below error

`"error"=>{"type"=>"index_not_found_exception", "reason"=>"no such index", "resource.type"=>"index_expression", "resource.id"=>"svlogs-2016.12.29", "index_uuid"=>"_na_", "index"=>"svlogs-2016.12.29"}`

My output is

> ```
> output {
> elasticsearch {
> hosts => ["192.168.254.129:9200"]
> user => "logstash"
> password => "selva123"
> template_name => "svlogs"
> index => "svlogs-%{+YYYY.MM.dd}"
> }}
> 
> ```

my template is :

```
curl -XPUT '192.168.254.129:9200/_template/svlogs?pretty' -d'
{
  "template": "svlogs*",
  "settings": {
    "number_of_shards": 1
  },
  "mappings" : {
  "_default_" : {
   "properties" : {
    "MSGID" : {"type": "integer" },
    "debug" : {"type": "string" , "index" : "not_analyzed" },
    "Error" : { "type" : "string", "index" : "not_analyzed" },
    "client" : { "type" : "string" },
    "eno" : { "type" : "integer" },
    "login" : { "type" : "string" },
    "message" : { "type" : "string" },
    "pid" : { "type" : "integer" },
    "process" : { "type" : "string" },
    "sv_date" : { "type": "date", "format": "EEE MMM dd HH:mm:SS yyyy"},
    "type" : { "type" : "string" }
   }
  }
 }
}'

```

i was expecting logstash will create teh Index based on the temple given

Actually it was working till i installed x-pack . Theni have resolved all my privilege related issues , Now i need to create the index manually to make my logstash work . i tried added managae\_temaple as "false" still no help .

Please guide Thanks in advance .

---

<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 17, 2017, 8:14pm UTC](https://discuss.elastic.co/t/logstash-is-not-creating-the-index-form-the-template-index-not-found-exception/69614/2 "2017-01-17T20:14:04Z")

</div>

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