Skip to content

Commit

Permalink
Increase template order of new templates to 1
Browse files Browse the repository at this point in the history
This makes sure, in case for example a metricbeat-* and a metricbeat-{beatversion}-* template exist, the more precise one / newer one overloads the older one. This is important for people migrating from 5.x to 6.x.

Closes elastic#3657
  • Loading branch information
ruflin committed Feb 24, 2017
1 parent 4e1a173 commit 3ff4f66
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion filebeat/filebeat.template-es2x.json
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@
}
}
},
"order": 0,
"order": 1,
"settings": {
"index.refresh_interval": "5s"
},
Expand Down
2 changes: 1 addition & 1 deletion filebeat/filebeat.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
}
}
},
"order": 0,
"order": 1,
"settings": {
"index": {
"mapping": {
Expand Down
2 changes: 1 addition & 1 deletion heartbeat/heartbeat.template-es2x.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
}
}
},
"order": 0,
"order": 1,
"settings": {
"index.refresh_interval": "5s"
},
Expand Down
2 changes: 1 addition & 1 deletion heartbeat/heartbeat.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
}
}
},
"order": 0,
"order": 1,
"settings": {
"index": {
"mapping": {
Expand Down
2 changes: 1 addition & 1 deletion libbeat/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func createTemplate(properties common.MapStr, version string, esVersion Version,
"properties": properties,
},
},
"order": 0,
"order": 1,
"settings": common.MapStr{
"index.refresh_interval": "5s",
},
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/metricbeat.template-es2x.json
Original file line number Diff line number Diff line change
Expand Up @@ -4296,7 +4296,7 @@
}
}
},
"order": 0,
"order": 1,
"settings": {
"index.refresh_interval": "5s"
},
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/metricbeat.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -4235,7 +4235,7 @@
}
}
},
"order": 0,
"order": 1,
"settings": {
"index": {
"mapping": {
Expand Down
2 changes: 1 addition & 1 deletion packetbeat/packetbeat.template-es2x.json
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,7 @@
}
}
},
"order": 0,
"order": 1,
"settings": {
"index.refresh_interval": "5s"
},
Expand Down
2 changes: 1 addition & 1 deletion packetbeat/packetbeat.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@
}
}
},
"order": 0,
"order": 1,
"settings": {
"index": {
"mapping": {
Expand Down
2 changes: 1 addition & 1 deletion winlogbeat/winlogbeat.template-es2x.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
}
}
},
"order": 0,
"order": 1,
"settings": {
"index.refresh_interval": "5s"
},
Expand Down
2 changes: 1 addition & 1 deletion winlogbeat/winlogbeat.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
}
}
},
"order": 0,
"order": 1,
"settings": {
"index": {
"mapping": {
Expand Down

0 comments on commit 3ff4f66

Please sign in to comment.