Advertisement
Guest User

elasticsearch-template.json from logstash with doc_value

a guest
Sep 15th, 2015
131
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. "aliases" : {
  4. "alias1" : {},
  5. "dcachebilling" : {
  6. "filter" : {
  7. "term" : {
  8. "type" : "dcache_billing"
  9. }
  10. }
  11. }
  12. },
  13. "settings" : {
  14. "index.refresh_interval" : "5s",
  15. "number_of_shards" : 4
  16. },
  17. "mappings" : {
  18. "_default_" : {
  19. "_all" : {"enabled" : true, "omit_norms" : true, "doc_value" : true},
  20. "dynamic_templates" : [ {
  21. "message_field" : {
  22. "match" : "message",
  23. "match_mapping_type" : "string",
  24. "mapping" : {
  25. "type" : "string", "index" : "analyzed", "omit_norms" : true, "doc_value" : true
  26. }
  27. }
  28. }, {
  29. "string_fields" : {
  30. "match" : "*",
  31. "match_mapping_type" : "string",
  32. "mapping" : {
  33. "type" : "string", "index" : "analyzed", "omit_norms" : true, "doc_value" : true,
  34. "fields" : {
  35. "raw" : {"type": "string", "index" : "not_analyzed", "ignore_above" : 256, "doc_value" : true}
  36. }
  37. }
  38. }
  39. } ],
  40. "properties" : {
  41. "@version": { "type": "string", "index": "not_analyzed" },
  42. "type": { "type": "string", "index": "not_analyzed" },
  43. "geoip" : {
  44. "type" : "object",
  45. "dynamic": true,
  46. "path": "full",
  47. "properties" : {
  48. "location" : { "type" : "geo_point" }
  49. }
  50. }
  51. }
  52. }
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement