Guest User

Untitled

a guest
Jul 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. curl -X GET "localhost:9200/_cat/templates?v&s=name"
  2. logstash [logstash-*] 0 60001
  3. logstash-index-template [.logstash] 0
  4.  
  5. curl -X GET "localhost:9200/_template/logstash-index-template"
  6.  
  7. curl -X PUT "localhost:9200/_template/logstash-index-template" -H 'Content-Type: application/json' -d '{"logstash-index-template":{"order":0,"index_patterns":[".logstash"],"settings":{"index":{"number_of_shards":"1","number_of_replicas":"0","codec":"best_compression"}},"mappings":{"doc":{"_meta":{"logstash-version":"6.3.1"},"dynamic":"strict","properties":{"description":{"type":"text"},"last_modified":{"type":"date"},"pipeline_metadata":{"properties":{"version":{"type":"short"},"type":{"type":"keyword"}}},"pipeline":{"type":"text"},"pipeline_settings":{"dynamic":false,"type":"object"},"username":{"type":"keyword"},"metadata":{"type":"object","dynamic":false}}}},"aliases":{}}}'
  8.  
  9. curl -X PUT "localhost:9200/_settings" -H 'Content-Type: application/json' -d'{ "index" : { "number_of_replicas" :0 }}'
Add Comment
Please, Sign In to add comment