You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rspamd_template.json 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {
  2. "mappings": {
  3. "_meta": {
  4. "version": "5.5.3"
  5. },
  6. "date_detection": false,
  7. "dynamic_templates": [
  8. {
  9. "strings_as_keyword": {
  10. "mapping": {
  11. "ignore_above": 1024,
  12. "type": "keyword"
  13. },
  14. "match_mapping_type": "string"
  15. }
  16. }
  17. ],
  18. "properties": {
  19. "@timestamp": {
  20. "type": "date"
  21. },
  22. "meta": {
  23. "properties": {
  24. "cloud": {
  25. "properties": {
  26. "availability_zone": {
  27. "ignore_above": 1024,
  28. "type": "keyword"
  29. },
  30. "instance_id": {
  31. "ignore_above": 1024,
  32. "type": "keyword"
  33. },
  34. "machine_type": {
  35. "ignore_above": 1024,
  36. "type": "keyword"
  37. },
  38. "project_id": {
  39. "ignore_above": 1024,
  40. "type": "keyword"
  41. },
  42. "provider": {
  43. "ignore_above": 1024,
  44. "type": "keyword"
  45. },
  46. "region": {
  47. "ignore_above": 1024,
  48. "type": "keyword"
  49. }
  50. }
  51. }
  52. }
  53. },
  54. "rspamd_meta": {
  55. "properties": {
  56. "action": {
  57. "ignore_above": 1024,
  58. "type": "keyword"
  59. },
  60. "direction": {
  61. "ignore_above": 1024,
  62. "type": "keyword"
  63. },
  64. "asn": {
  65. "properties": {
  66. "asn": {
  67. "type": "long"
  68. },
  69. "country_code": {
  70. "ignore_above": 1024,
  71. "type": "keyword"
  72. },
  73. "ipnet": {
  74. "ignore_above": 1024,
  75. "type": "keyword"
  76. },
  77. "registrant": {
  78. "ignore_above": 1024,
  79. "type": "keyword"
  80. }
  81. }
  82. },
  83. "from": {
  84. "ignore_above": 1024,
  85. "type": "keyword"
  86. },
  87. "is_local": {
  88. "type": "boolean"
  89. },
  90. "webmail": {
  91. "type": "boolean"
  92. },
  93. "sender_ip": {
  94. "ignore_above": 1024,
  95. "type": "keyword"
  96. },
  97. "geoip": {
  98. "properties": {
  99. "city_name": {
  100. "ignore_above": 1024,
  101. "type": "keyword"
  102. },
  103. "continent_name": {
  104. "ignore_above": 1024,
  105. "type": "keyword"
  106. },
  107. "country_iso_code": {
  108. "ignore_above": 1024,
  109. "type": "keyword"
  110. },
  111. "location": {
  112. "type": "geo_point"
  113. }
  114. }
  115. },
  116. "ip": {
  117. "ignore_above": 1024,
  118. "type": "keyword"
  119. },
  120. "qid": {
  121. "ignore_above": 1024,
  122. "type": "keyword"
  123. },
  124. "hostname": {
  125. "ignore_above": 1024,
  126. "type": "keyword"
  127. },
  128. "score": {
  129. "type": "float"
  130. },
  131. "user": {
  132. "ignore_above": 1024,
  133. "type": "keyword"
  134. }
  135. }
  136. },
  137. "tags": {
  138. "ignore_above": 1024,
  139. "type": "keyword"
  140. }
  141. }
  142. },
  143. "order": 0,
  144. "settings": {
  145. "index.mapping.total_fields.limit": 10000,
  146. "index.refresh_interval": "5s"
  147. },
  148. "index_patterns" : ["rspamd-*", "*-rspamd-*"]
  149. }