Skip to content

Commit 401392c

Browse files
Merge branch 'hotfix/1.4.9'
2 parents efcd204 + 25358fe commit 401392c

File tree

5 files changed

+41
-9
lines changed

5 files changed

+41
-9
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,3 +219,5 @@ It's possible to use complete Docker images with Apache Storm and SpamScope. Tak
219219
![SpamScope](docs/images/Docker01.png?raw=true "SpamScope")
220220

221221
![SpamScope Topology](docs/images/Docker02.png?raw=true "SpamScope Topology")
222+
223+
![SpamScope Map](docs/images/map.png?raw=true "SpamScope Map")

conf/templates/spamscope.json

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"order": 0,
3+
"version": 2,
34
"template": "spamscope_*-*",
45
"settings": {
56
"analysis": {
@@ -59,7 +60,7 @@
5960
"headers": {
6061
"mapping": {
6162
"index": "analyzed",
62-
"type": "text",
63+
"type": "string",
6364
"analyzer": "header"
6465
},
6566
"match_pattern": "regex",
@@ -70,7 +71,7 @@
7071
"body": {
7172
"mapping": {
7273
"index": "analyzed",
73-
"type": "text",
74+
"type": "string",
7475
"analyzer": "html_body"
7576
},
7677
"match": "body"
@@ -80,7 +81,7 @@
8081
"path_mail": {
8182
"mapping": {
8283
"index": "analyzed",
83-
"type": "text",
84+
"type": "string",
8485
"analyzer": "path_pattern"
8586
},
8687
"match": "path_mail"
@@ -107,10 +108,10 @@
107108
}
108109
},
109110
{
110-
"all_text": {
111+
"all_string": {
111112
"mapping": {
112113
"index": "analyzed",
113-
"type": "text",
114+
"type": "string",
114115
"fields": {
115116
"raw": {
116117
"ignore_above": 256,
@@ -120,10 +121,39 @@
120121
}
121122
}
122123
},
123-
"match_mapping_type": "text"
124+
"match_mapping_type": "string"
124125
}
125126
}
126-
]
127+
],
128+
"_all": {
129+
"norms": false,
130+
"enabled": true
131+
},
132+
"properties": {
133+
"@timestamp": {
134+
"type": "date"
135+
},
136+
"geoip": {
137+
"dynamic": true,
138+
"properties": {
139+
"ip": {
140+
"type": "ip"
141+
},
142+
"latitude": {
143+
"type": "half_float"
144+
},
145+
"location": {
146+
"type": "geo_point"
147+
},
148+
"longitude": {
149+
"type": "half_float"
150+
}
151+
}
152+
},
153+
"@version": {
154+
"type": "keyword"
155+
}
156+
}
127157
}
128158
}
129159
}

docs/images/map.png

346 KB
Loading

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject spamscope "1.4.8-SNAPSHOT"
1+
(defproject spamscope "1.4.9-SNAPSHOT"
22
:resource-paths ["_resources"]
33
:target-path "_build"
44
:min-lein-version "2.0.0"

src/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from os.path import join
2121

22-
__version__ = "1.4.7"
22+
__version__ = "1.4.9"
2323
__configuration_path__ = "/etc/spamscope"
2424

2525
__defaults__ = {

0 commit comments

Comments
 (0)