Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 KB | None | 0 0
  1. {
  2. "template": "eagle_metric*",
  3. "settings": {
  4. "index.cache.field.type": "soft",
  5. "index.store.compress.stored": true,
  6. "index.refresh_interval": "5s",
  7. "index.query.default_field": "name",
  8. "number_of_shards": 7,
  9. "number_of_replicas": 2
  10. },
  11. "mappings": {
  12. "_default_": {
  13. "_all": {
  14. "enabled": true
  15. },
  16. "_source": {
  17. "compress": true
  18. },
  19. "dynamic_templates": [
  20. {
  21. "field_message_template": {
  22. "mapping": {
  23. "index": "analyzed",
  24. "type": "string"
  25. },
  26. "match_mapping_type": "string",
  27. "path_match": "name"
  28. }
  29. },
  30. {
  31. "field_message_template": {
  32. "mapping": {
  33. "index": "analyzed",
  34. "type": "string"
  35. },
  36. "match_mapping_type": "string",
  37. "path_match": "siteId"
  38. }
  39. },
  40. {
  41. "field_message_template": {
  42. "mapping": {
  43. "index": "analyzed",
  44. "type": "string"
  45. },
  46. "match_mapping_type": "string",
  47. "path_match": "appId"
  48. }
  49. },
  50. {
  51. "field_message_template": {
  52. "mapping": {
  53. "index": "analyzed",
  54. "type": "string"
  55. },
  56. "match_mapping_type": "string",
  57. "path_match": "appExecId"
  58. }
  59. },
  60. {
  61. "field_message_template": {
  62. "mapping": {
  63. "index": "analyzed",
  64. "type": "string"
  65. },
  66. "match_mapping_type": "string",
  67. "path_match": "componentId"
  68. }
  69. },
  70. {
  71. "field_timestamp_template": {
  72. "mapping": {
  73. "index": "not_analyzed",
  74. "type": "date"
  75. },
  76. "match_mapping_type": "string",
  77. "path_match": "*timestamp"
  78. }
  79. },
  80. {
  81. "field_gctime_template": {
  82. "mapping": {
  83. "index": "not_analyzed",
  84. "type": "double"
  85. },
  86. "match_mapping_type": "string",
  87. "path_match": "value"
  88. }
  89. }
  90. ],
  91. "_ttl": {
  92. "enabled": true,
  93. "default": "7d"
  94. }
  95. }
  96. }
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement