[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [ElasticsearchServiceSetup](./kibana-plugin-server.elasticsearchservicesetup.md) > [createClient](./kibana-plugin-server.elasticsearchservicesetup.createclient.md) ## ElasticsearchServiceSetup.createClient property Create application specific Elasticsearch cluster API client with customized config. See [IClusterClient](./kibana-plugin-server.iclusterclient.md). Signature: ```typescript readonly createClient: (type: string, clientConfig?: Partial) => IClusterClient; ``` ## Example ```js const client = elasticsearch.createCluster('my-app-name', config); const data = await client.callAsInternalUser(); ```