Hi
I'm setting up a High Level Rest API conenction (7.4.*) and all seems fine till I added a sniffer:
RestClientBuilder restClientBuilder = RestClient.builder(hosts)
.setHttpClientConfigCallback(httpClientBuilder -> httpClientBuilder
.setDefaultCredentialsProvider(credentialsProvider));
RestHighLevelClient restHighLevelClient = new RestHighLevelClient(restClientBuilder);
till this code all works fine and the connection stay established:
BUT adding a sniffer cause connection refused after few minues (1-2):
sniffer = Sniffer.builder(restHighLevelClient.getLowLevelClient()).build();
Any idea why it's happen and what would I do?
Maven ES Version: 7.4.1
ES on machine: 7.4.2
Thanks!