diff --git a/packages/kbn-es/src/install/snapshot.js b/packages/kbn-es/src/install/snapshot.js index 64c1fcd0e5047..fc5e468488034 100644 --- a/packages/kbn-es/src/install/snapshot.js +++ b/packages/kbn-es/src/install/snapshot.js @@ -145,10 +145,24 @@ function downloadFile(url, dest, log) { } function getFilename(license, version) { - const extension = os.platform().startsWith('win') ? 'zip' : 'tar.gz'; - const basename = `elasticsearch${license === 'oss' ? '-oss-' : '-'}${version}`; + const platform = os.platform(); + let suffix = null; + switch (platform) { + case 'darwin': + suffix = 'darwin-x86_64.tar.gz'; + break; + case 'linux': + suffix = 'linux-x86_64.tar.gz'; + break; + case 'win32': + suffix = 'windows-x86_64.zip'; + break; + default: + throw new Error(`Unsupported platform ${platform}`); + } - return `${basename}-SNAPSHOT.${extension}`; + const basename = `elasticsearch${license === 'oss' ? '-oss-' : '-'}${version}`; + return `${basename}-SNAPSHOT-${suffix}`; } function getUrl(fileName) { diff --git a/x-pack/test/api_integration/apis/xpack_main/telemetry/telemetry_local.js b/x-pack/test/api_integration/apis/xpack_main/telemetry/telemetry_local.js index 537bb22982bb1..3aad0a23f5bc7 100644 --- a/x-pack/test/api_integration/apis/xpack_main/telemetry/telemetry_local.js +++ b/x-pack/test/api_integration/apis/xpack_main/telemetry/telemetry_local.js @@ -155,6 +155,7 @@ export default function ({ getService }) { "stack_stats.kibana.timelion_sheet", "stack_stats.kibana.versions", "stack_stats.kibana.visualization", + "stack_stats.xpack.ccr", "stack_stats.xpack.graph", "stack_stats.xpack.ilm", "stack_stats.xpack.logstash",