Guest User

index template

a guest
May 31st, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.11 KB | None | 0 0
  1. {
  2. "logstash" : {
  3. "order" : 0,
  4. "template" : "logstash-*",
  5. "settings" : {
  6. "index" : {
  7. "refresh_interval" : "5s"
  8. }
  9. },
  10. "mappings" : {
  11. "_default_" : {
  12. "dynamic_templates" : [ {
  13. "message_field" : {
  14. "mapping" : {
  15. "fielddata" : {
  16. "format" : "disabled"
  17. },
  18. "index" : "analyzed",
  19. "omit_norms" : true,
  20. "type" : "string"
  21. },
  22. "match_mapping_type" : "string",
  23. "match" : "message"
  24. }
  25. }, {
  26. "string_fields" : {
  27. "mapping" : {
  28. "fielddata" : {
  29. "format" : "disabled"
  30. },
  31. "index" : "analyzed",
  32. "omit_norms" : true,
  33. "type" : "string",
  34. "fields" : {
  35. "raw" : {
  36. "ignore_above" : 256,
  37. "index" : "not_analyzed",
  38. "type" : "string",
  39. "doc_values" : true
  40. }
  41. }
  42. },
  43. "match_mapping_type" : "string",
  44. "match" : "*"
  45. }
  46. }, {
  47. "float_fields" : {
  48. "mapping" : {
  49. "type" : "float",
  50. "doc_values" : true
  51. },
  52. "match_mapping_type" : "float",
  53. "match" : "*"
  54. }
  55. }, {
  56. "double_fields" : {
  57. "mapping" : {
  58. "type" : "double",
  59. "doc_values" : true
  60. },
  61. "match_mapping_type" : "double",
  62. "match" : "*"
  63. }
  64. }, {
  65. "byte_fields" : {
  66. "mapping" : {
  67. "type" : "byte",
  68. "doc_values" : true
  69. },
  70. "match_mapping_type" : "byte",
  71. "match" : "*"
  72. }
  73. }, {
  74. "short_fields" : {
  75. "mapping" : {
  76. "type" : "short",
  77. "doc_values" : true
  78. },
  79. "match_mapping_type" : "short",
  80. "match" : "*"
  81. }
  82. }, {
  83. "integer_fields" : {
  84. "mapping" : {
  85. "type" : "integer",
  86. "doc_values" : true
  87. },
  88. "match_mapping_type" : "integer",
  89. "match" : "*"
  90. }
  91. }, {
  92. "long_fields" : {
  93. "mapping" : {
  94. "type" : "long",
  95. "doc_values" : true
  96. },
  97. "match_mapping_type" : "long",
  98. "match" : "*"
  99. }
  100. }, {
  101. "date_fields" : {
  102. "mapping" : {
  103. "type" : "date",
  104. "doc_values" : true
  105. },
  106. "match_mapping_type" : "date",
  107. "match" : "*"
  108. }
  109. }, {
  110. "geo_point_fields" : {
  111. "mapping" : {
  112. "type" : "geo_point",
  113. "doc_values" : true
  114. },
  115. "match_mapping_type" : "geo_point",
  116. "match" : "*"
  117. }
  118. } ],
  119. "_all" : {
  120. "omit_norms" : true,
  121. "enabled" : true
  122. },
  123. "properties" : {
  124. "@timestamp" : {
  125. "type" : "date",
  126. "doc_values" : true
  127. },
  128. "geoip" : {
  129. "dynamic" : true,
  130. "type" : "object",
  131. "properties" : {
  132. "ip" : {
  133. "type" : "ip",
  134. "doc_values" : true
  135. },
  136. "latitude" : {
  137. "type" : "float",
  138. "doc_values" : true
  139. },
  140. "location" : {
  141. "type" : "geo_point",
  142. "doc_values" : true
  143. },
  144. "longitude" : {
  145. "type" : "float",
  146. "doc_values" : true
  147. }
  148. }
  149. },
  150. "@version" : {
  151. "index" : "not_analyzed",
  152. "type" : "string",
  153. "doc_values" : true
  154. }
  155. }
  156. }
  157. },
  158. "aliases" : { }
  159. }
  160. }
Add Comment
Please, Sign In to add comment