KeithTt  
                (Keith Tt)
               
                 
              
                  
                    August 5, 2017,  6:31pm
                   
                   
              1 
               
             
            
              ELK version: 5.5.1
I referred to this page https://www.elastic.co/guide/en/elasticsearch/reference/5.5/indices-update-settings.html   and changed a index's number of replica, and it worked, but how to add it to the config file  to make it valid for all new indices?
Referred to this page https://www.elastic.co/guide/en/elasticsearch/reference/5.5/index-modules.html#dynamic-index-settings  , I add
index.number_of_shards: 7
index.number_of_replicas: 2
 
to elasticsearch.yml, but it didn't work...ES can't startup...
             
            
               
               
              1 Like 
            
            
           
          
            
              
                dadoonet  
                (David Pilato)
               
              
                  
                    August 5, 2017,  7:39pm
                   
                   
              2 
               
             
            
              Use index templates instead.
             
            
               
               
               
            
            
           
          
            
              
                KeithTt  
                (Keith Tt)
               
              
                  
                    August 5, 2017,  7:58pm
                   
                   
              3 
               
             
            
              Hello, is there a guide about how to set this using template...?
             
            
               
               
               
            
            
           
          
            
              
                dadoonet  
                (David Pilato)
               
                 
              
                  
                    August 5, 2017,  8:27pm
                   
                   
              4 
               
             
            
            
               
               
              1 Like 
            
            
           
          
            
              
                KeithTt  
                (Keith Tt)
               
              
                  
                    August 7, 2017,  8:54am
                   
                   
              5 
               
             
            
              Thanks, and how to use template to modify this value? 
             
            
               
               
               
            
            
           
          
            
              
                dadoonet  
                (David Pilato)
               
              
                  
                    August 7, 2017,  9:07am
                   
                   
              6 
               
             
            
              Should be something like:
PUT _template/all
{
  "template": "*",
  "settings": {
    "number_of_shards": 7,
    "number_of_replicas": 2
  }
}
 
             
            
               
               
              11 Likes 
            
            
           
          
            
              
                system  
                (system)
                  Closed 
               
              
                  
                    September 4, 2017,  9:07am
                   
                   
              7 
               
             
            
              This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.