File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/legacy/core_plugins/elasticsearch
x-pack/plugins/monitoring/server/kibana_monitoring Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export default function (kibana) {
7272 }
7373
7474 const cluster = new Cluster (
75- server . newPlatform . setup . core . elasticsearch . createClient ( name , clientConfig )
75+ server . newPlatform . setup . core . elasticsearch . legacy . createClient ( name , clientConfig )
7676 ) ;
7777
7878 clusters . set ( name , cluster ) ;
Original file line number Diff line number Diff line change @@ -50,14 +50,14 @@ export class BulkUploader {
5050 this . _usageInterval = TELEMETRY_COLLECTION_INTERVAL ;
5151 this . _log = log ;
5252
53- this . _cluster = elasticsearch . createClient ( 'admin' , {
53+ this . _cluster = elasticsearch . legacy . createClient ( 'admin' , {
5454 plugins : [ monitoringBulk ] ,
5555 } ) ;
5656
5757 if ( hasMonitoringCluster ( config . elasticsearch ) ) {
5858 this . _log . info ( `Detected direct connection to monitoring cluster` ) ;
5959 this . _hasDirectConnectionToMonitoringCluster = true ;
60- this . _cluster = elasticsearch . createClient ( 'monitoring-direct' , config . elasticsearch ) ;
60+ this . _cluster = elasticsearch . legacy . createClient ( 'monitoring-direct' , config . elasticsearch ) ;
6161 elasticsearch . legacy . client . callAsInternalUser ( 'info' ) . then ( ( data ) => {
6262 this . _productionClusterUuid = get ( data , 'cluster_uuid' ) ;
6363 } ) ;
You can’t perform that action at this time.
0 commit comments