Logstash is not creating the Index form the template index_not_found_exception


(Selvaganapathy Duraiswamy) #1

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

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 .


(system) #2

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