# Elasticsearch

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

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

**Page:** 583

---

## [Getting ConnectTimeoutException When joining in cluster Even if nodes are reachable](https://discuss.elastic.co/t/getting-connecttimeoutexception-when-joining-in-cluster-even-if-nodes-are-reachable/281998)

<div class="topic-metadata">

**Author:** [@ziw028](https://discuss.elastic.co/u/ziw028)\
**Replies:** 5\
**Last updated:** [September 3, 2021, 4:56am UTC](https://discuss.elastic.co/t/getting-connecttimeoutexception-when-joining-in-cluster-even-if-nodes-are-reachable/281998 "2021-09-03T04:56:01Z")

</div>

I have elasticsearch deployed on 2 node deployment setup (node1, node2) on remote machine & using the Java API to connect to it. Originally both nodes were in different clusters, and each of them is master node. Then we …

---

## [Cross Cluster Search without modifying existing query](https://discuss.elastic.co/t/cross-cluster-search-without-modifying-existing-query/283235)

<div class="topic-metadata">

**Author:** [@yestoprince](https://discuss.elastic.co/u/yestoprince)\
**Replies:** 0\
**Last updated:** [September 3, 2021, 4:53am UTC](https://discuss.elastic.co/t/cross-cluster-search-without-modifying-existing-query/283235 "2021-09-03T04:53:20Z")

</div>

Hi, I have two clusters one is "Cluster A" and other is "Cluster B". To perform search on cluster A, I am using below query:- \< GET /test\_index/\_search { "query":{ "match\_all":{} } } /\> But to search across mul…

---

## [Shard routing](https://discuss.elastic.co/t/shard-routing/283137)

<div class="topic-metadata">

**Author:** [@kbi753](https://discuss.elastic.co/u/kbi753)\
**Replies:** 4\
**Last updated:** [September 3, 2021, 12:26am UTC](https://discuss.elastic.co/t/shard-routing/283137 "2021-09-03T00:26:09Z")

</div>

Hello, TL; DR; How to route all indices to some nodes except some other indices to other dedicated nodes ? Or... explain me why am I on the wrong way :slight\_smile: We use ELK for a few months mostly for logging cen…

---

## [org.elasticsearch.client.indices.IndexTemplateMetaData missing in elasticsearch-rest-high-level-client-7.10.0.jar](https://discuss.elastic.co/t/org-elasticsearch-client-indices-indextemplatemetadata-missing-in-elasticsearch-rest-high-level-client-7-10-0-jar/282700)

<div class="topic-metadata">

**Author:** [@plm](https://discuss.elastic.co/u/plm)\
**Replies:** 6\
**Last updated:** [September 2, 2021, 11:41pm UTC](https://discuss.elastic.co/t/org-elasticsearch-client-indices-indextemplatemetadata-missing-in-elasticsearch-rest-high-level-client-7-10-0-jar/282700 "2021-09-02T23:41:56Z")

</div>

Hi, org.elasticsearch.client.indices.IndexTemplateMetaData is present in elasticsearch-rest-high-level-client-7.7.0.jar: ThinkPad-X1-Carbon-6th:~/.m2/repository$ jar tvf org/elasticsearch/client/elasticsearch-rest-high…

---

## [Using variables inside of API](https://discuss.elastic.co/t/using-variables-inside-of-api/283219)

<div class="topic-metadata">

**Author:** [@lcarr](https://discuss.elastic.co/u/lcarr)\
**Replies:** 0\
**Last updated:** [September 2, 2021, 9:48pm UTC](https://discuss.elastic.co/t/using-variables-inside-of-api/283219 "2021-09-02T21:48:27Z")

</div>

OK - am losing my hair over this - I have a query that I am pulling data from the sample data index - I want to put the value of that query into the Put\_role api via python script - I am getting errors as I am sure tha…

---

## [Develop ELK Cluster](https://discuss.elastic.co/t/develop-elk-cluster/283004)

<div class="topic-metadata">

**Author:** [@psanggabuana](https://discuss.elastic.co/u/psanggabuana)\
**Replies:** 9\
**Last updated:** [September 2, 2021, 10:21pm UTC](https://discuss.elastic.co/t/develop-elk-cluster/283004 "2021-09-02T22:21:05Z")

</div>

Hi All, I have plan to create Elastic Cluster. I have prepared 3 elastic servers and SAN Storage. I will create cluster which the three nodes. I need insight to join SAN Storage to the cluster. How to join the SAN S…

---

## [Do ingest pipeline slow down the performance of a cluster?](https://discuss.elastic.co/t/do-ingest-pipeline-slow-down-the-performance-of-a-cluster/283197)

<div class="topic-metadata">

**Author:** [@marone](https://discuss.elastic.co/u/marone)\
**Replies:** 1\
**Last updated:** [September 2, 2021, 4:51pm UTC](https://discuss.elastic.co/t/do-ingest-pipeline-slow-down-the-performance-of-a-cluster/283197 "2021-09-02T16:51:31Z")

</div>

Hi I am wondering if transformations (with ingest pipeline) affect the performance of a given cluster. I had some transformations executed outside of ELK cluster, then decided to implement them with processors, the amou…

---

## [Query\_string DSL fails when just one search term word changes - reliably](https://discuss.elastic.co/t/query-string-dsl-fails-when-just-one-search-term-word-changes-reliably/282602)

<div class="topic-metadata">

**Author:** [@steveh](https://discuss.elastic.co/u/steveh)\
**Replies:** 6\
**Last updated:** [September 2, 2021, 4:05pm UTC](https://discuss.elastic.co/t/query-string-dsl-fails-when-just-one-search-term-word-changes-reliably/282602 "2021-09-02T16:05:14Z")

</div>

Weird problem I cannot explain or solve! On my production server queries can fail if one word changes. This is reliable. Its just the word change that triggers the error, not a fluke of unfortunate timing (i.e. the se…

---

## [Slow query with aggregations](https://discuss.elastic.co/t/slow-query-with-aggregations/283143)

<div class="topic-metadata">

**Author:** [@Drept](https://discuss.elastic.co/u/Drept)\
**Replies:** 7\
**Last updated:** [September 2, 2021, 3:47pm UTC](https://discuss.elastic.co/t/slow-query-with-aggregations/283143 "2021-09-02T15:47:17Z")

</div>

I have implemented a system of aggregations for search filters and am enduring speed problems with a bit longer queries: there are no problems when a query contains up to 4 words but extremely slow queries onward. I hav…

---

## [Reduce number of shards to the same index?](https://discuss.elastic.co/t/reduce-number-of-shards-to-the-same-index/283186)

<div class="topic-metadata">

**Author:** [@riahc3](https://discuss.elastic.co/u/riahc3)\
**Replies:** 2\
**Last updated:** [September 2, 2021, 3:27pm UTC](https://discuss.elastic.co/t/reduce-number-of-shards-to-the-same-index/283186 "2021-09-02T15:27:07Z")

</div>

Hello I know of the reindex and shrink API calls BUT Im trying to see how to do it without creating a new index (or better yet, without touching the creation date of each index) How can I do this?

---

## [No connection could be made because the target machine actively refused it](https://discuss.elastic.co/t/no-connection-could-be-made-because-the-target-machine-actively-refused-it/283179)

<div class="topic-metadata">

**Author:** [@sarac1](https://discuss.elastic.co/u/sarac1)\
**Replies:** 2\
**Last updated:** [September 2, 2021, 2:54pm UTC](https://discuss.elastic.co/t/no-connection-could-be-made-because-the-target-machine-actively-refused-it/283179 "2021-09-02T14:54:50Z")

</div>

Hi, I see this issue comes up often. However the answers in the posts I've looked at have no fixed my issue, I've gotten closer, but not all the way. I have a single ELK system from the latest bitnami 7.14 image. I am…

---

## [Update "Living" values using update by query](https://discuss.elastic.co/t/update-living-values-using-update-by-query/281996)

<div class="topic-metadata">

**Author:** [@pkward](https://discuss.elastic.co/u/pkward)\
**Replies:** 2\
**Last updated:** [September 2, 2021, 2:22pm UTC](https://discuss.elastic.co/t/update-living-values-using-update-by-query/281996 "2021-09-02T14:22:08Z")

</div>

Hi, I'm attempting to create a "score" field that will hold a value that will change whenever the sum of other fields change, but I'm not sure if this is feasible with update-by-query. For example, if I wanted to create…

---

## [Elasticsearch and Kibana network.host CIDR?](https://discuss.elastic.co/t/elasticsearch-and-kibana-network-host-cidr/282612)

<div class="topic-metadata">

**Author:** [@Tydorius](https://discuss.elastic.co/u/Tydorius)\
**Replies:** 3\
**Last updated:** [September 2, 2021, 1:51pm UTC](https://discuss.elastic.co/t/elasticsearch-and-kibana-network-host-cidr/282612 "2021-09-02T13:51:50Z")

</div>

Good afternoon (At least, for EST) - Do the various hosts field in the elasticsearch.yml and kibana.yml file support CIDR for restricting access to specific subnets? I attempted to set network.host: 10.0.0.0/24 And E…

---

## [Service will not start (RHE7)](https://discuss.elastic.co/t/service-will-not-start-rhe7/282591)

<div class="topic-metadata">

**Author:** [@stacey](https://discuss.elastic.co/u/stacey)\
**Replies:** 7\
**Last updated:** [September 2, 2021, 1:09pm UTC](https://discuss.elastic.co/t/service-will-not-start-rhe7/282591 "2021-09-02T13:09:22Z")

</div>

Hi I have installed elasticsearch via the rpm as per the documentation. But I am unable to start the elasticsearch service, but running directly works (with warnings). ES 7.14.0 JDK (bundled): openjdk version "16.0.…

---

## [Additional Payload in Watcher](https://discuss.elastic.co/t/additional-payload-in-watcher/282959)

<div class="topic-metadata">

**Author:** [@6igwig](https://discuss.elastic.co/u/6igwig)\
**Replies:** 2\
**Last updated:** [September 2, 2021, 12:27pm UTC](https://discuss.elastic.co/t/additional-payload-in-watcher/282959 "2021-09-02T12:27:29Z")

</div>

On this post @spinscale mentioned adding the results of the script transform to an "additional payload" How is that done? (As opposed to replacing the current payload with the results of a transform)

---

## [Difference of min and max aggregation for missing values](https://discuss.elastic.co/t/difference-of-min-and-max-aggregation-for-missing-values/283158)

<div class="topic-metadata">

**Author:** [@str8y](https://discuss.elastic.co/u/str8y)\
**Replies:** 0\
**Last updated:** [September 2, 2021, 10:53am UTC](https://discuss.elastic.co/t/difference-of-min-and-max-aggregation-for-missing-values/283158 "2021-09-02T10:53:18Z")

</div>

Hi, I'm trying to understand the difference of the min and max aggregation for documents where all field values are missing. Let's imagine the following simple document: PUT /test/\_doc/1 { "name": "A", "number": n…

---

## [Send openshift metricbeat to remote elasticsearch's custom index](https://discuss.elastic.co/t/send-openshift-metricbeat-to-remote-elasticsearchs-custom-index/283155)

<div class="topic-metadata">

**Author:** [@inhinyera16](https://discuss.elastic.co/u/inhinyera16)\
**Replies:** 0\
**Last updated:** [September 2, 2021, 10:18am UTC](https://discuss.elastic.co/t/send-openshift-metricbeat-to-remote-elasticsearchs-custom-index/283155 "2021-09-02T10:18:27Z")

</div>

Can anyone tell me how to send the metricbeat data from from openshift to remote elasticsearch custom index? In regular metricbeat yaml file, we have these config: setup.template.enabled: true setup.template.name: "me…

---

## [Ability to manipulate the slope "m" of linear function used to boost relevance scores](https://discuss.elastic.co/t/ability-to-manipulate-the-slope-m-of-linear-function-used-to-boost-relevance-scores/283144)

<div class="topic-metadata">

**Author:** [@jsandeep316](https://discuss.elastic.co/u/jsandeep316)\
**Replies:** 0\
**Last updated:** [September 2, 2021, 8:37am UTC](https://discuss.elastic.co/t/ability-to-manipulate-the-slope-m-of-linear-function-used-to-boost-relevance-scores/283144 "2021-09-02T08:37:28Z")

</div>

Hi there, I have a use case where I need to augment the text based relevance scoring (such as TF-IDF) with a linear function. However, when I went through the Elasticsearch documentation, nowhere does it mention that the…

---

## [Cardinality agg off by one even after precision increase](https://discuss.elastic.co/t/cardinality-agg-off-by-one-even-after-precision-increase/283096)

<div class="topic-metadata">

**Author:** [@matt.snyder](https://discuss.elastic.co/u/matt.snyder)\
**Replies:** 1\
**Last updated:** [September 2, 2021, 7:50am UTC](https://discuss.elastic.co/t/cardinality-agg-off-by-one-even-after-precision-increase/283096 "2021-09-02T07:50:06Z")

</div>

Docs in my index have a unique id field, which I want to count using a cardinality agg. I found that if my result set is 5792 docs or smaller, the cardinality agg is accurate, but if I go to 5793 or larger, the cardinal…

---

## [Prevent duplicates in a data stream](https://discuss.elastic.co/t/prevent-duplicates-in-a-data-stream/283076)

<div class="topic-metadata">

**Author:** [@romathonat](https://discuss.elastic.co/u/romathonat)\
**Replies:** 5\
**Last updated:** [September 2, 2021, 7:40am UTC](https://discuss.elastic.co/t/prevent-duplicates-in-a-data-stream/283076 "2021-09-02T07:40:05Z")

</div>

Hello, Is there a way to prevent duplicates in a data stream ? For a given index, specifying the \_id gives us the guarantee that there will be no duplicate with same \_id. For data streams however, it does not work app…

---

## [How to delete all the elasticsearch indices, that start with a certain string, based on date ranges](https://discuss.elastic.co/t/how-to-delete-all-the-elasticsearch-indices-that-start-with-a-certain-string-based-on-date-ranges/283063)

<div class="topic-metadata">

**Author:** [@JaswantG](https://discuss.elastic.co/u/JaswantG)\
**Replies:** 7\
**Last updated:** [September 2, 2021, 6:03am UTC](https://discuss.elastic.co/t/how-to-delete-all-the-elasticsearch-indices-that-start-with-a-certain-string-based-on-date-ranges/283063 "2021-09-02T06:03:05Z")

</div>

I am using elasticsearch 2.2.0. I have a requirement wherein I have to delete certain indices, which are created on a day-to-day basis, based on two different dates. (format - abc-xyz-yyyy-mm-dd) For e.g. - There are 1…

---

## [Elasticsearch.service: Failed with result 'exit-code'](https://discuss.elastic.co/t/elasticsearch-service-failed-with-result-exit-code/283123)

<div class="topic-metadata">

**Author:** [@padamrai](https://discuss.elastic.co/u/padamrai)\
**Replies:** 7\
**Last updated:** [September 2, 2021, 5:51am UTC](https://discuss.elastic.co/t/elasticsearch-service-failed-with-result-exit-code/283123 "2021-09-02T05:51:26Z")

</div>

My Elasticsearch is not starting, I don't know why I am getting below error. root@i3insight2:~# systemctl status elasticsearch.service â elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/e…

---

## [How to connect Elastic Cloud with Laravel Scout?](https://discuss.elastic.co/t/how-to-connect-elastic-cloud-with-laravel-scout/283125)

<div class="topic-metadata">

**Author:** [@Tufan\_Cagkan\_Sokmen](https://discuss.elastic.co/u/Tufan_Cagkan_Sokmen)\
**Replies:** 0\
**Last updated:** [September 2, 2021, 5:31am UTC](https://discuss.elastic.co/t/how-to-connect-elastic-cloud-with-laravel-scout/283125 "2021-09-02T05:31:55Z")

</div>

Hello, Using that package to manage my scout with elasticsearch. I am using elastic cloud service. But that doesnt connect for any. What should I enter for host information? blabla-central1.gcp.cloud.es.io/myproje…

---

## [How to use elasticsearch sliced scroll with multiprocessing in python?](https://discuss.elastic.co/t/how-to-use-elasticsearch-sliced-scroll-with-multiprocessing-in-python/283108)

<div class="topic-metadata">

**Author:** [@Prem\_George](https://discuss.elastic.co/u/Prem_George)\
**Replies:** 1\
**Last updated:** [September 2, 2021, 1:36am UTC](https://discuss.elastic.co/t/how-to-use-elasticsearch-sliced-scroll-with-multiprocessing-in-python/283108 "2021-09-02T01:36:49Z")

</div>

I'm pulling data from elastic search using python client scroll id and appending in a dataframe as follows import pandas as pd from elasticsearch import Elasticsearch es = Elasticsearch(\[{'host': 'localhost', 'port': 92…

---

## [Elasticsearch.service has failed (code=exited, status=143)](https://discuss.elastic.co/t/elasticsearch-service-has-failed-code-exited-status-143/283072)

<div class="topic-metadata">

**Author:** [@larzu](https://discuss.elastic.co/u/larzu)\
**Replies:** 1\
**Last updated:** [September 1, 2021, 10:17pm UTC](https://discuss.elastic.co/t/elasticsearch-service-has-failed-code-exited-status-143/283072 "2021-09-01T22:17:09Z")

</div>

I'm a "bit" lost with this Elasticsearch installation (for Magento). I was following the installation for Centos Install Elasticsearch with RPM | Elasticsearch Guide \[7.14\] | Elastic Unfortunately Elasticsearch is not s…

---

## [Automatic Write Block on Index](https://discuss.elastic.co/t/automatic-write-block-on-index/283014)

<div class="topic-metadata">

**Author:** [@Aamir\_Rizwan](https://discuss.elastic.co/u/Aamir_Rizwan)\
**Replies:** 2\
**Last updated:** [September 1, 2021, 10:09pm UTC](https://discuss.elastic.co/t/automatic-write-block-on-index/283014 "2021-09-01T22:09:11Z")

</div>

I have 3 master and 3 data nodes. I was getting this error: AuthorizationException(403, 'cluster\_block\_exception', 'blocked by: \[FORBIDDEN/8/index write (api)\];') Increased the data nodes by 1 but still getting the sam…

---

## [How to check the progress of searchable snapshot action -?](https://discuss.elastic.co/t/how-to-check-the-progress-of-searchable-snapshot-action/283059)

<div class="topic-metadata">

**Author:** [@Kannappan\_Somu](https://discuss.elastic.co/u/Kannappan_Somu)\
**Replies:** 1\
**Last updated:** [September 1, 2021, 10:08pm UTC](https://discuss.elastic.co/t/how-to-check-the-progress-of-searchable-snapshot-action/283059 "2021-09-01T22:08:37Z")

</div>

How to check the progress of searchable snapshot action - progress ? How do we get to know how much data is left to be snapshotted ? is there any API for this ?

---

## [ElasticSearch as primary database and other solutions](https://discuss.elastic.co/t/elasticsearch-as-primary-database-and-other-solutions/283021)

<div class="topic-metadata">

**Author:** [@xemyleex](https://discuss.elastic.co/u/xemyleex)\
**Replies:** 5\
**Last updated:** [September 1, 2021, 10:07pm UTC](https://discuss.elastic.co/t/elasticsearch-as-primary-database-and-other-solutions/283021 "2021-09-01T22:07:50Z")

</div>

I am using elasticsearch as primary database. But due to the lack of the ACID properties, I want to: or replace it with another database with similar or better performances ( maybe postgresql or kafka/ksql ). or use ot…

---

## [Simultaneous data use of 2 indices differentes | Utilisation simultanée de 2 indices differents](https://discuss.elastic.co/t/simultaneous-data-use-of-2-indices-differentes-utilisation-simultanee-de-2-indices-differents/281688)

<div class="topic-metadata">

**Author:** [@kalache](https://discuss.elastic.co/u/kalache)\
**Replies:** 5\
**Last updated:** [September 1, 2021, 9:54pm UTC](https://discuss.elastic.co/t/simultaneous-data-use-of-2-indices-differentes-utilisation-simultanee-de-2-indices-differents/281688 "2021-09-01T21:54:33Z")

</div>

Hello, I’m improving the IT inventory and I want to use the Elastic Stack to made it. Logstash collect data into CSV file, Elasticsearch analyze this data and Kibana let us to visualize the data. Why we want to use El…

---

## [Filter in aggregation not working with top hits](https://discuss.elastic.co/t/filter-in-aggregation-not-working-with-top-hits/282964)

<div class="topic-metadata">

**Author:** [@saurabh.biswas](https://discuss.elastic.co/u/saurabh.biswas)\
**Replies:** 2\
**Last updated:** [September 1, 2021, 8:17pm UTC](https://discuss.elastic.co/t/filter-in-aggregation-not-working-with-top-hits/282964 "2021-09-01T20:17:58Z")

</div>

Hello, I'm trying to write a query to form an aggregation of all the colleges under a university, put them into country id buckets and get the top colleges based out of each country. Somehow I'm not getting what I'm ex…

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

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