# Elasticsearch

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

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

**Page:** 269

---

## [Filter search by ids with BM25 score in Python (Elastic 8.7)](https://discuss.elastic.co/t/filter-search-by-ids-with-bm25-score-in-python-elastic-8-7/330625)

<div class="topic-metadata">

**Author:** [@Francisco\_Rocha](https://discuss.elastic.co/u/Francisco_Rocha)\
**Replies:** 2\
**Last updated:** [April 24, 2023, 2:32pm UTC](https://discuss.elastic.co/t/filter-search-by-ids-with-bm25-score-in-python-elastic-8-7/330625 "2023-04-24T14:32:46Z")

</div>

Hi folks, I'm working with Python client and would like to know if it is possible to do a search by target ids with BM25. I have a 500k index and a list of ids that I would like to filter and at the same time obtain BM2…

---

## [Adding syslog priority fields to System integration](https://discuss.elastic.co/t/adding-syslog-priority-fields-to-system-integration/330519)

<div class="topic-metadata">

**Author:** [@sebek](https://discuss.elastic.co/u/sebek)\
**Replies:** 2\
**Last updated:** [April 24, 2023, 2:28pm UTC](https://discuss.elastic.co/t/adding-syslog-priority-fields-to-system-integration/330519 "2023-04-24T14:28:32Z")

</div>

Hi, i'm trying to work out how to add information about syslog priority to my logdata in elasticsearch. I'm testing out a self managed ELK stack, for collecting syslog data from linux(ubuntu) servers and workstations. …

---

## [How to know how much resources are being used for machine learning?](https://discuss.elastic.co/t/how-to-know-how-much-resources-are-being-used-for-machine-learning/330606)

<div class="topic-metadata">

**Author:** [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Replies:** 1\
**Last updated:** [April 24, 2023, 11:49am UTC](https://discuss.elastic.co/t/how-to-know-how-much-resources-are-being-used-for-machine-learning/330606 "2023-04-24T11:49:28Z")

</div>

Hi, we are considering to add a new node exclusively for machine learning, how I can find out how much resources are being used for machine learning for all the jobs runing in real time? the documentation says that ther…

---

## [Unable to configure elastic search apt repository as a remote repository in Artifactory](https://discuss.elastic.co/t/unable-to-configure-elastic-search-apt-repository-as-a-remote-repository-in-artifactory/330286)

<div class="topic-metadata">

**Author:** [@joaobaptista](https://discuss.elastic.co/u/joaobaptista)\
**Replies:** 4\
**Last updated:** [April 24, 2023, 9:00am UTC](https://discuss.elastic.co/t/unable-to-configure-elastic-search-apt-repository-as-a-remote-repository-in-artifactory/330286 "2023-04-24T09:00:57Z")

</div>

Hi all, We are trying to configure Elasticsearch apt repository in Artifactory, but it always fails due to a error: "HTTP ERROR 404" We are using the following URL: https://artifacts.elastic.co/packages/8.x/apt The sa…

---

## [What diffirent about nested and bool composite query](https://discuss.elastic.co/t/what-diffirent-about-nested-and-bool-composite-query/330063)

<div class="topic-metadata">

**Author:** [@sslhj](https://discuss.elastic.co/u/sslhj)\
**Replies:** 2\
**Last updated:** [April 24, 2023, 7:55am UTC](https://discuss.elastic.co/t/what-diffirent-about-nested-and-bool-composite-query/330063 "2023-04-24T07:55:36Z")

</div>

I have devloped a component that translate expression to esdel, now i have an exp like that "((extras.key== ‘k1’ and extras.value==100 ) or (extras.key== “k2” and extras.value==”v2”))", in that, ”extras“ is a nested fie…

---

## [In Elastic search, can we change the names of retrieved fields of searched response dynamically, like mongoDB projection?](https://discuss.elastic.co/t/in-elastic-search-can-we-change-the-names-of-retrieved-fields-of-searched-response-dynamically-like-mongodb-projection/330599)

<div class="topic-metadata">

**Author:** [@cvam199](https://discuss.elastic.co/u/cvam199)\
**Replies:** 3\
**Last updated:** [April 24, 2023, 6:42am UTC](https://discuss.elastic.co/t/in-elastic-search-can-we-change-the-names-of-retrieved-fields-of-searched-response-dynamically-like-mongodb-projection/330599 "2023-04-24T06:42:21Z")

</div>

When I query on Elasticsearch (ES) to get some data, I get it in following format: Response: "hits" : \[ { "\_index" : "testpoc", "\_type" : "\_doc", "\_id" : "1", "\_score" : 1.0, …

---

## [Elasticsearch template not working](https://discuss.elastic.co/t/elasticsearch-template-not-working/330574)

<div class="topic-metadata">

**Author:** [@jiankunking](https://discuss.elastic.co/u/jiankunking)\
**Replies:** 7\
**Last updated:** [April 24, 2023, 6:13am UTC](https://discuss.elastic.co/t/elasticsearch-template-not-working/330574 "2023-04-24T06:13:59Z")

</div>

I first write data directly to the specified index, and then create an index template, After the index template is created, I continue to write data into the specified index. At this time, I write the new properties of …

---

## [How can i elasticsearch 2.4.6 jdbc client jar file?](https://discuss.elastic.co/t/how-can-i-elasticsearch-2-4-6-jdbc-client-jar-file/330594)

<div class="topic-metadata">

**Author:** [@a89541457](https://discuss.elastic.co/u/a89541457)\
**Replies:** 2\
**Last updated:** [April 24, 2023, 5:02am UTC](https://discuss.elastic.co/t/how-can-i-elasticsearch-2-4-6-jdbc-client-jar-file/330594 "2023-04-24T05:02:31Z")

</div>

there is no ES 2.4.6 jdbc client jar file... i want to connect elasticsearch 2.4.6 via datagrip. but i fail with this message "This version of the JDBC driver is only compatible with Elasticsearch version 7.10 or new…

---

## [Is Garbage Collection monitoring still needed in ES 6.8](https://discuss.elastic.co/t/is-garbage-collection-monitoring-still-needed-in-es-6-8/330582)

<div class="topic-metadata">

**Author:** [@Praveen\_Banthia](https://discuss.elastic.co/u/Praveen_Banthia)\
**Replies:** 6\
**Last updated:** [April 24, 2023, 5:16am UTC](https://discuss.elastic.co/t/is-garbage-collection-monitoring-still-needed-in-es-6-8/330582 "2023-04-24T05:16:18Z")

</div>

I was reading an old article We are on ES version 6.8 and Java 11 or higher . Is this checking for garbage collection metrics even needed anymore. My assumption G1 GC is fast enough that even with max recommended si…

---

## [What aggrigation should I use to achieve this](https://discuss.elastic.co/t/what-aggrigation-should-i-use-to-achieve-this/330206)

<div class="topic-metadata">

**Author:** [@Bishnu\_Sahu](https://discuss.elastic.co/u/Bishnu_Sahu)\
**Replies:** 0\
**Last updated:** [April 18, 2023, 9:14am UTC](https://discuss.elastic.co/t/what-aggrigation-should-i-use-to-achieve-this/330206 "2023-04-18T09:14:45Z")

</div>

Here my index mapping:- { "settings": { "number\_of\_shards": 1 }, "mappings": { "properties": { "timestamp": { "type": "date" }, "leadId": { "type": "keyword" }, …

---

## [Error of ELK stack memory overflow on Windows Server 2012](https://discuss.elastic.co/t/error-of-elk-stack-memory-overflow-on-windows-server-2012/330518)

<div class="topic-metadata">

**Author:** [@DuanTran](https://discuss.elastic.co/u/DuanTran)\
**Replies:** 1\
**Last updated:** [April 23, 2023, 10:38pm UTC](https://discuss.elastic.co/t/error-of-elk-stack-memory-overflow-on-windows-server-2012/330518 "2023-04-23T22:38:11Z")

</div>

I am happy to meet everyone. I am currently in great need of help from Elastic experts. When using ELK on Windows Server 2012, the OpenJVM processes of Elasticsearch and Logstash occupy up to 80% of the system. I have be…

---

## [ES nodes fail to ping with ports open and Telnet'able](https://discuss.elastic.co/t/es-nodes-fail-to-ping-with-ports-open-and-telnetable/330581)

<div class="topic-metadata">

**Author:** [@111238](https://discuss.elastic.co/u/111238)\
**Replies:** 4\
**Last updated:** [April 23, 2023, 2:25pm UTC](https://discuss.elastic.co/t/es-nodes-fail-to-ping-with-ports-open-and-telnetable/330581 "2023-04-23T14:25:11Z")

</div>

Hi there! Weirdly, still did not find a solution to a problem. I'm creating a new cluster right now (v6.8.6). And all nodes only see themselves. All of them set up to be master and have discovery.zen.minimum\_master\_no…

---

## [Api\_key privilege](https://discuss.elastic.co/t/api-key-privilege/330558)

<div class="topic-metadata">

**Author:** [@7Alex7](https://discuss.elastic.co/u/7Alex7)\
**Replies:** 0\
**Last updated:** [April 22, 2023, 6:53pm UTC](https://discuss.elastic.co/t/api-key-privilege/330558 "2023-04-22T18:53:33Z")

</div>

I will use Search in my projects but would like to test it before buying. Projects need temporary credentials functionality. The Api\_key looks good for this. One more restriction is that the user must be able to create …

---

## [Calling Elastic search from remote server via https](https://discuss.elastic.co/t/calling-elastic-search-from-remote-server-via-https/330254)

<div class="topic-metadata">

**Author:** [@neil.maffitt](https://discuss.elastic.co/u/neil.maffitt)\
**Replies:** 12\
**Last updated:** [April 22, 2023, 10:48am UTC](https://discuss.elastic.co/t/calling-elastic-search-from-remote-server-via-https/330254 "2023-04-22T10:48:37Z")

</div>

This works fine on local machine curl --cacert /etc/elasticsearch/certs/http\_ca.crt -u elastic: https://localhost:9200 This does not work remotely curl --cacert /etc/elasticsearch/certs/http\_ca.crt -u elastic: https:/…

---

## [Elasticsearch connection issue](https://discuss.elastic.co/t/elasticsearch-connection-issue/330480)

<div class="topic-metadata">

**Author:** [@Buddha](https://discuss.elastic.co/u/Buddha)\
**Replies:** 6\
**Last updated:** [April 22, 2023, 10:29am UTC](https://discuss.elastic.co/t/elasticsearch-connection-issue/330480 "2023-04-22T10:29:30Z")

</div>

Hello, A bit of a noob on certs stuff and I had a previous question where I think I was complicating things to solve a connection issue to my Elasticsearch deployment: The following is an image and an error message: …

---

## [Hamming Distance on Binary Strings - Latest](https://discuss.elastic.co/t/hamming-distance-on-binary-strings-latest/330292)

<div class="topic-metadata">

**Author:** [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Replies:** 5\
**Last updated:** [April 21, 2023, 2:27pm UTC](https://discuss.elastic.co/t/hamming-distance-on-binary-strings-latest/330292 "2023-04-21T14:27:14Z")

</div>

Hello, I want to do hamming distance on binary strings in elasticsearch, and I want to control the distance. In my case, the binary strings have a length of 256 and I want everything with a hamming distance of 32 or be…

---

## [Split or cut from context\_hits iteration in Elasticsearch query rule](https://discuss.elastic.co/t/split-or-cut-from-context-hits-iteration-in-elasticsearch-query-rule/330521)

<div class="topic-metadata">

**Author:** [@Josep\_Martinez](https://discuss.elastic.co/u/Josep_Martinez)\
**Replies:** 0\
**Last updated:** [April 21, 2023, 1:13pm UTC](https://discuss.elastic.co/t/split-or-cut-from-context-hits-iteration-in-elasticsearch-query-rule/330521 "2023-04-21T13:13:57Z")

</div>

Hello. I'm newbie in Elasticsearch monitoring. I'm trying to get only a few strings or characters from an context\_hits iteration like this: {{#context.hits}} {{\_source.message}} {{/context.hits}} I have too many info…

---

## [Data not getting reflected in transform index](https://discuss.elastic.co/t/data-not-getting-reflected-in-transform-index/330507)

<div class="topic-metadata">

**Author:** [@jainesh\_singh](https://discuss.elastic.co/u/jainesh_singh)\
**Replies:** 0\
**Last updated:** [April 21, 2023, 9:57am UTC](https://discuss.elastic.co/t/data-not-getting-reflected-in-transform-index/330507 "2023-04-21T09:57:36Z")

</div>

Hi Team, We have configured Elasticsearch along with logstash. Our setup is: There is a data stream with the following mapping: @timestamp (ingest generated by logstash) { "id": "1", "activityTime": "202…

---

## [Elasticsearch Failing. .kibana\_task\_manager\_8.5.0\_001 Failed engine index/write.lock](https://discuss.elastic.co/t/elasticsearch-failing-kibana-task-manager-8-5-0-001-failed-engine-index-write-lock/328775)

<div class="topic-metadata">

**Author:** [@akansha.agarwal1](https://discuss.elastic.co/u/akansha.agarwal1)\
**Replies:** 3\
**Last updated:** [April 21, 2023, 9:36am UTC](https://discuss.elastic.co/t/elasticsearch-failing-kibana-task-manager-8-5-0-001-failed-engine-index-write-lock/328775 "2023-04-21T09:36:08Z")

</div>

Hi, Version: 8.5.1 currently I have a lot of trouble to keep the ELK alive. It failed twice exactly after 11 days. I am using Elastic & Kibana on Kubernetes Rancher. Deployed single node cluster Using NFS as Persist…

---

## [Fscrawler in docker Exception in thread "main" java.util.NoSuchElementException](https://discuss.elastic.co/t/fscrawler-in-docker-exception-in-thread-main-java-util-nosuchelementexception/330398)

<div class="topic-metadata">

**Author:** [@lenchester](https://discuss.elastic.co/u/lenchester)\
**Replies:** 3\
**Last updated:** [April 21, 2023, 9:00am UTC](https://discuss.elastic.co/t/fscrawler-in-docker-exception-in-thread-main-java-util-nosuchelementexception/330398 "2023-04-21T09:00:20Z")

</div>

Hi I am launching Fscrawler with Elasticsearch and kibana inside docker containers and I am getting following error | Exception in thread "main" java.util.NoSuchElementException fscrawler | at java.b…

---

## [Can't reindex: Error extracting routing: Routing values must be strings](https://discuss.elastic.co/t/cant-reindex-error-extracting-routing-routing-values-must-be-strings/330479)

<div class="topic-metadata">

**Author:** [@A\_Mightiev](https://discuss.elastic.co/u/A_Mightiev)\
**Replies:** 1\
**Last updated:** [April 21, 2023, 8:09am UTC](https://discuss.elastic.co/t/cant-reindex-error-extracting-routing-routing-values-must-be-strings/330479 "2023-04-21T08:09:37Z")

</div>

Hi I can't reindex, I get this error "failures": \[ { "index": "metricbeat-000003", "cause": { "type": "illegal\_argument\_exception", "reason": "Error extracting routing: Routing values …

---

## [Write the same data to two S3 repositories?](https://discuss.elastic.co/t/write-the-same-data-to-two-s3-repositories/330306)

<div class="topic-metadata">

**Author:** [@jeod](https://discuss.elastic.co/u/jeod)\
**Replies:** 4\
**Last updated:** [April 21, 2023, 8:00am UTC](https://discuss.elastic.co/t/write-the-same-data-to-two-s3-repositories/330306 "2023-04-21T08:00:39Z")

</div>

Hi Guys, Is it possible to create 2 x S3 repositories, and join or link both repositories as my frozen tier?. We have two local 2 DCs with S3 object storage in each DC. - So I would like to have my frozen-tier represen…

---

## [Size of an index](https://discuss.elastic.co/t/size-of-an-index/330387)

<div class="topic-metadata">

**Author:** [@searchwithme](https://discuss.elastic.co/u/searchwithme)\
**Replies:** 2\
**Last updated:** [April 21, 2023, 4:55am UTC](https://discuss.elastic.co/t/size-of-an-index/330387 "2023-04-21T04:55:13Z")

</div>

I have 9 tenants. Each tenant is about 1 TB. Could I create 1 index for each tenant? so 9 indices in total? this would mean each index is 1 TB 9 TB of data over 9 indices. To maintain safe shard size, my index will hav…

---

## [Elasticsearch helm](https://discuss.elastic.co/t/elasticsearch-helm/330391)

<div class="topic-metadata">

**Author:** [@thirumoorthy](https://discuss.elastic.co/u/thirumoorthy)\
**Replies:** 4\
**Last updated:** [April 21, 2023, 4:26am UTC](https://discuss.elastic.co/t/elasticsearch-helm/330391 "2023-04-21T04:26:45Z")

</div>

Warning Unhealthy 11s (x31 over 4m50s) kubelet Readiness probe failed: Waiting for elasticsearch cluster to become ready (request params: "wait\_for\_status=green&timeout=2s" ) Cluster is not yet ready (requ…

---

## [ES pagination under the hood](https://discuss.elastic.co/t/es-pagination-under-the-hood/329679)

<div class="topic-metadata">

**Author:** [@eslearner58](https://discuss.elastic.co/u/eslearner58)\
**Replies:** 1\
**Last updated:** [April 21, 2023, 12:17am UTC](https://discuss.elastic.co/t/es-pagination-under-the-hood/329679 "2023-04-21T00:17:07Z")

</div>

I am trying to implement pagination for quite heavy ES queries so I did some research on the options available, but documentation didn't answer some of my questions: search\_after is the recommended way for doing the d…

---

## [ElasticSearch watcher configuration](https://discuss.elastic.co/t/elasticsearch-watcher-configuration/330486)

<div class="topic-metadata">

**Author:** [@Praveen\_kr](https://discuss.elastic.co/u/Praveen_kr)\
**Replies:** 1\
**Last updated:** [April 21, 2023, 12:13am UTC](https://discuss.elastic.co/t/elasticsearch-watcher-configuration/330486 "2023-04-21T00:13:20Z")

</div>

Hi Team, This is to inform you all. We are implementing watcher in our company. We have 13 nodes( Master nodes - 3 and data nodes -10). When I tried to add the settings as before in my Elasticsearch yml file as attache…

---

## [New data stream creation fails](https://discuss.elastic.co/t/new-data-stream-creation-fails/330481)

<div class="topic-metadata">

**Author:** [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 9:31pm UTC](https://discuss.elastic.co/t/new-data-stream-creation-fails/330481 "2023-04-20T21:31:37Z")

</div>

I am trying to create my own data stream with ILM and index .ds but it is not working Follwing worked PUT \_ilm/policy/sachin { "policy": { "phases": { "hot": { "min\_age": "0ms", "actions": …

---

## [Can I make a node in a cluster migrate to another cluster?](https://discuss.elastic.co/t/can-i-make-a-node-in-a-cluster-migrate-to-another-cluster/330474)

<div class="topic-metadata">

**Author:** [@camiyu1](https://discuss.elastic.co/u/camiyu1)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 9:25pm UTC](https://discuss.elastic.co/t/can-i-make-a-node-in-a-cluster-migrate-to-another-cluster/330474 "2023-04-20T21:25:36Z")

</div>

Hello, I am currently operating an Elasticsearch cluster of three nodes. Let's say them "cluster A" and "node A1, A2, A3" There is a separate cluster of one node. Let's say it "cluster B" and "node B1" Node B1 has a lo…

---

## [Multitenancy](https://discuss.elastic.co/t/multitenancy/330357)

<div class="topic-metadata">

**Author:** [@searchwithme](https://discuss.elastic.co/u/searchwithme)\
**Replies:** 3\
**Last updated:** [April 20, 2023, 9:20pm UTC](https://discuss.elastic.co/t/multitenancy/330357 "2023-04-20T21:20:15Z")

</div>

I want to set up a multitenant elasticsearch cluster. say I have :expressionless: 100 GB index (tenant 1) 150 GB index (tenant 2) 20 GB (tenant 3) 30 GB (tenant 4) How could I set up multitenancy? how do I route the …

---

## [Error with sql-cli jar](https://discuss.elastic.co/t/error-with-sql-cli-jar/322371)

<div class="topic-metadata">

**Author:** [@nikssssss](https://discuss.elastic.co/u/nikssssss)\
**Replies:** 1\
**Last updated:** [April 20, 2023, 8:09pm UTC](https://discuss.elastic.co/t/error-with-sql-cli-jar/322371 "2023-04-20T20:09:08Z")

</div>

hello, i have tried SQL CLI stand alone Java application and is not working. I always get an error message: "Cannot communicate with the server ..... . This version of CLI only works with Elasticsearch version 8.5.3. (M…

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

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