Skip to content

Commit ef6c903

Browse files
author
Mathieu Martin
committed
Add composable index templates artifacts (elastic#1156)
1 parent c2b2283 commit ef6c903

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+7771
-61
lines changed

CHANGELOG.next.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ Thanks, you're awesome :-) -->
3030

3131
#### Added
3232

33+
* Added component templates for ECS field sets. #1156
34+
3335
#### Improvements
3436

3537
* Added a notice highlighting that the `tracing` fields are not nested under the

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ check-license-headers:
3434
# Clean deletes all temporary and generated content.
3535
.PHONY: clean
3636
clean:
37-
rm -rf build
37+
rm -rf build generated/elasticsearch/component experimental/generated/elasticsearch/component
3838
# Clean all markdown files for use-cases
3939
find ./use-cases -type f -name '*.md' -not -name 'README.md' -print0 | xargs -0 rm --
4040

experimental/generated/elasticsearch/7/template.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2+
"_meta": {
3+
"version": "1.7.0+exp"
4+
},
25
"index_patterns": [
36
"try-ecs-*"
47
],
58
"mappings": {
6-
"_meta": {
7-
"version": "1.7.0+exp"
8-
},
99
"date_detection": false,
1010
"dynamic_templates": [
1111
{
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"_meta": {
3+
"documentation": "https://www.elastic.co/guide/en/ecs/current/ecs-agent.html",
4+
"ecs_version": "1.7.0+exp"
5+
},
6+
"template": {
7+
"mappings": {
8+
"properties": {
9+
"agent": {
10+
"properties": {
11+
"build": {
12+
"properties": {
13+
"original": {
14+
"type": "wildcard"
15+
}
16+
}
17+
},
18+
"ephemeral_id": {
19+
"ignore_above": 1024,
20+
"type": "keyword"
21+
},
22+
"id": {
23+
"ignore_above": 1024,
24+
"type": "keyword"
25+
},
26+
"name": {
27+
"ignore_above": 1024,
28+
"type": "keyword"
29+
},
30+
"type": {
31+
"ignore_above": 1024,
32+
"type": "keyword"
33+
},
34+
"version": {
35+
"ignore_above": 1024,
36+
"type": "keyword"
37+
}
38+
}
39+
}
40+
}
41+
}
42+
}
43+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"_meta": {
3+
"documentation": "https://www.elastic.co/guide/en/ecs/current/ecs-base.html",
4+
"ecs_version": "1.7.0+exp"
5+
},
6+
"template": {
7+
"mappings": {
8+
"properties": {
9+
"@timestamp": {
10+
"type": "date"
11+
},
12+
"labels": {
13+
"type": "object"
14+
},
15+
"message": {
16+
"norms": false,
17+
"type": "text"
18+
},
19+
"tags": {
20+
"ignore_above": 1024,
21+
"type": "keyword"
22+
}
23+
}
24+
}
25+
}
26+
}
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
{
2+
"_meta": {
3+
"documentation": "https://www.elastic.co/guide/en/ecs/current/ecs-client.html",
4+
"ecs_version": "1.7.0+exp"
5+
},
6+
"template": {
7+
"mappings": {
8+
"properties": {
9+
"client": {
10+
"properties": {
11+
"address": {
12+
"ignore_above": 1024,
13+
"type": "keyword"
14+
},
15+
"as": {
16+
"properties": {
17+
"number": {
18+
"type": "long"
19+
},
20+
"organization": {
21+
"properties": {
22+
"name": {
23+
"fields": {
24+
"text": {
25+
"norms": false,
26+
"type": "text"
27+
}
28+
},
29+
"type": "wildcard"
30+
}
31+
}
32+
}
33+
}
34+
},
35+
"bytes": {
36+
"type": "long"
37+
},
38+
"domain": {
39+
"type": "wildcard"
40+
},
41+
"geo": {
42+
"properties": {
43+
"city_name": {
44+
"ignore_above": 1024,
45+
"type": "keyword"
46+
},
47+
"continent_name": {
48+
"ignore_above": 1024,
49+
"type": "keyword"
50+
},
51+
"country_iso_code": {
52+
"ignore_above": 1024,
53+
"type": "keyword"
54+
},
55+
"country_name": {
56+
"ignore_above": 1024,
57+
"type": "keyword"
58+
},
59+
"location": {
60+
"type": "geo_point"
61+
},
62+
"name": {
63+
"type": "wildcard"
64+
},
65+
"region_iso_code": {
66+
"ignore_above": 1024,
67+
"type": "keyword"
68+
},
69+
"region_name": {
70+
"ignore_above": 1024,
71+
"type": "keyword"
72+
}
73+
}
74+
},
75+
"ip": {
76+
"type": "ip"
77+
},
78+
"mac": {
79+
"ignore_above": 1024,
80+
"type": "keyword"
81+
},
82+
"nat": {
83+
"properties": {
84+
"ip": {
85+
"type": "ip"
86+
},
87+
"port": {
88+
"type": "long"
89+
}
90+
}
91+
},
92+
"packets": {
93+
"type": "long"
94+
},
95+
"port": {
96+
"type": "long"
97+
},
98+
"registered_domain": {
99+
"type": "wildcard"
100+
},
101+
"subdomain": {
102+
"ignore_above": 1024,
103+
"type": "keyword"
104+
},
105+
"top_level_domain": {
106+
"ignore_above": 1024,
107+
"type": "keyword"
108+
},
109+
"user": {
110+
"properties": {
111+
"domain": {
112+
"ignore_above": 1024,
113+
"type": "keyword"
114+
},
115+
"email": {
116+
"type": "wildcard"
117+
},
118+
"full_name": {
119+
"fields": {
120+
"text": {
121+
"norms": false,
122+
"type": "text"
123+
}
124+
},
125+
"type": "wildcard"
126+
},
127+
"group": {
128+
"properties": {
129+
"domain": {
130+
"ignore_above": 1024,
131+
"type": "keyword"
132+
},
133+
"id": {
134+
"ignore_above": 1024,
135+
"type": "keyword"
136+
},
137+
"name": {
138+
"ignore_above": 1024,
139+
"type": "keyword"
140+
}
141+
}
142+
},
143+
"hash": {
144+
"ignore_above": 1024,
145+
"type": "keyword"
146+
},
147+
"id": {
148+
"ignore_above": 1024,
149+
"type": "keyword"
150+
},
151+
"name": {
152+
"fields": {
153+
"text": {
154+
"norms": false,
155+
"type": "text"
156+
}
157+
},
158+
"type": "wildcard"
159+
},
160+
"roles": {
161+
"ignore_above": 1024,
162+
"type": "keyword"
163+
}
164+
}
165+
}
166+
}
167+
}
168+
}
169+
}
170+
}
171+
}
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"_meta": {
3+
"documentation": "https://www.elastic.co/guide/en/ecs/current/ecs-cloud.html",
4+
"ecs_version": "1.7.0+exp"
5+
},
6+
"template": {
7+
"mappings": {
8+
"properties": {
9+
"cloud": {
10+
"properties": {
11+
"account": {
12+
"properties": {
13+
"id": {
14+
"ignore_above": 1024,
15+
"type": "keyword"
16+
},
17+
"name": {
18+
"ignore_above": 1024,
19+
"type": "keyword"
20+
}
21+
}
22+
},
23+
"availability_zone": {
24+
"ignore_above": 1024,
25+
"type": "keyword"
26+
},
27+
"instance": {
28+
"properties": {
29+
"id": {
30+
"ignore_above": 1024,
31+
"type": "keyword"
32+
},
33+
"name": {
34+
"ignore_above": 1024,
35+
"type": "keyword"
36+
}
37+
}
38+
},
39+
"machine": {
40+
"properties": {
41+
"type": {
42+
"ignore_above": 1024,
43+
"type": "keyword"
44+
}
45+
}
46+
},
47+
"project": {
48+
"properties": {
49+
"id": {
50+
"ignore_above": 1024,
51+
"type": "keyword"
52+
},
53+
"name": {
54+
"ignore_above": 1024,
55+
"type": "keyword"
56+
}
57+
}
58+
},
59+
"provider": {
60+
"ignore_above": 1024,
61+
"type": "keyword"
62+
},
63+
"region": {
64+
"ignore_above": 1024,
65+
"type": "keyword"
66+
}
67+
}
68+
}
69+
}
70+
}
71+
}
72+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"_meta": {
3+
"documentation": "https://www.elastic.co/guide/en/ecs/current/ecs-container.html",
4+
"ecs_version": "1.7.0+exp"
5+
},
6+
"template": {
7+
"mappings": {
8+
"properties": {
9+
"container": {
10+
"properties": {
11+
"id": {
12+
"ignore_above": 1024,
13+
"type": "keyword"
14+
},
15+
"image": {
16+
"properties": {
17+
"name": {
18+
"ignore_above": 1024,
19+
"type": "keyword"
20+
},
21+
"tag": {
22+
"ignore_above": 1024,
23+
"type": "keyword"
24+
}
25+
}
26+
},
27+
"labels": {
28+
"type": "object"
29+
},
30+
"name": {
31+
"ignore_above": 1024,
32+
"type": "keyword"
33+
},
34+
"runtime": {
35+
"ignore_above": 1024,
36+
"type": "keyword"
37+
}
38+
}
39+
}
40+
}
41+
}
42+
}
43+
}

0 commit comments

Comments
 (0)