Advertisement
Guest User

Logstash Template

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