# How to change HighLevel Client default timeout value?

**URL:** <https://discuss.elastic.co/t/how-to-change-highlevel-client-default-timeout-value/149315>\
**Category:** Elasticsearch\
**Created:** [September 20, 2018, 2:37pm UTC](https://discuss.elastic.co/t/how-to-change-highlevel-client-default-timeout-value/149315 "2018-09-20T14:37:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![varun1992](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Post date:** [September 20, 2018, 2:37pm UTC](https://discuss.elastic.co/t/how-to-change-highlevel-client-default-timeout-value/149315/1 "2018-09-20T14:37:33Z")

</div>

I initialised client in java as below

```
RestHighLevelClient client = new RestHighLevelClient(
        RestClient.builder(
                new HttpHost("localhost", 9200, "http"),
                new HttpHost("localhost", 9201, "http")));

```

But by default client timeout at 30 sec. How can i increase it to 1 min ?  
What is the change i need to do for that ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 18, 2018, 2:37pm UTC](https://discuss.elastic.co/t/how-to-change-highlevel-client-default-timeout-value/149315/2 "2018-10-18T14:37:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
