Advertisement
Guest User

Untitled

a guest
Jul 31st, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.80 KB | None | 0 0
  1. {
  2. "subject_object_dynamic": {
  3. "order": 101,
  4. "template": "logstash*",
  5. "settings": {},
  6. "mappings": {
  7. "logs": {
  8. "dynamic_templates": [
  9. {
  10. "SUBJECT_STRINGS_ONLY": {
  11. "mapping": {
  12. "index": "not_analyzed",
  13. "type": "string"
  14. },
  15. "path_match": "event_data.subject.*"
  16. }
  17. }
  18. ]
  19. }
  20. },
  21. "aliases": {}
  22. },
  23. "event": {
  24. "order": 1,
  25. "template": "logstash*",
  26. "settings": {},
  27. "mappings": {
  28. "logs": {
  29. "properties": {
  30. "timestamp": {
  31. "format": "dateOptionalTime",
  32. "doc_values": true,
  33. "type": "date"
  34. },
  35. "project": {
  36. "index": "not_analyzed",
  37. "null_value": "unknown",
  38. "doc_values": true,
  39. "type": "string"
  40. },
  41. "event_type": {
  42. "index": "not_analyzed",
  43. "null_value": "unknown",
  44. "doc_values": true,
  45. "type": "string"
  46. },
  47. "id": {
  48. "doc_values": true,
  49. "type": "long"
  50. }
  51. }
  52. }
  53. },
  54. "aliases": {}
  55. },
  56. "logstash": {
  57. "order": 0,
  58. "template": "logstash*",
  59. "settings": {
  60. "index.refresh_interval": "5s",
  61. "index.mapping.ignore_malformed": "true",
  62. "index.number_of_shards": "3"
  63. },
  64. "mappings": {
  65. "_default_": {
  66. "dynamic_templates": [
  67. {
  68. "string_fields": {
  69. "mapping": {
  70. "index": "not_analyzed",
  71. "omit_norms": true,
  72. "doc_values": true,
  73. "type": "string"
  74. },
  75. "match": "*",
  76. "match_mapping_type": "string"
  77. }
  78. }
  79. ],
  80. "properties": {
  81. "geoip": {
  82. "dynamic": true,
  83. "path": "full",
  84. "properties": {
  85. "location": {
  86. "doc_values": true,
  87. "type": "geo_point"
  88. }
  89. },
  90. "type": "object"
  91. },
  92. "@version": {
  93. "index": "not_analyzed",
  94. "type": "string"
  95. }
  96. },
  97. "_all": {
  98. "enabled": true
  99. }
  100. }
  101. },
  102. "aliases": {}
  103. },
  104. "invite_popup": {
  105. "order": 105,
  106. "template": "logstash*-invite_popup-*",
  107. "settings": {},
  108. "mappings": {
  109. "logs": {
  110. "properties": {
  111. "event_data": {
  112. "properties": {
  113. "level": {
  114. "index": "not_analyzed",
  115. "ignore_malformed": true,
  116. "doc_values": true,
  117. "type": "integer"
  118. },
  119. "invite_list": {
  120. "index": "not_analyzed",
  121. "ignore_malformed": true,
  122. "doc_values": true,
  123. "type": "string"
  124. },
  125. "invite_count": {
  126. "index": "not_analyzed",
  127. "ignore_malformed": true,
  128. "doc_values": true,
  129. "type": "integer"
  130. },
  131. "action": {
  132. "index": "not_analyzed",
  133. "ignore_malformed": true,
  134. "doc_values": true,
  135. "type": "string"
  136. },
  137. "invite_friend_count": {
  138. "index": "not_analyzed",
  139. "ignore_malformed": true,
  140. "doc_values": true,
  141. "type": "integer"
  142. },
  143. "all_friend_count": {
  144. "index": "not_analyzed",
  145. "ignore_malformed": true,
  146. "doc_values": true,
  147. "type": "integer"
  148. },
  149. "login": {
  150. "ignore_malformed": true,
  151. "doc_values": true,
  152. "format": "dateOptionalTime",
  153. "type": "date"
  154. },
  155. "type": {
  156. "index": "not_analyzed",
  157. "ignore_malformed": true,
  158. "doc_values": true,
  159. "type": "string"
  160. },
  161. "version": {
  162. "index": "not_analyzed",
  163. "ignore_malformed": true,
  164. "doc_values": true,
  165. "type": "string"
  166. }
  167. },
  168. "type": "object"
  169. }
  170. }
  171. }
  172. },
  173. "aliases": {}
  174. },
  175. "url_object_dynamic": {
  176. "order": 100,
  177. "template": "logstash*",
  178. "settings": {},
  179. "mappings": {
  180. "logs": {
  181. "dynamic_templates": [
  182. {
  183. "URL_OBJECT_STRINGS_ONLY": {
  184. "mapping": {
  185. "index": "not_analyzed",
  186. "type": "string"
  187. },
  188. "path_match": "*url_object.parameters.*"
  189. }
  190. }
  191. ]
  192. }
  193. },
  194. "aliases": {}
  195. }
  196. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement