# Elasticsearch

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

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

**Page:** 165

---

## [The remote web server is affected by a cross-site scripting vulnerability](https://discuss.elastic.co/t/the-remote-web-server-is-affected-by-a-cross-site-scripting-vulnerability/349840)

<div class="topic-metadata">

**Author:** [@Kesavan](https://discuss.elastic.co/u/Kesavan)\
**Replies:** 1\
**Last updated:** [December 22, 2023, 11:23am UTC](https://discuss.elastic.co/t/the-remote-web-server-is-affected-by-a-cross-site-scripting-vulnerability/349840 "2023-12-22T11:23:25Z")

</div>

In Our QA system we are facing the below security scan finding. Scanning tool used: nessus Above image text: |Medium|172.16.1.218|tcp|9201|Web Server Generic XSS|The remote web server is affected by a cross-site s…

---

## [What's the new FilterAggregator in the java client 8](https://discuss.elastic.co/t/whats-the-new-filteraggregator-in-the-java-client-8/349737)

<div class="topic-metadata">

**Author:** [@Darth\_vader\_22](https://discuss.elastic.co/u/Darth_vader_22)\
**Replies:** 3\
**Last updated:** [December 22, 2023, 8:36am UTC](https://discuss.elastic.co/t/whats-the-new-filteraggregator-in-the-java-client-8/349737 "2023-12-22T08:36:24Z")

</div>

hello guys , i'm having hard times trying to find a way to create a FilterAggregationBuilder in the new java client 8.11 , if anyone could point me te the solution i'll be grateful FiltersAggregationBuilder agg…

---

## [Index distribution clarification](https://discuss.elastic.co/t/index-distribution-clarification/349835)

<div class="topic-metadata">

**Author:** [@Atul\_Chadha](https://discuss.elastic.co/u/Atul_Chadha)\
**Replies:** 1\
**Last updated:** [December 22, 2023, 2:20am UTC](https://discuss.elastic.co/t/index-distribution-clarification/349835 "2023-12-22T02:20:05Z")

</div>

I am trying to add a node in my cluster running on 7.17x with 3 existing nodes ( master eligible ), the new 4th node is data only node. I am seeing new index have all primary shards allocated to 1 node, shouldn't they b…

---

## [Default dynamic template uses enum for text fields instead of keyword](https://discuss.elastic.co/t/default-dynamic-template-uses-enum-for-text-fields-instead-of-keyword/349821)

<div class="topic-metadata">

**Author:** [@Julia\_Dai](https://discuss.elastic.co/u/Julia_Dai)\
**Replies:** 0\
**Last updated:** [December 21, 2023, 6:57pm UTC](https://discuss.elastic.co/t/default-dynamic-template-uses-enum-for-text-fields-instead-of-keyword/349821 "2023-12-21T18:57:06Z")

</div>

We're using Elasticsearch dynamic mapping for our indexes, but for some reason our indexes are mapping text fields to enum sub fields instead of keyword sub fields like it says in the docs (Dynamic field mapping | Elasti…

---

## [Export aggregated reports into Postgres](https://discuss.elastic.co/t/export-aggregated-reports-into-postgres/349806)

<div class="topic-metadata">

**Author:** [@tmslara.a](https://discuss.elastic.co/u/tmslara.a)\
**Replies:** 2\
**Last updated:** [December 21, 2023, 5:42pm UTC](https://discuss.elastic.co/t/export-aggregated-reports-into-postgres/349806 "2023-12-21T17:42:32Z")

</div>

Hello, I am indexing data into an Elasticsearch cluster (of one node) based on events associated with different devices, each identified by an ID. Many events can occur during the day. At the end of each day, I would li…

---

## [Migrated elasticsearch data from a failed node](https://discuss.elastic.co/t/migrated-elasticsearch-data-from-a-failed-node/349814)

<div class="topic-metadata">

**Author:** [@anon85145925](https://discuss.elastic.co/u/anon85145925)\
**Replies:** 1\
**Last updated:** [December 21, 2023, 5:33pm UTC](https://discuss.elastic.co/t/migrated-elasticsearch-data-from-a-failed-node/349814 "2023-12-21T17:33:02Z")

</div>

Hello all, One of our elasticsearch nodes (not a master node) failed yesterday, and by failed it was a human error, when trying to add disk space - the underlying disk was shrinked. We managed to expand the disk again, …

---

## [How to reshard the indices to overcome latency during high traffic in elasticsearch cluster](https://discuss.elastic.co/t/how-to-reshard-the-indices-to-overcome-latency-during-high-traffic-in-elasticsearch-cluster/349677)

<div class="topic-metadata">

**Author:** [@Karthikeyan\_Amaresan](https://discuss.elastic.co/u/Karthikeyan_Amaresan)\
**Replies:** 2\
**Last updated:** [December 21, 2023, 10:44am UTC](https://discuss.elastic.co/t/how-to-reshard-the-indices-to-overcome-latency-during-high-traffic-in-elasticsearch-cluster/349677 "2023-12-21T10:44:08Z")

</div>

During high traffic times, our Elasticsearch cluster is experiencing latency, and we are considering a resharding strategy to optimize performance. Below is our current index setup and the proposed resharding plan: Curr…

---

## [Create a Java Query from a DSL terms query](https://discuss.elastic.co/t/create-a-java-query-from-a-dsl-terms-query/349584)

<div class="topic-metadata">

**Author:** [@Edgar\_Osorio](https://discuss.elastic.co/u/Edgar_Osorio)\
**Replies:** 2\
**Last updated:** [December 20, 2023, 9:52pm UTC](https://discuss.elastic.co/t/create-a-java-query-from-a-dsl-terms-query/349584 "2023-12-20T21:52:46Z")

</div>

Given the following Query { "query":{ "bool" : { "must" : \[ { "terms" : { "\_id" : \["8606874","21387518","16704862","23947520","23897437","1050114","24967566","50356…

---

## [Time-series data out of order](https://discuss.elastic.co/t/time-series-data-out-of-order/349741)

<div class="topic-metadata">

**Author:** [@lkw](https://discuss.elastic.co/u/lkw)\
**Replies:** 0\
**Last updated:** [December 20, 2023, 4:54pm UTC](https://discuss.elastic.co/t/time-series-data-out-of-order/349741 "2023-12-20T16:54:21Z")

</div>

I have a data stream in use for some custom application logs. There are about 10 months of logs in it and a handful of rolled-over backing indices. I also have about 3 years worth of historic application logs that I'd l…

---

## [Enrich document with data from same index](https://discuss.elastic.co/t/enrich-document-with-data-from-same-index/349705)

<div class="topic-metadata">

**Author:** [@rickardo](https://discuss.elastic.co/u/rickardo)\
**Replies:** 8\
**Last updated:** [December 20, 2023, 3:37pm UTC](https://discuss.elastic.co/t/enrich-document-with-data-from-same-index/349705 "2023-12-20T15:37:31Z")

</div>

Hi, we got one index that we insert documents where one can follow e.g. a session and what is done, i.e.: document 1; sessionId = 17 type=created country=DE document 2: sessionId = 17 type=action now at insertion…

---

## [Bucket aggregation with java api version 8.11](https://discuss.elastic.co/t/bucket-aggregation-with-java-api-version-8-11/349729)

<div class="topic-metadata">

**Author:** [@Darth\_vader\_22](https://discuss.elastic.co/u/Darth_vader_22)\
**Replies:** 0\
**Last updated:** [December 20, 2023, 1:54pm UTC](https://discuss.elastic.co/t/bucket-aggregation-with-java-api-version-8-11/349729 "2023-12-20T13:54:51Z")

</div>

Hi everyone ! can anyone please help me convert below query in java i'm struggling with the aggregation part i have been stuck to this for days now , any help would be appreciated { "query": {}, "aggregations": { "a…

---

## [Using elastic client with latest version for various operations](https://discuss.elastic.co/t/using-elastic-client-with-latest-version-for-various-operations/349678)

<div class="topic-metadata">

**Author:** [@Tukaram](https://discuss.elastic.co/u/Tukaram)\
**Replies:** 1\
**Last updated:** [December 20, 2023, 9:10am UTC](https://discuss.elastic.co/t/using-elastic-client-with-latest-version-for-various-operations/349678 "2023-12-20T09:10:17Z")

</div>

Hi, I am trying to migrate my java client to 8.11 stack from 7.17. Earlier, I had to pass auth token as request options in all requests. Now, there are so many incompatible methods where I dont see option to pass reque…

---

## [Delete (or retain) specific documents from ILM-frozen searchable snapshot](https://discuss.elastic.co/t/delete-or-retain-specific-documents-from-ilm-frozen-searchable-snapshot/349698)

<div class="topic-metadata">

**Author:** [@maxboone](https://discuss.elastic.co/u/maxboone)\
**Replies:** 0\
**Last updated:** [December 20, 2023, 8:54am UTC](https://discuss.elastic.co/t/delete-or-retain-specific-documents-from-ilm-frozen-searchable-snapshot/349698 "2023-12-20T08:54:30Z")

</div>

Hey ELKers, We're running logging through Elastic but weren't very specific on our log indexes and had Elastic Agent pump all the logs in logs-kubernetes.container\_logs. Most of these logs have by now rotated through to…

---

## [Relation between shard size and sum of its segments size](https://discuss.elastic.co/t/relation-between-shard-size-and-sum-of-its-segments-size/349671)

<div class="topic-metadata">

**Author:** [@Tommaso\_Parisi](https://discuss.elastic.co/u/Tommaso_Parisi)\
**Replies:** 1\
**Last updated:** [December 20, 2023, 7:35am UTC](https://discuss.elastic.co/t/relation-between-shard-size-and-sum-of-its-segments-size/349671 "2023-12-20T07:35:00Z")

</div>

Hello, I was under the assumption that the disk space used by a shard is the sum of the disk space of its segments. I have and index with 1 Million document and 3 shards and it seems to me that this is not true. Can so…

---

## [Elastic Search becomes unresponsive after some time](https://discuss.elastic.co/t/elastic-search-becomes-unresponsive-after-some-time/348311)

<div class="topic-metadata">

**Author:** [@EVINDX](https://discuss.elastic.co/u/EVINDX)\
**Replies:** 2\
**Last updated:** [December 20, 2023, 7:34am UTC](https://discuss.elastic.co/t/elastic-search-becomes-unresponsive-after-some-time/348311 "2023-12-20T07:34:22Z")

</div>

We are facing issues with the Elasticsearch in the production environment where Elasticsearch stops responding intermittently and service needs to be restarted in-order to recover from this state. Logs collected from El…

---

## [High CPU Utilization - Tune performance](https://discuss.elastic.co/t/high-cpu-utilization-tune-performance/349691)

<div class="topic-metadata">

**Author:** [@castroivan](https://discuss.elastic.co/u/castroivan)\
**Replies:** 0\
**Last updated:** [December 20, 2023, 5:37am UTC](https://discuss.elastic.co/t/high-cpu-utilization-tune-performance/349691 "2023-12-20T05:37:14Z")

</div>

Hi team, First time posting a topic in here. I have a 6-node cluster which look like this: heap.percent ram.percent cpu load\_1m load\_5m load\_15m node.role master name 31 92 18 9.53 8.86 8…

---

## [Date Mapping Template Not Being Applied Correctly](https://discuss.elastic.co/t/date-mapping-template-not-being-applied-correctly/349469)

<div class="topic-metadata">

**Author:** [@mohsin106](https://discuss.elastic.co/u/mohsin106)\
**Replies:** 6\
**Last updated:** [December 19, 2023, 11:28pm UTC](https://discuss.elastic.co/t/date-mapping-template-not-being-applied-correctly/349469 "2023-12-19T23:28:10Z")

</div>

Hi, I'm receiving the following data set into ES from Logstash: { "fields": { "date-code": "180502", "form-factor": "FORM1", "serial-no": "1122334455", "vendor": "VENDOR-PRE", "vendor-part": "PART…

---

## [Reindex after Shrink to rename index (to the original one)?](https://discuss.elastic.co/t/reindex-after-shrink-to-rename-index-to-the-original-one/349606)

<div class="topic-metadata">

**Author:** [@HyebinHong](https://discuss.elastic.co/u/HyebinHong)\
**Replies:** 2\
**Last updated:** [December 19, 2023, 11:45pm UTC](https://discuss.elastic.co/t/reindex-after-shrink-to-rename-index-to-the-original-one/349606 "2023-12-19T23:45:23Z")

</div>

Hello, Elastic! According to my former question, I realized I need to change my settings related to shards and replicas. (Huge thanks to @Christian\_Dahlqvist ) Here is my former question Reducing replica was easy with…

---

## [Error when start the elastics services](https://discuss.elastic.co/t/error-when-start-the-elastics-services/349682)

<div class="topic-metadata">

**Author:** [@Antonio\_Sanchez](https://discuss.elastic.co/u/Antonio_Sanchez)\
**Replies:** 1\
**Last updated:** [December 19, 2023, 10:54pm UTC](https://discuss.elastic.co/t/error-when-start-the-elastics-services/349682 "2023-12-19T22:54:28Z")

</div>

Hello I'm installing a elastics services on a server ubuntu 22.4 but when I start the services I recibet the next error: \[sudo\] password for toor: Job for elasticsearch.service failed because the control process exite…

---

## [Max Window Size is Set to 10000 but the Terms aggregations is giving single filter value larger than max window size.](https://discuss.elastic.co/t/max-window-size-is-set-to-10000-but-the-terms-aggregations-is-giving-single-filter-value-larger-than-max-window-size/348924)

<div class="topic-metadata">

**Author:** [@santhosh.linga](https://discuss.elastic.co/u/santhosh.linga)\
**Replies:** 11\
**Last updated:** [December 19, 2023, 10:30pm UTC](https://discuss.elastic.co/t/max-window-size-is-set-to-10000-but-the-terms-aggregations-is-giving-single-filter-value-larger-than-max-window-size/348924 "2023-12-19T22:30:18Z")

</div>

We have created an index and are querying the index to display the complete dataset. However, we have encountered performance issues, as we are dealing with 1 million records in response to user search queries. To addres…

---

## [Can Elasticsearch automatically normalize vectors for dot\_product?](https://discuss.elastic.co/t/can-elasticsearch-automatically-normalize-vectors-for-dot-product/349151)

<div class="topic-metadata">

**Author:** [@mmaccou](https://discuss.elastic.co/u/mmaccou)\
**Replies:** 7\
**Last updated:** [December 19, 2023, 10:01pm UTC](https://discuss.elastic.co/t/can-elasticsearch-automatically-normalize-vectors-for-dot-product/349151 "2023-12-19T22:01:28Z")

</div>

Can Elasticsearch automatically normalize vectors for dot\_product? I haven't found it the docs yet, but wanted to double check here before I manually add the step in my code.

---

## [Fixing query for type ahead with more than one query term](https://discuss.elastic.co/t/fixing-query-for-type-ahead-with-more-than-one-query-term/349564)

<div class="topic-metadata">

**Author:** [@RodAndTom](https://discuss.elastic.co/u/RodAndTom)\
**Replies:** 2\
**Last updated:** [December 19, 2023, 9:20pm UTC](https://discuss.elastic.co/t/fixing-query-for-type-ahead-with-more-than-one-query-term/349564 "2023-12-19T21:20:34Z")

</div>

Hi, I'm currently using the following query to suggest terms for type ahead completion for a title field, and it suits me very well: GET transcricoes/\_search { "query": { "wildcard": { "name": { "va…

---

## [How do I get to know that reindexing has been completed in Elasticsearch python client?](https://discuss.elastic.co/t/how-do-i-get-to-know-that-reindexing-has-been-completed-in-elasticsearch-python-client/349670)

<div class="topic-metadata">

**Author:** [@Aditya\_Dubey](https://discuss.elastic.co/u/Aditya_Dubey)\
**Replies:** 1\
**Last updated:** [December 19, 2023, 7:22pm UTC](https://discuss.elastic.co/t/how-do-i-get-to-know-that-reindexing-has-been-completed-in-elasticsearch-python-client/349670 "2023-12-19T19:22:18Z")

</div>

Basically, I'm running a reindexing function, and immediately after that, I'm running a function to delete the source index. Python runs all lines of code for the first function and moves to the next function (delete ind…

---

## [Allowing long query to complete even if indexes are shriking](https://discuss.elastic.co/t/allowing-long-query-to-complete-even-if-indexes-are-shriking/349273)

<div class="topic-metadata">

**Author:** [@DidierB](https://discuss.elastic.co/u/DidierB)\
**Replies:** 4\
**Last updated:** [December 19, 2023, 5:14pm UTC](https://discuss.elastic.co/t/allowing-long-query-to-complete-even-if-indexes-are-shriking/349273 "2023-12-19T17:14:40Z")

</div>

Hello, I have a use case with up to two billions events a day that are injected into an Elasticsearch. I opimized by making one index per hour (4 primary shards with 1 replica per shard) and setting a index lifecycle po…

---

## [Failed to submit a listener notification task. Event loop shut down? java.util.concurrent.RejectedExecutionException: event executor terminated](https://discuss.elastic.co/t/failed-to-submit-a-listener-notification-task-event-loop-shut-down-java-util-concurrent-rejectedexecutionexception-event-executor-terminated/349623)

<div class="topic-metadata">

**Author:** [@Kelvin\_A\_Escobar\_Mor](https://discuss.elastic.co/u/Kelvin_A_Escobar_Mor)\
**Replies:** 2\
**Last updated:** [December 19, 2023, 4:28pm UTC](https://discuss.elastic.co/t/failed-to-submit-a-listener-notification-task-event-loop-shut-down-java-util-concurrent-rejectedexecutionexception-event-executor-terminated/349623 "2023-12-19T16:28:51Z")

</div>

Failed to submit a listener notification task. Event loop shut down? java.util.concurrent.RejectedExecutionException: event executor terminated at io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadE…

---

## [Unstable operation of elasticsearch](https://discuss.elastic.co/t/unstable-operation-of-elasticsearch/345931)

<div class="topic-metadata">

**Author:** [@San9](https://discuss.elastic.co/u/San9)\
**Replies:** 19\
**Last updated:** [December 19, 2023, 2:14pm UTC](https://discuss.elastic.co/t/unstable-operation-of-elasticsearch/345931 "2023-12-19T14:14:15Z")

</div>

Hi Team! Recently I began to notice unstable operation of Logstash, I started looking at the logs (I have two Logstash nodes). Here is an example of logs: Oct 27 07:01:17 v-elk-lst01.my logstash\[42023\]: \[2023-10-27T07:…

---

## [Is indexing with HNSW required for kNN to work?](https://discuss.elastic.co/t/is-indexing-with-hnsw-required-for-knn-to-work/349598)

<div class="topic-metadata">

**Author:** [@mmaccou](https://discuss.elastic.co/u/mmaccou)\
**Replies:** 3\
**Last updated:** [December 19, 2023, 3:36pm UTC](https://discuss.elastic.co/t/is-indexing-with-hnsw-required-for-knn-to-work/349598 "2023-12-19T15:36:26Z")

</div>

While setting up some search templates for kNN, I discovered HNSW and the parameters for index options. "index\_options": { "type": "hnsw", "m": 32, "ef\_construction": 100 } When in…

---

## [Discovery-EC2 - master not discovered yet, this node has not previously joined a bootstrapped cluster, and \[cluster.initial\_master\_nodes\] is empty on this node: have discovered](https://discuss.elastic.co/t/discovery-ec2-master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped-cluster-and-cluster-initial-master-nodes-is-empty-on-this-node-have-discovered/349493)

<div class="topic-metadata">

**Author:** [@lakshmikandan](https://discuss.elastic.co/u/lakshmikandan)\
**Replies:** 4\
**Last updated:** [December 19, 2023, 10:15am UTC](https://discuss.elastic.co/t/discovery-ec2-master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped-cluster-and-cluster-initial-master-nodes-is-empty-on-this-node-have-discovered/349493 "2023-12-19T10:15:30Z")

</div>

Version: 8.11.0, Build: rpm/d9ec3fa628c7b0ba3d25692e277ba26814820b20/2023-11-04T10:04:57.184859352Z, JVM: 21.0.1 \[WARN \]\[o.e.c.c.ClusterFormationFailureHelper\] \[ip-10-10-10-1.us-west-2.compute.internal\] master not disco…

---

## [Can I use PHP Elasitcsearch client version 8 for Elasticsearch cluster version 7](https://discuss.elastic.co/t/can-i-use-php-elasitcsearch-client-version-8-for-elasticsearch-cluster-version-7/349631)

<div class="topic-metadata">

**Author:** [@yoss\_fazwaz](https://discuss.elastic.co/u/yoss_fazwaz)\
**Replies:** 0\
**Last updated:** [December 19, 2023, 8:04am UTC](https://discuss.elastic.co/t/can-i-use-php-elasitcsearch-client-version-8-for-elasticsearch-cluster-version-7/349631 "2023-12-19T08:04:43Z")

</div>

I am currently using Elasticsearch cluster version 7.17.7 and Elasticsearch client version 7.17.1. However, I want to upgrade the Elasticsearch client to version 8.11. Will Elasticsearch client version 8.11 function pro…

---

## [\[2023-12-19T02:08:38,809\]\[ERROR\]\[i.n.u.c.D.rejectedExecution\] \[data\_node4\] Failed to submit a listener notification task. Event loop shut down? java.util.concurrent.RejectedExecutionException: event executor terminated](https://discuss.elastic.co/t/2023-12-19t0238-809-error-i-n-u-c-d-rejectedexecution-data-node4-failed-to-submit-a-listener-notification-task-event-loop-shut-down-java-util-concurrent-rejectedexecutionexception-event-executor-terminated/349620)

<div class="topic-metadata">

**Author:** [@Kelvin\_A\_Escobar\_Mor](https://discuss.elastic.co/u/Kelvin_A_Escobar_Mor)\
**Replies:** 0\
**Last updated:** [December 19, 2023, 6:15am UTC](https://discuss.elastic.co/t/2023-12-19t0238-809-error-i-n-u-c-d-rejectedexecution-data-node4-failed-to-submit-a-listener-notification-task-event-loop-shut-down-java-util-concurrent-rejectedexecutionexception-event-executor-terminated/349620 "2023-12-19T06:15:39Z")

</div>

\[2023-12-19T02:08:38,809\]\[ERROR\]\[i.n.u.c.D.rejectedExecution\] \[data\_node4\] Failed to submit a listener notification task. Event loop shut down? java.util.concurrent.RejectedExecutionException: event executor terminated …

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

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