Skip to content

Commit 15ae584

Browse files
committed
Add missing test templates
1 parent e6bb923 commit 15ae584

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"template" : "custom-*",
3+
"version" : 60001,
4+
"settings" : {
5+
"index.refresh_interval" : "1s",
6+
"number_of_shards": 1,
7+
"index.lifecycle.name": "custom-policy",
8+
"index.lifecycle.rollover_alias": "custom"
9+
},
10+
"mappings" : {
11+
"_default_" : {
12+
"dynamic_templates" : [ {
13+
"message_field" : {
14+
"path_match" : "message",
15+
"match_mapping_type" : "string",
16+
"mapping" : {
17+
"type" : "text",
18+
"norms" : false
19+
}
20+
}
21+
}, {
22+
"string_fields" : {
23+
"match" : "*",
24+
"match_mapping_type" : "string",
25+
"mapping" : {
26+
"type" : "text", "norms" : false,
27+
"fields" : {
28+
"keyword" : { "type": "keyword", "ignore_above": 256 }
29+
}
30+
}
31+
}
32+
} ],
33+
"properties" : {
34+
"@timestamp": { "type": "date"},
35+
"@version": { "type": "keyword"},
36+
"geoip" : {
37+
"dynamic": true,
38+
"properties" : {
39+
"ip": { "type": "ip" },
40+
"location" : { "type" : "geo_point" },
41+
"latitude" : { "type" : "half_float" },
42+
"longitude" : { "type" : "half_float" }
43+
}
44+
}
45+
}
46+
}
47+
}
48+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"template" : "custom-*",
3+
"version" : 60001,
4+
"settings" : {
5+
"index.refresh_interval" : "1s",
6+
"number_of_shards": 1,
7+
"index.lifecycle.name": "custom-policy",
8+
"index.lifecycle.rollover_alias": "custom"
9+
},
10+
"mappings" : {
11+
"_doc" : {
12+
"dynamic_templates" : [ {
13+
"message_field" : {
14+
"path_match" : "message",
15+
"match_mapping_type" : "string",
16+
"mapping" : {
17+
"type" : "text",
18+
"norms" : false
19+
}
20+
}
21+
}, {
22+
"string_fields" : {
23+
"match" : "*",
24+
"match_mapping_type" : "string",
25+
"mapping" : {
26+
"type" : "text", "norms" : false,
27+
"fields" : {
28+
"keyword" : { "type": "keyword", "ignore_above": 256 }
29+
}
30+
}
31+
}
32+
} ],
33+
"properties" : {
34+
"@timestamp": { "type": "date"},
35+
"@version": { "type": "keyword"},
36+
"geoip" : {
37+
"dynamic": true,
38+
"properties" : {
39+
"ip": { "type": "ip" },
40+
"location" : { "type" : "geo_point" },
41+
"latitude" : { "type" : "half_float" },
42+
"longitude" : { "type" : "half_float" }
43+
}
44+
}
45+
}
46+
}
47+
}
48+
}

0 commit comments

Comments
 (0)