Skip to content

Commit

Permalink
Temporary fix to include timestamp with any component template created
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-buttner committed Jul 2, 2020
1 parent cdbb7e3 commit 79785e0
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,15 @@ function buildComponentTemplates(registryElasticsearch: RegistryElasticsearch |
if (registryElasticsearch && registryElasticsearch['index_template.mappings']) {
mappingsTemplate = {
template: {
mappings: registryElasticsearch['index_template.mappings'],
mappings: {
...registryElasticsearch['index_template.mappings'],
// temporary change until https://github.com/elastic/elasticsearch/issues/58956 is resolved
properties: {
'@timestamp': {
type: 'date',
},
},
},
},
};
}
Expand Down Expand Up @@ -282,6 +290,7 @@ export async function installTemplate({
packageName,
composedOfTemplates,
});

// TODO: Check return values for errors
const callClusterParams: {
method: string;
Expand Down

0 comments on commit 79785e0

Please sign in to comment.