Skip to content

EOSLaoMao/elasticsearch-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elasticsearch-node

Create & Delete Index Templates

If you want to customize mapping or setting of indices, just modify json files in the templates directory.

Running index-tempate.sh script to create or delete indice templates.

# e.g.
./index-templates.sh --action create --dir ./templates --url http://localhost:9200
./index-templates.sh --action delete --dir ./templates --url http://localhost:9200

Curator

Curator is a great tool for indice management. Make sure you install the correct version of Curator, detail: Version Compatibility

Config elasticsearch url and log file path in curator/config.yml.

# create indices
curator --config ./curator/config.yml ./curator/create-index-actions.yml

# delete indices
curator --config ./curator/config.yml ./curator/delete-index-actions.yml

# rollover indices
curator --config ./curator/config.yml ./curator/rollover-index-actions.yml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published