Skip to content

Commit 0d802d3

Browse files
Adjust eventdata mapping for 2.x
1 parent a712171 commit 0d802d3

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

eventdata/index.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,39 @@
77
},
88
"properties": {
99
"@timestamp": { "type": "date" },
10-
"message": { "type": "text", "index": false },
11-
"agent": { "type": "keyword", "ignore_above": 256 },
10+
"message": { "type": "string", "index": "no" },
11+
"agent": { "type": "string", "index": "not_analyzed", "ignore_above": 256 },
1212
"bytes": { "type": "integer" },
1313
"clientip": { "type": "ip" },
14-
"httpversion": { "type": "keyword", "ignore_above": 256 },
14+
"httpversion": { "type": "string", "index": "not_analyzed", "ignore_above": 256 },
1515
"response": { "type": "short" },
16-
"verb": { "type": "keyword", "ignore_above": 256 },
17-
"tags": { "type": "keyword", "ignore_above": 256 },
16+
"verb": { "type": "string", "index": "not_analyzed", "ignore_above": 256 },
17+
"tags": { "type": "string", "index": "not_analyzed", "ignore_above": 256 },
1818
"geoip" : {
1919
"properties" : {
20-
"country_name" : { "type": "keyword" },
20+
"country_name" : { "type": "string", "index": "not_analyzed" },
2121
"location" : { "type": "geo_point" }
2222
}
2323
},
2424
"useragent": {
2525
"properties": {
26-
"name": { "type": "keyword", "ignore_above": 256 },
27-
"os": { "type": "keyword", "ignore_above": 256 },
28-
"os_name": { "type": "keyword", "ignore_above": 256 }
26+
"name": { "type": "string", "index": "not_analyzed", "ignore_above": 256 },
27+
"os": { "type": "string", "index": "not_analyzed", "ignore_above": 256 },
28+
"os_name": { "type": "string", "index": "not_analyzed", "ignore_above": 256 }
2929
}
3030
},
3131
"request": {
32-
"norms": false,
33-
"type": "text",
32+
"norms": {"enabled": false},
33+
"type": "string",
3434
"fields": {
35-
"keyword": { "ignore_above": 256, "type": "keyword" }
35+
"keyword": { "ignore_above": 256, "type": "string", "index": "not_analyzed" }
3636
}
3737
},
3838
"referrer": {
39-
"norms": false,
40-
"type": "text",
39+
"norms": {"enabled": false},
40+
"type": "string",
4141
"fields": {
42-
"keyword": { "ignore_above": 256, "type": "keyword" }
42+
"keyword": { "ignore_above": 256, "type": "string", "index": "not_analyzed" }
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)