# Elasticsearch

**URL:** https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=979

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

**Page:** 980

---

## [Unable to connect to Cloud Platform via Nest](https://discuss.elastic.co/t/unable-to-connect-to-cloud-platform-via-nest/224305)

<div class="topic-metadata">

**Author:** [@Justin\_Williams](https://discuss.elastic.co/u/Justin_Williams)\
**Replies:** 2\
**Last updated:** [March 23, 2020, 5:14pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-cloud-platform-via-nest/224305 "2020-03-23T17:14:30Z")

</div>

Here is my C# code: try { var credentials = new BasicAuthenticationCredentials(configuration\["Elastic:Username"\], configuration\["Elastic:Password"\]); var pool = new CloudConne…

---

## [Elasticsearch snapshot backups in azure repository unknown host exception](https://discuss.elastic.co/t/elasticsearch-snapshot-backups-in-azure-repository-unknown-host-exception/224436)

<div class="topic-metadata">

**Author:** [@Yanislav\_Shetrev](https://discuss.elastic.co/u/Yanislav_Shetrev)\
**Replies:** 2\
**Last updated:** [March 23, 2020, 4:29pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-backups-in-azure-repository-unknown-host-exception/224436 "2020-03-23T16:29:53Z")

</div>

Trying to create backup repository for snapshots in Elasticsearch 6.5.2. But I am getting Internal server error(500) when executing the curl below. The error message is {"type":"unknown\_host\_exception","reason":"{{stora…

---

## [After Xpack enabled - recieve Logs about Plaintext traffic on encrypted channel](https://discuss.elastic.co/t/after-xpack-enabled-recieve-logs-about-plaintext-traffic-on-encrypted-channel/224641)

<div class="topic-metadata">

**Author:** [@Moritz\_Kiesewetter](https://discuss.elastic.co/u/Moritz_Kiesewetter)\
**Replies:** 1\
**Last updated:** [March 23, 2020, 2:58pm UTC](https://discuss.elastic.co/t/after-xpack-enabled-recieve-logs-about-plaintext-traffic-on-encrypted-channel/224641 "2020-03-23T14:58:58Z")

</div>

Hello, so i set up XPack security in my ELK-Cluster ( 3 Hosts - server01(master) server02 & 03 (worker). I followed the guide provided by elastic - and set up the certficates including my Server01 as CA. Here's my Con…

---

## [Need help understanding hot threads](https://discuss.elastic.co/t/need-help-understanding-hot-threads/223181)

<div class="topic-metadata">

**Author:** [@jyip\_worky](https://discuss.elastic.co/u/jyip_worky)\
**Replies:** 7\
**Last updated:** [March 23, 2020, 2:00pm UTC](https://discuss.elastic.co/t/need-help-understanding-hot-threads/223181 "2020-03-23T14:00:57Z")

</div>

I have a 5 node cluster on kubernetes, 2 data nodes, 3 masters. This is sitting underneath graylog. For some reason, usually only 1 data node is extremely busy. And lately the load really high on it. I've grabbed the hot…

---

## [Noobish Elasticsearch Python question](https://discuss.elastic.co/t/noobish-elasticsearch-python-question/224444)

<div class="topic-metadata">

**Author:** [@willemdh](https://discuss.elastic.co/u/willemdh)\
**Replies:** 12\
**Last updated:** [March 23, 2020, 1:58pm UTC](https://discuss.elastic.co/t/noobish-elasticsearch-python-question/224444 "2020-03-23T13:58:13Z")

</div>

Hello, Since corona-wise, we got to stay at home nowadays, I was thinking it's a good time to learn a bit about the Elastic Python client library. First of all, apologies for the noobish question.. I seem to have diffi…

---

## [Documents appearing a bool query where one must clause does not match](https://discuss.elastic.co/t/documents-appearing-a-bool-query-where-one-must-clause-does-not-match/224438)

<div class="topic-metadata">

**Author:** [@chapmantrain](https://discuss.elastic.co/u/chapmantrain)\
**Replies:** 7\
**Last updated:** [March 23, 2020, 1:23pm UTC](https://discuss.elastic.co/t/documents-appearing-a-bool-query-where-one-must-clause-does-not-match/224438 "2020-03-23T13:23:55Z")

</div>

I may not really understand the scoring issue but here is my problem. I have a bool query. I am looking particular devices (a\_device\_hostname) with the other characteristics in the must clause. { "size": 10, "\_sourc…

---

## [How Elasticsearch co-ordinating node handles RestClient timeouts?](https://discuss.elastic.co/t/how-elasticsearch-co-ordinating-node-handles-restclient-timeouts/224669)

<div class="topic-metadata">

**Author:** [@the123saurav](https://discuss.elastic.co/u/the123saurav)\
**Replies:** 1\
**Last updated:** [March 23, 2020, 12:50pm UTC](https://discuss.elastic.co/t/how-elasticsearch-co-ordinating-node-handles-restclient-timeouts/224669 "2020-03-23T12:50:36Z")

</div>

We are using ES 6.0. We use HighLevelRest client to talk to ES for search requests with socket timeout(as described here https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/\_timeouts.html) set to 500m…

---

## [Gc overhead, spent \[\] collecting in the last \[\], causing crashes](https://discuss.elastic.co/t/gc-overhead-spent-collecting-in-the-last-causing-crashes/224049)

<div class="topic-metadata">

**Author:** [@norup](https://discuss.elastic.co/u/norup)\
**Replies:** 21\
**Last updated:** [March 23, 2020, 12:26pm UTC](https://discuss.elastic.co/t/gc-overhead-spent-collecting-in-the-last-causing-crashes/224049 "2020-03-23T12:26:31Z")

</div>

Im getting this alot: Which i think means something is wrong with my resource amounts. The VM has 64GB memory so that should be plenty. The jvm.options has -Xms16g and -Xmx16g . What else is relevant here? There…

---

## [What is the difference between hot. cold and warm indices when we use ILM on Elasticsearch?](https://discuss.elastic.co/t/what-is-the-difference-between-hot-cold-and-warm-indices-when-we-use-ilm-on-elasticsearch/222678)

<div class="topic-metadata">

**Author:** [@Rahmat\_Agung\_W](https://discuss.elastic.co/u/Rahmat_Agung_W)\
**Replies:** 6\
**Last updated:** [March 23, 2020, 12:26pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-hot-cold-and-warm-indices-when-we-use-ilm-on-elasticsearch/222678 "2020-03-23T12:26:09Z")

</div>

Hi, i need more deep explanation the difference between phase on ILM. In documentation it is said: hot : The index is actively being written to warm: The index is generally not being written to, but is still queried co…

---

## [Outofmemory exception in elasticsearch](https://discuss.elastic.co/t/outofmemory-exception-in-elasticsearch/224663)

<div class="topic-metadata">

**Author:** [@surajnayak88foru](https://discuss.elastic.co/u/surajnayak88foru)\
**Replies:** 1\
**Last updated:** [March 23, 2020, 12:02pm UTC](https://discuss.elastic.co/t/outofmemory-exception-in-elasticsearch/224663 "2020-03-23T12:02:28Z")

</div>

Hi, i am running elasticsearch as a part of application arcitecture, we have elasticsearch running in 3 identical machine, sometimes we see outofmemory exception and all it gets terminated in all the 3 machines. below …

---

## [Put SLM as per the documents complains about the index name?](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923)

<div class="topic-metadata">

**Author:** [@runtman](https://discuss.elastic.co/u/runtman)\
**Replies:** 12\
**Last updated:** [March 23, 2020, 11:38am UTC](https://discuss.elastic.co/t/put-slm-as-per-the-documents-complains-about-the-index-name/222923 "2020-03-23T11:38:09Z")

</div>

Hello, I use elastic cloud and apart from the automatic backups that take place, I'd like to use SLM so we can have 2 sets of backups. Disaster recovery etc. So I have been following this: https://www.elastic.co/guide/…

---

## [Elastic Search is not assigning index to all the nodes in the cluster](https://discuss.elastic.co/t/elastic-search-is-not-assigning-index-to-all-the-nodes-in-the-cluster/224474)

<div class="topic-metadata">

**Author:** [@Deepthi\_Tummala](https://discuss.elastic.co/u/Deepthi_Tummala)\
**Replies:** 1\
**Last updated:** [March 23, 2020, 11:08am UTC](https://discuss.elastic.co/t/elastic-search-is-not-assigning-index-to-all-the-nodes-in-the-cluster/224474 "2020-03-23T11:08:19Z")

</div>

Hi, I have a 6 node ES cluster. When a new index is created it is assigning to only two nodes..Is there any setting I need to set to even distribution of shards of each index along all the nodes.... Thanks.

---

## [java.io.IOException: could not remove the following files](https://discuss.elastic.co/t/java-io-ioexception-could-not-remove-the-following-files/224591)

<div class="topic-metadata">

**Author:** [@xlogin](https://discuss.elastic.co/u/xlogin)\
**Replies:** 8\
**Last updated:** [March 23, 2020, 11:02am UTC](https://discuss.elastic.co/t/java-io-ioexception-could-not-remove-the-following-files/224591 "2020-03-23T11:02:38Z")

</div>

\*\*Describe the feature\*\* : I created a backup repository to report an error。 \*\*Elasticsearch version\*\* ( \`bin/elasticsearch --version\` ): 6.8.6 \*\*JVM version\*\* ( \`java -version\` ): jdk-13.0.1+9 \*\*OS version\*\* ( \`un…

---

## [NoLivingConnectionsError (Node.js)](https://discuss.elastic.co/t/nolivingconnectionserror-node-js/224537)

<div class="topic-metadata">

**Author:** [@kulakowka](https://discuss.elastic.co/u/kulakowka)\
**Replies:** 1\
**Last updated:** [March 23, 2020, 10:58am UTC](https://discuss.elastic.co/t/nolivingconnectionserror-node-js/224537 "2020-03-23T10:58:35Z")

</div>

Hello. Please help me figure it out. I am using npm package: @elastic/elasticsearch 7.6.0 In recent days, I regularly notice an error: There are no living connections At first I thought that this occurs under heavy…

---

## [Transform documents to create new fields from aggregated data](https://discuss.elastic.co/t/transform-documents-to-create-new-fields-from-aggregated-data/224562)

<div class="topic-metadata">

**Author:** [@Anup\_Shirolkar](https://discuss.elastic.co/u/Anup_Shirolkar)\
**Replies:** 1\
**Last updated:** [March 23, 2020, 10:56am UTC](https://discuss.elastic.co/t/transform-documents-to-create-new-fields-from-aggregated-data/224562 "2020-03-23T10:56:44Z")

</div>

Hi, I am using the opensource version of elastic and want to transform my data as follows: The metric data is collected from a Hadoop cluster over JMX interface Mapping: @queue :keyword @metric\_type :keyword @cluster …

---

## [Know if one or more indexes are marked as read only](https://discuss.elastic.co/t/know-if-one-or-more-indexes-are-marked-as-read-only/224585)

<div class="topic-metadata">

**Author:** [@Veeresh\_Reddy](https://discuss.elastic.co/u/Veeresh_Reddy)\
**Replies:** 1\
**Last updated:** [March 23, 2020, 10:53am UTC](https://discuss.elastic.co/t/know-if-one-or-more-indexes-are-marked-as-read-only/224585 "2020-03-23T10:53:40Z")

</div>

When an elastic index moves into a read only state, it can prevent additional data being written to the cluster. Typically a read only state occurs when an index in on a node that reaches 85% disk space used. The cluste…

---

## [Mapping dense\_vector type via NEST](https://discuss.elastic.co/t/mapping-dense-vector-type-via-nest/224635)

<div class="topic-metadata">

**Author:** [@mbd2506](https://discuss.elastic.co/u/mbd2506)\
**Replies:** 0\
**Last updated:** [March 23, 2020, 9:49am UTC](https://discuss.elastic.co/t/mapping-dense-vector-type-via-nest/224635 "2020-03-23T09:49:29Z")

</div>

How we can mapping property of dense\_vector type via NEST? Thanks.

---

## [\[Java\] Can CriteriaQuery build multi-level request for ElasticSearch?](https://discuss.elastic.co/t/java-can-criteriaquery-build-multi-level-request-for-elasticsearch/224619)

<div class="topic-metadata">

**Author:** [@ndhcoder](https://discuss.elastic.co/u/ndhcoder)\
**Replies:** 1\
**Last updated:** [March 23, 2020, 10:25am UTC](https://discuss.elastic.co/t/java-can-criteriaquery-build-multi-level-request-for-elasticsearch/224619 "2020-03-23T10:25:14Z")

</div>

Hi, I'm learning using Java maven elasticsearch-spring-data with CriteriaQuery for build my query. But after tried it, and read source code builder on CriteriaQueryProcessor.java, I saw that only create query at first …

---

## [Elasticsearch snapshot backup in another server is not happening](https://discuss.elastic.co/t/elasticsearch-snapshot-backup-in-another-server-is-not-happening/223375)

<div class="topic-metadata">

**Author:** [@Joseph\_Raj](https://discuss.elastic.co/u/Joseph_Raj)\
**Replies:** 15\
**Last updated:** [March 23, 2020, 10:14am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-backup-in-another-server-is-not-happening/223375 "2020-03-23T10:14:14Z")

</div>

We are able to backup the snapshot in the same server but we are unable to backup it in other destination server. We have changed the below settings in elasticsearch.yml file. path.repo: \["/XSNW10S863S.pharma.aventis.…

---

## [Convert Field data type while re-indexing the Index In Elasticsearch](https://discuss.elastic.co/t/convert-field-data-type-while-re-indexing-the-index-in-elasticsearch/224378)

<div class="topic-metadata">

**Author:** [@avinash\_kumawat](https://discuss.elastic.co/u/avinash_kumawat)\
**Replies:** 8\
**Last updated:** [March 23, 2020, 10:07am UTC](https://discuss.elastic.co/t/convert-field-data-type-while-re-indexing-the-index-in-elasticsearch/224378 "2020-03-23T10:07:44Z")

</div>

Hello All, Is there any way to convert string data type into object type or nested type and vice-versa while re-indexing the Index using the POST \_reindex API in Elasticsearch? Regards, Avinash Kumawat

---

## [Get surrounding documents via API](https://discuss.elastic.co/t/get-surrounding-documents-via-api/222656)

<div class="topic-metadata">

**Author:** [@elasticUser5](https://discuss.elastic.co/u/elasticUser5)\
**Replies:** 6\
**Last updated:** [March 23, 2020, 9:31am UTC](https://discuss.elastic.co/t/get-surrounding-documents-via-api/222656 "2020-03-23T09:31:04Z")

</div>

Hello! Is there any way to replicate "Surrounding Documents" function from Kibana but via API? I'm trying different ways, but none is working (span\_near, scroll API...). Any help is appreciated!

---

## [Curator Filters output inconsistency - Depending on action type : close](https://discuss.elastic.co/t/curator-filters-output-inconsistency-depending-on-action-type-close/224630)

<div class="topic-metadata">

**Author:** [@Ankita\_Pachauri](https://discuss.elastic.co/u/Ankita_Pachauri)\
**Replies:** 0\
**Last updated:** [March 23, 2020, 9:28am UTC](https://discuss.elastic.co/t/curator-filters-output-inconsistency-depending-on-action-type-close/224630 "2020-03-23T09:28:24Z")

</div>

I have created an action file to close the indices whose timestamp pattern is %Y.%m.%d. In my indices, there are two types of same pattern i.e. metricbeat-7.3.2-2020.03.23 and kubernetes-7.5.1-2020.03.23. But after runni…

---

## [Adding copy\_to to type: geo\_point throws illegal\_state\_exception: "Can't get text on a END\_ARRAY" exception](https://discuss.elastic.co/t/adding-copy-to-to-type-geo-point-throws-illegal-state-exception-cant-get-text-on-a-end-array-exception/224072)

<div class="topic-metadata">

**Author:** [@shevah](https://discuss.elastic.co/u/shevah)\
**Replies:** 1\
**Last updated:** [March 23, 2020, 8:40am UTC](https://discuss.elastic.co/t/adding-copy-to-to-type-geo-point-throws-illegal-state-exception-cant-get-text-on-a-end-array-exception/224072 "2020-03-23T08:40:12Z")

</div>

Hi. I would like to replicate the behavior of \_all field of ES5. I am using copy\_to for that. But, adding copy\_to to a field of type: geo\_point throws illegal\_state\_exception: "Can't get text on a END\_ARRAY" exception. …

---

## [Search exact keyword from ES](https://discuss.elastic.co/t/search-exact-keyword-from-es/224594)

<div class="topic-metadata">

**Author:** [@Sridhar](https://discuss.elastic.co/u/Sridhar)\
**Replies:** 3\
**Last updated:** [March 23, 2020, 7:36am UTC](https://discuss.elastic.co/t/search-exact-keyword-from-es/224594 "2020-03-23T07:36:39Z")

</div>

Hi, I'm using the below query to search and fetch the latest 1 record from ES GET indexname/\_search { "query": { "dis\_max": { "queries": \[ { "match": { "data.target.sampler.keyword": "CPU" }}, …

---

## [Shard on disk with multiple path configuration not balanced](https://discuss.elastic.co/t/shard-on-disk-with-multiple-path-configuration-not-balanced/224607)

<div class="topic-metadata">

**Author:** [@andrewjo](https://discuss.elastic.co/u/andrewjo)\
**Replies:** 0\
**Last updated:** [March 23, 2020, 7:29am UTC](https://discuss.elastic.co/t/shard-on-disk-with-multiple-path-configuration-not-balanced/224607 "2020-03-23T07:29:33Z")

</div>

Hi Guys, Any idea , how to balanced any shard on multiple path configuration in Elasticsearch? If path 1 already 95%, it cause failed in elasticsearch. No more ingestion on path 2. (Error : forbidden-12-index-read-only-a…

---

## [Number of elastic API request](https://discuss.elastic.co/t/number-of-elastic-api-request/224580)

<div class="topic-metadata">

**Author:** [@Incauto](https://discuss.elastic.co/u/Incauto)\
**Replies:** 1\
**Last updated:** [March 23, 2020, 4:42am UTC](https://discuss.elastic.co/t/number-of-elastic-api-request/224580 "2020-03-23T04:42:39Z")

</div>

HI, how I can know how many API request elastic search is getting?

---

## [ELK stack specs recomendations](https://discuss.elastic.co/t/elk-stack-specs-recomendations/224583)

<div class="topic-metadata">

**Author:** [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Replies:** 0\
**Last updated:** [March 23, 2020, 12:03am UTC](https://discuss.elastic.co/t/elk-stack-specs-recomendations/224583 "2020-03-23T00:03:16Z")

</div>

Grettings, what will be your recomended specs for Logstash, Elastic and kibana machines based on the folowing: I will consume about 1.000.000 documents daily The size of those documents, daily, will be about 1.5 GB 3 …

---

## [Mistake in DFI's documentation](https://discuss.elastic.co/t/mistake-in-dfis-documentation/223823)

<div class="topic-metadata">

**Author:** [@Ahmet\_Arslan](https://discuss.elastic.co/u/Ahmet_Arslan)\
**Replies:** 2\
**Last updated:** [March 22, 2020, 10:31pm UTC](https://discuss.elastic.co/t/mistake-in-dfis-documentation/223823 "2020-03-22T22:31:16Z")

</div>

Hi, There is a mistake in the documentation of the DFI Similarity \[1\]. It currently says " it is highly recommended to remove stop words" but it should be the opposite: " it is highly recommended not to remove stop word…

---

## [Sync from mongoDB to elasticsearch](https://discuss.elastic.co/t/sync-from-mongodb-to-elasticsearch/224023)

<div class="topic-metadata">

**Author:** [@deamnguyen](https://discuss.elastic.co/u/deamnguyen)\
**Replies:** 2\
**Last updated:** [March 22, 2020, 4:00pm UTC](https://discuss.elastic.co/t/sync-from-mongodb-to-elasticsearch/224023 "2020-03-22T16:00:22Z")

</div>

Hi all, I have questions about sync data from mongodb to elasticsearch, please give me permission: There are many ways to sync, which one have i used? Logstash, JDBC input plugin =\> Logstash file my config: jdbc …

---

## [Recommend Best Setting For ElasticSearch Index](https://discuss.elastic.co/t/recommend-best-setting-for-elasticsearch-index/224560)

<div class="topic-metadata">

**Author:** [@Ankit\_Gupta2](https://discuss.elastic.co/u/Ankit_Gupta2)\
**Replies:** 0\
**Last updated:** [March 22, 2020, 1:23pm UTC](https://discuss.elastic.co/t/recommend-best-setting-for-elasticsearch-index/224560 "2020-03-22T13:23:54Z")

</div>

Hey Guys, I have recently joined a project which is integrated with elasticsearch to store the JSON Request Response payload for each api call and transformation activities for each api call by a application. We are usin…

[Previous page](https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=978)

[Next page](https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=980)
