# Not able to connect to elastic search from dremio gui to add data source

**URL:** <https://community.dremio.com/t/not-able-to-connect-to-elastic-search-from-dremio-gui-to-add-data-source/9548>\
**Category:** Uncategorized\
**Created:** [August 14, 2022, 5:16pm UTC](https://community.dremio.com/t/not-able-to-connect-to-elastic-search-from-dremio-gui-to-add-data-source/9548 "2022-08-14T17:16:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssabat](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@ssabat](https://community.dremio.com/u/ssabat)\
**Post date:** [August 14, 2022, 5:16pm UTC](https://community.dremio.com/t/not-able-to-connect-to-elastic-search-from-dremio-gui-to-add-data-source/9548/1 "2022-08-14T17:16:38Z")

</div>

I created two docker containers for dremio and elasticsearch, and placed them on bridge docker network. I can curl to elasticsearch. When I connect to elasticsearch from dremio gui for adding data source, it does not connect saying privileged user error.

**Encountered a problem while executing com.dremio.plugins.elastic.ElasticActions$NodesInfo@51c7f2a7. Cannot gather Elasticsearch nodes information. Please make sure that the user has [cluster:monitor/nodes/info] privilege.**

My curl output in dremio container is fine. If I use same host name in dremio gui, it gives above error.

$ curl [https://b278-2600-1700-7270-6310-55a8-e947-10d2-15ce.xxx.xx](https://b278-2600-1700-7270-6310-55a8-e947-10d2-15ce.xxx.xx)  
{  
“name” : “3d30ab22567e”,  
“cluster\_name” : “docker-cluster”,  
“cluster\_uuid” : “zsKUfE6GQHWdTi—XvHkA”,  
“version” : {  
“number” : “7.17.5”,  
“build\_flavor” : “default”,  
“build\_type” : “docker”,  
“build\_hash” : “8d61b4f7ddf931f219e3745f295ed2bbc50c8e84”,  
“build\_date” : “2022-06-23T21:57:28.736740635Z”,  
“build\_snapshot” : false,  
“lucene\_version” : “8.11.1”,  
“minimum\_wire\_compatibility\_version” : “6.8.0”,  
“minimum\_index\_compatibility\_version” : “6.0.0-beta1”  
},  
“tagline” : “You Know, for Search”  
}

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [August 17, 2022, 3:54am UTC](https://community.dremio.com/t/not-able-to-connect-to-elastic-search-from-dremio-gui-to-add-data-source/9548/2 "2022-08-17T03:54:23Z")

</div>

@ssabat See if the 2 issues that were solved for the same error in this thread is applicable in your case too

> [@Unable to connect to Elasticsearch 6.5.1](https://community.dremio.com/t/unable-to-connect-to-elasticsearch-6-5-1/2532/6):
>
> @christopherrbyrd, Looked at your logfile and it looks like there is a connection refused. From the Dremio coordinator can you try “telnet es-host port”? 2020-02-24 03:35:24,935 [Plugin Startup: ShowMe] INFO c.d.p.elastic.ElasticConnectionPool - User Error Occurred [ErrorId: 8ec4b6d5-3be3-4b16-8e73-cf79bfd69098] com.dremio.common.exceptions.UserException: Encountered a problem while executing com.dremio.plugins.elastic.ElasticActions$NodesInfo@76485c1e. Cannot gather Elasticsearch nodes infor…
