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