Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. {
  2. "template": "logstash-*",
  3. "settings" : {
  4. "index.number_of_shards" : 3,
  5. "index.number_of_replicas" : 1,
  6. "index.query.default_field" : "@message",
  7. "index.routing.allocation.total_shards_per_node" : 2,
  8. "index.auto_expand_replicas": false
  9. },
  10. "mappings": {
  11. "_default_": {
  12. "_all": { "enabled": false },
  13. "_source": { "compress": false },
  14. "dynamic_templates": [
  15. {
  16. "fields_template" : {
  17. "mapping": { "type": "string", "index": "not_analyzed" },
  18. "path_match": "@fields.*"
  19. }
  20. },
  21. {
  22. "tags_template" : {
  23. "mapping": { "type": "string", "index": "not_analyzed" },
  24. "path_match": "@tags.*"
  25. }
  26. }
  27. ],
  28. "properties" : {
  29. "@fields": { "type": "object", "dynamic": true, "path": "full" },
  30. "@source" : { "type" : "string", "index" : "not_analyzed" },
  31. "@source_host" : { "type" : "string", "index" : "not_analyzed" },
  32. "@source_path" : { "type" : "string", "index" : "not_analyzed" },
  33. "@timestamp" : { "type" : "date", "index" : "not_analyzed" },
  34. "@type" : { "type" : "string", "index" : "not_analyzed" },
  35. "@message" : { "type" : "string", "analyzer" : "whitespace" }
  36.  
  37. }
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement