# How to use sniffer capability in elasticsearch-java client tool?

**URL:** <https://discuss.elastic.co/t/how-to-use-sniffer-capability-in-elasticsearch-java-client-tool/385038>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [February 13, 2026, 10:07am UTC](https://discuss.elastic.co/t/how-to-use-sniffer-capability-in-elasticsearch-java-client-tool/385038 "2026-02-13T10:07:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mloine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mloine/32/146901_2.png) [@mloine](https://discuss.elastic.co/u/mloine)\
**Post date:** [February 13, 2026, 10:07am UTC](https://discuss.elastic.co/t/how-to-use-sniffer-capability-in-elasticsearch-java-client-tool/385038/1 "2026-02-13T10:07:31Z")

</div>

How to use sniffer capability in elasticsearch-java client tool? According to the documentation, it is not supported by default, and the dependencies are

```auto
<dependency>
    <groupId>co.elastic.clients</groupId>
    <artifactId>elasticsearch-java</artifactId>
    <version>8.19.11</version>
</dependency>

```

---

<div class="post-metadata">

**Author:** ![ltrotta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ltrotta/32/124003_2.png) [@ltrotta](https://discuss.elastic.co/u/ltrotta)\
**Post date:** [February 13, 2026, 10:36am UTC](https://discuss.elastic.co/t/how-to-use-sniffer-capability-in-elasticsearch-java-client-tool/385038/2 "2026-02-13T10:36:00Z")

</div>

Hello and welcome!

You can find documentation on the sniffer [here](https://www.elastic.co/docs/reference/elasticsearch/clients/java/transport/rest-client/sniffer). It’s not part of the `elasticsearch-java` dependency, it’s from:

```auto
<dependency>
    <groupId>org.elasticsearch.client</groupId>
    <artifactId>elasticsearch-rest-client-sniffer</artifactId>
    <version>8.19.11</version>
</dependency>

```

---

<div class="post-metadata">

**Author:** ![mloine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mloine/32/146901_2.png) [@mloine](https://discuss.elastic.co/u/mloine)\
**Post date:** [February 13, 2026, 3:40pm UTC](https://discuss.elastic.co/t/how-to-use-sniffer-capability-in-elasticsearch-java-client-tool/385038/3 "2026-02-13T15:40:23Z")

</div>

> [@ltrotta](#):
>
> here

Sorry, can you provide the full address, I can't open this

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 15, 2026, 3:05pm UTC](https://discuss.elastic.co/t/how-to-use-sniffer-capability-in-elasticsearch-java-client-tool/385038/4 "2026-02-15T15:05:13Z")

</div>

> **[Sniffer in the Elasticsearch Java REST client | Java](https://www.elastic.co/docs/reference/elasticsearch/clients/java/transport/rest-client/sniffer)**
>
> Minimal library that allows to automatically discover nodes from a running Elasticsearch cluster and set them to an existing RestClient instance. It retrieves...
