Skip to content

Commit b18acbc

Browse files
authored
Merge pull request #1 from Psych0meter/codespace-miniature-tribble-g7v5pjpgw6cw76x
Codespace miniature tribble g7v5pjpgw6cw76x
2 parents 1d1ffb8 + efb0076 commit b18acbc

File tree

4 files changed

+10616
-0
lines changed

4 files changed

+10616
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"index_patterns" : "logstash-*",
3+
"version" : 60001,
4+
"settings" : {
5+
"index.refresh_interval" : "5s",
6+
"number_of_shards": 1
7+
},
8+
"mappings" : {
9+
"dynamic_templates" : [ {
10+
"message_field" : {
11+
"path_match" : "message",
12+
"match_mapping_type" : "string",
13+
"mapping" : {
14+
"type" : "text",
15+
"norms" : false
16+
}
17+
}
18+
}, {
19+
"string_fields" : {
20+
"match" : "*",
21+
"match_mapping_type" : "string",
22+
"mapping" : {
23+
"type" : "text", "norms" : false,
24+
"fields" : {
25+
"keyword" : { "type": "keyword", "ignore_above": 256 }
26+
}
27+
}
28+
}
29+
} ],
30+
"properties" : {
31+
"@timestamp": { "type": "date"},
32+
"@version": { "type": "keyword"},
33+
"geoip" : {
34+
"dynamic": true,
35+
"properties" : {
36+
"ip": { "type": "ip" },
37+
"location" : { "type" : "geo_point" },
38+
"latitude" : { "type" : "half_float" },
39+
"longitude" : { "type" : "half_float" }
40+
}
41+
}
42+
}
43+
}
44+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"index_patterns": "logstash-*",
3+
"version": 60001,
4+
"priority": 10,
5+
"template": {
6+
"settings": {
7+
"index.refresh_interval": "5s",
8+
"number_of_shards": 1
9+
},
10+
"mappings": {
11+
"dynamic_templates": [
12+
{
13+
"message_field": {
14+
"path_match": "message",
15+
"match_mapping_type": "string",
16+
"mapping": {
17+
"type": "text",
18+
"norms": false
19+
}
20+
}
21+
},
22+
{
23+
"string_fields": {
24+
"match": "*",
25+
"match_mapping_type": "string",
26+
"mapping": {
27+
"type": "text",
28+
"norms": false,
29+
"fields": {
30+
"keyword": {
31+
"type": "keyword",
32+
"ignore_above": 256
33+
}
34+
}
35+
}
36+
}
37+
}
38+
],
39+
"properties": {
40+
"@timestamp": {
41+
"type": "date"
42+
},
43+
"@version": {
44+
"type": "keyword"
45+
},
46+
"geoip": {
47+
"dynamic": true,
48+
"properties": {
49+
"ip": {
50+
"type": "ip"
51+
},
52+
"location": {
53+
"type": "geo_point"
54+
},
55+
"latitude": {
56+
"type": "half_float"
57+
},
58+
"longitude": {
59+
"type": "half_float"
60+
}
61+
}
62+
}
63+
}
64+
}
65+
}
66+
}

0 commit comments

Comments
 (0)