Re: Problem with configuring index template via file

2014-03-17 Thread Sergey Zemlyanoy
Finally I managed to solve it! It was caused by wrong template path - /etc/elasticsearch/config/templates/sometemplate.json It should be /etc/elasticsearch/templates/sometemplate.json Thanks a lot! On Friday, March 14, 2014 8:41:26 PM UTC+2, Binh Ly wrote: > > I can think of 2 reasons: > > 1)

Re: Problem with configuring index template via file

2014-03-14 Thread Binh Ly
I can think of 2 reasons: 1) When you start elasticsearch, it is not pointing to the conf directory that your are using or 2) There is another template that overrides yours I'm thinking #1 is more likely. How are you running ES, i.e., how is it installed and ran? -- You received this messag

Re: Problem with configuring index template via file

2014-03-14 Thread Sergey Zemlyanoy
And I just tried to follow your advice: placed custom template in /etc/logstash/conf.d/templates/logstash2.json { "order" : 2, "template" : "logstash-*", "settings" : { "index.number_of_replicas" : "4" }, "mappings" : { } } then created a new index curl -XPUT localhos

Re: Problem with configuring index template via file

2014-03-14 Thread Sergey Zemlyanoy
So is it enough data in my custom template in order to expect that new index will absorb its settings? Should I point out template's name in a dedicated field? On Thursday, March 13, 2014 9:55:13 PM UTC+2, Binh Ly wrote: > > You won't see your template in the list API, but if you create a new in

Re: Problem with configuring index template via file

2014-03-13 Thread Binh Ly
You won't see your template in the list API, but if you create a new index named logstash-, it should take effect properly unless it is overriden by another template with a higher order. -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsu

Problem with configuring index template via file

2014-03-13 Thread Sergey Zemlyanoy
Dear all, In order to overwrite some index settings I created a custom template: { "logstash2" : { "order" : 1, "template" : "logstash-*", "settings" : { "index.number_of_replicas" : "0" } } } Template is placed in /etc/elasticsearch/config/templates/logstash2.json [root@logstash elastics