# Escape character while connecting with Elastic Search

**URL:** <https://discuss.elastic.co/t/escape-character-while-connecting-with-elastic-search/317439>\
**Category:** Elasticsearch\
**Created:** [October 25, 2022, 7:38pm UTC](https://discuss.elastic.co/t/escape-character-while-connecting-with-elastic-search/317439 "2022-10-25T19:38:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karan\_Jain1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karan_jain1/32/112513_2.png) [@Karan\_Jain1](https://discuss.elastic.co/u/Karan_Jain1)\
**Post date:** [October 25, 2022, 7:38pm UTC](https://discuss.elastic.co/t/escape-character-while-connecting-with-elastic-search/317439/1 "2022-10-25T19:38:56Z")

</div>

Hi

In our cluster, the Elastic Search version is 7.6.1 and security is enabled using OpenDistro (please refer [https://opendistro.github.io/for-elasticsearch/](https://opendistro.github.io/for-elasticsearch/) ) of a compatible OD version of 1.6 and backup ( please refer [Snapshot and restore | Elasticsearch Guide [8.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-restore.html) ) is also enabled for the cluster. I have been trying to connect with ES server with following command:-

curl --max-time 50 --connect-timeout 50 --insecure -X GET -u uname:pwd "[https://es-data-fqdn:9200/\_cat/snapshots/back-up-repo-name?h=snapshot,status,start\_time,end\_time,duration,indices,successful\_shards,failed\_shards,total\_shards&format=json](https://es-data-fqdn:9200/_cat/snapshots/back-up-repo-name?h=snapshot,status,start_time,end_time,duration,indices,successful_shards,failed_shards,total_shards&format=json)"

If **pwd** in above command contains special characters, we need to escape it. Can you please tell which special characters we need to escape for it?

---

<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 25, 2022, 7:38pm UTC](https://discuss.elastic.co/t/escape-character-while-connecting-with-elastic-search/317439/2 "2022-10-25T19:38:56Z")

</div>

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 25, 2022, 8:14pm UTC](https://discuss.elastic.co/t/escape-character-while-connecting-with-elastic-search/317439/3 "2022-10-25T20:14:59Z")

</div>

Hello,

Opendistro and Opensearch are not supported in this forum, you need to check this issue in their forum.

---

<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:** [November 22, 2022, 8:15pm UTC](https://discuss.elastic.co/t/escape-character-while-connecting-with-elastic-search/317439/4 "2022-11-22T20:15:08Z")

</div>

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