# Elasticsearch

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

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

**Page:** 333

---

## [Upgrade Java for Elasticsearch and logstash](https://discuss.elastic.co/t/upgrade-java-for-elasticsearch-and-logstash/319644)

<div class="topic-metadata">

**Author:** [@Ravi\_Vishwakarma](https://discuss.elastic.co/u/Ravi_Vishwakarma)\
**Replies:** 8\
**Last updated:** [December 8, 2022, 9:19am UTC](https://discuss.elastic.co/t/upgrade-java-for-elasticsearch-and-logstash/319644 "2022-12-08T09:19:37Z")

</div>

Hi, Can anyone let me know how I can upgrade the java JDK on Elasticsearch and logstash. Path : /usr/share/logstash/jdk/ Installed version : 11.0.14.1 2022-02-08 Upgrade to a version greater than 11.0.16 Path : /…

---

## [Http request curl: (52) Empty reply from server](https://discuss.elastic.co/t/http-request-curl-52-empty-reply-from-server/320750)

<div class="topic-metadata">

**Author:** [@hello5346](https://discuss.elastic.co/u/hello5346)\
**Replies:** 6\
**Last updated:** [December 8, 2022, 8:48am UTC](https://discuss.elastic.co/t/http-request-curl-52-empty-reply-from-server/320750 "2022-12-08T08:48:09Z")

</div>

We started a new Elasticsearch instance of 8.4.3 and the ES is up and running but when i am trying to send an HTTP request to the server I get a reply of curl: (52) Empty reply from server but when I pass the certificate…

---

## [Wrong number of result using match\_phrase\_prefix](https://discuss.elastic.co/t/wrong-number-of-result-using-match-phrase-prefix/318838)

<div class="topic-metadata">

**Author:** [@Gorelldk](https://discuss.elastic.co/u/Gorelldk)\
**Replies:** 12\
**Last updated:** [December 8, 2022, 8:15am UTC](https://discuss.elastic.co/t/wrong-number-of-result-using-match-phrase-prefix/318838 "2022-12-08T08:15:22Z")

</div>

Hi all I have a on-premise ELK instance where i have an index with roughly 50.000 documents with 30 columns. One of the columns is name, indexed as a text. I have 4500 documents called VFCXXXX where the X is numbers, i…

---

## [Storage recommendations for Elastic](https://discuss.elastic.co/t/storage-recommendations-for-elastic/320655)

<div class="topic-metadata">

**Author:** [@Sireesha](https://discuss.elastic.co/u/Sireesha)\
**Replies:** 4\
**Last updated:** [December 8, 2022, 7:38am UTC](https://discuss.elastic.co/t/storage-recommendations-for-elastic/320655 "2022-12-08T07:38:29Z")

</div>

Hi , What is the recommended storage to deploy Elastic search . We are weighting options between local vs netapp storage . Please guide.

---

## [Is there any funtionality in Elastic Search using which we can perform mathematical operations or calculations on the entries in an index?](https://discuss.elastic.co/t/is-there-any-funtionality-in-elastic-search-using-which-we-can-perform-mathematical-operations-or-calculations-on-the-entries-in-an-index/320741)

<div class="topic-metadata">

**Author:** [@Shraddha29](https://discuss.elastic.co/u/Shraddha29)\
**Replies:** 1\
**Last updated:** [December 8, 2022, 5:55am UTC](https://discuss.elastic.co/t/is-there-any-funtionality-in-elastic-search-using-which-we-can-perform-mathematical-operations-or-calculations-on-the-entries-in-an-index/320741 "2022-12-08T05:55:59Z")

</div>

Is there any functionality in Elastic Search using which we can perform mathematical operations or calculations on the entries in an index?

---

## [How to view remote clusters index metadata](https://discuss.elastic.co/t/how-to-view-remote-clusters-index-metadata/320518)

<div class="topic-metadata">

**Author:** [@prabhakar\_talari](https://discuss.elastic.co/u/prabhakar_talari)\
**Replies:** 4\
**Last updated:** [December 8, 2022, 5:24am UTC](https://discuss.elastic.co/t/how-to-view-remote-clusters-index-metadata/320518 "2022-12-08T05:24:58Z")

</div>

Hi Team, I have a 3 clustesr setup like below cluster-query cluster-a cluster-b I added a & b as a remote clusters in cluster-query to search the data from query cluster kibana. Now i want to get the index mapping …

---

## [High Seach/Query Latency during Indexing Jobs](https://discuss.elastic.co/t/high-seach-query-latency-during-indexing-jobs/320615)

<div class="topic-metadata">

**Author:** [@vishnu\_teja](https://discuss.elastic.co/u/vishnu_teja)\
**Replies:** 7\
**Last updated:** [December 8, 2022, 4:47am UTC](https://discuss.elastic.co/t/high-seach-query-latency-during-indexing-jobs/320615 "2022-12-08T04:47:07Z")

</div>

Hi Everyone, We are recently facing issues with high latency in our Elastic Search Cluster, especially during Ingestion/Indexing in cluster. We run a batchJob which calls the update API of ES, so it will either update t…

---

## [Termsvector of an element of array](https://discuss.elastic.co/t/termsvector-of-an-element-of-array/320732)

<div class="topic-metadata">

**Author:** [@tim2020work2](https://discuss.elastic.co/u/tim2020work2)\
**Replies:** 0\
**Last updated:** [December 8, 2022, 3:48am UTC](https://discuss.elastic.co/t/termsvector-of-an-element-of-array/320732 "2022-12-08T03:48:49Z")

</div>

How do I view terms vector of a field in an element of array? API \_termvectors accept input "fields". i.e "fields" : \["msg"\], } If I want to view term vector of an element of array, the following does not work "f…

---

## [Kubernetes ConfigMap for S3 bucket?](https://discuss.elastic.co/t/kubernetes-configmap-for-s3-bucket/320728)

<div class="topic-metadata">

**Author:** [@khteh](https://discuss.elastic.co/u/khteh)\
**Replies:** 0\
**Last updated:** [December 8, 2022, 2:59am UTC](https://discuss.elastic.co/t/kubernetes-configmap-for-s3-bucket/320728 "2022-12-08T02:59:44Z")

</div>

I am trying to bring up master Statefulset with 3 pods. I previously had to run the following script in Elasticsearch Dockerfile: yes | bin/elasticsearch-plugin install repository-s3 Now that s3 snapshot is built into …

---

## [What privileges does the metricbeat api key need?](https://discuss.elastic.co/t/what-privileges-does-the-metricbeat-api-key-need/320727)

<div class="topic-metadata">

**Author:** [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Replies:** 0\
**Last updated:** [December 8, 2022, 2:28am UTC](https://discuss.elastic.co/t/what-privileges-does-the-metricbeat-api-key-need/320727 "2022-12-08T02:28:55Z")

</div>

Setting up monitoring and following the instruction https://www.elastic.co/guide/en/beats/metricbeat/7.17/metricbeat-installation-configuration.html I world rather not use Elastic...

---

## [Nodes stats API CPU usage value is -1](https://discuss.elastic.co/t/nodes-stats-api-cpu-usage-value-is-1/319782)

<div class="topic-metadata">

**Author:** [@ysk8830](https://discuss.elastic.co/u/ysk8830)\
**Replies:** 1\
**Last updated:** [December 8, 2022, 1:13am UTC](https://discuss.elastic.co/t/nodes-stats-api-cpu-usage-value-is-1/319782 "2022-12-08T01:13:40Z")

</div>

Hello, I have a question. I have installed elasticsearch on azure. OS is Ubuntu. And look up the cpu usage. I ran '\_cat/nodes?format=json' , and the cpu value is -1. can not understand. I browsed the documentation (G…

---

## [Deletion of existing index data when threshold reached](https://discuss.elastic.co/t/deletion-of-existing-index-data-when-threshold-reached/320598)

<div class="topic-metadata">

**Author:** [@atpr](https://discuss.elastic.co/u/atpr)\
**Replies:** 5\
**Last updated:** [December 7, 2022, 10:48pm UTC](https://discuss.elastic.co/t/deletion-of-existing-index-data-when-threshold-reached/320598 "2022-12-07T22:48:05Z")

</div>

Hi Expert, We are looking to support the customer use case where they are buying the license as per the GB of data they use or no of records they store or no of days data stored. As per license they can either buy more…

---

## [Elasticsearch docker container 8.5.2 startup ERROR: Elasticsearch did not exit normally](https://discuss.elastic.co/t/elasticsearch-docker-container-8-5-2-startup-error-elasticsearch-did-not-exit-normally/320634)

<div class="topic-metadata">

**Author:** [@khteh](https://discuss.elastic.co/u/khteh)\
**Replies:** 4\
**Last updated:** [December 7, 2022, 9:30pm UTC](https://discuss.elastic.co/t/elasticsearch-docker-container-8-5-2-startup-error-elasticsearch-did-not-exit-normally/320634 "2022-12-07T21:30:13Z")

</div>

Elasticsearch docker container 8.5.2 startup with this error: ERROR: Elasticsearch did not exit normally - check the logs at /usr/share/elasticsearch/logs/elasticsearch.log 2022-12-07 02:08:06,247 process reaper (pid 11…

---

## [Re-installing elasticsearch](https://discuss.elastic.co/t/re-installing-elasticsearch/320602)

<div class="topic-metadata">

**Author:** [@ericmalta](https://discuss.elastic.co/u/ericmalta)\
**Replies:** 4\
**Last updated:** [December 7, 2022, 9:20pm UTC](https://discuss.elastic.co/t/re-installing-elasticsearch/320602 "2022-12-07T21:20:32Z")

</div>

Hello team I have a quick question. If I re-install my elasticsearch cluster via apt like this: sudo apt install --reinstall -o Dpkg::Options::="--force-confask,confnew,confmiss" elasticsearch Will I lose my cluster da…

---

## [Cannot give custom plugin permission org.elasticsearch.secure\_sm.ThreadPermission "modifyArbitraryThreadGroup"](https://discuss.elastic.co/t/cannot-give-custom-plugin-permission-org-elasticsearch-secure-sm-threadpermission-modifyarbitrarythreadgroup/320720)

<div class="topic-metadata">

**Author:** [@smillies](https://discuss.elastic.co/u/smillies)\
**Replies:** 0\
**Last updated:** [December 7, 2022, 8:40pm UTC](https://discuss.elastic.co/t/cannot-give-custom-plugin-permission-org-elasticsearch-secure-sm-threadpermission-modifyarbitrarythreadgroup/320720 "2022-12-07T20:40:26Z")

</div>

I have written a custom plugin that includes some third-party jars that do magic stuff requiring certain permissions. So I have added them to my plugin-security.policy like this grant { permission java.lang.reflect.Re…

---

## [SearchResponse as JSON](https://discuss.elastic.co/t/searchresponse-as-json/320475)

<div class="topic-metadata">

**Author:** [@divadpoc](https://discuss.elastic.co/u/divadpoc)\
**Replies:** 19\
**Last updated:** [December 7, 2022, 7:29pm UTC](https://discuss.elastic.co/t/searchresponse-as-json/320475 "2022-12-07T19:29:07Z")

</div>

Hi, I'm using version 8.5.1 w/ the Java client. I'm looking for a way to get the SearchResponse as JSON, or at least the same output I'd get when executing the query in Kibana. Thanks for any hints.

---

## [Multi-host docker-compose setup woes](https://discuss.elastic.co/t/multi-host-docker-compose-setup-woes/320692)

<div class="topic-metadata">

**Author:** [@bobus](https://discuss.elastic.co/u/bobus)\
**Replies:** 3\
**Last updated:** [December 7, 2022, 4:56pm UTC](https://discuss.elastic.co/t/multi-host-docker-compose-setup-woes/320692 "2022-12-07T16:56:35Z")

</div>

On three hosts A, B, and C, where a v5 cluster is already running, I need to setup a new v7 cluster, so that at some point I can migrate to v7 and drop the v5. This means I have to map ports 9200 & 9300 to different po…

---

## [New Logstash Grok add\_field](https://discuss.elastic.co/t/new-logstash-grok-add-field/320659)

<div class="topic-metadata">

**Author:** [@anon74213320](https://discuss.elastic.co/u/anon74213320)\
**Replies:** 2\
**Last updated:** [December 7, 2022, 3:14pm UTC](https://discuss.elastic.co/t/new-logstash-grok-add-field/320659 "2022-12-07T15:14:14Z")

</div>

Hi everyone I am trying to add a new field for pick up a hostname from a logfile like this format: Source : \\\\abc123 I tried with setting patterns file and add\_filed in grok and mutate but it is not added, it seems is…

---

## [Elasticsearch](https://discuss.elastic.co/t/elasticsearch/320691)

<div class="topic-metadata">

**Author:** [@manikanta](https://discuss.elastic.co/u/manikanta)\
**Replies:** 1\
**Last updated:** [December 7, 2022, 2:36pm UTC](https://discuss.elastic.co/t/elasticsearch/320691 "2022-12-07T14:36:40Z")

</div>

Can you write if - else type based queries in Elasticsearch?

---

## [Java elasticsearch-java-8.5.1 error on deserialisation of Instant Field](https://discuss.elastic.co/t/java-elasticsearch-java-8-5-1-error-on-deserialisation-of-instant-field/320681)

<div class="topic-metadata">

**Author:** [@Philip\_Bannon](https://discuss.elastic.co/u/Philip_Bannon)\
**Replies:** 1\
**Last updated:** [December 7, 2022, 12:36pm UTC](https://discuss.elastic.co/t/java-elasticsearch-java-8-5-1-error-on-deserialisation-of-instant-field/320681 "2022-12-07T12:36:17Z")

</div>

Hi, I have a Spring Boot app (Version 2.7.6) and I'm using the java API client elasticsearch-java-8.5.1. I'm doing a basic query but my object in ES contains an INSTANT value (see POJO below). When I perform the query I…

---

## [/usr/share/elasticsearch/bin/elasticsearch](https://discuss.elastic.co/t/usr-share-elasticsearch-bin-elasticsearch/320640)

<div class="topic-metadata">

**Author:** [@Alejandro\_Abeijon](https://discuss.elastic.co/u/Alejandro_Abeijon)\
**Replies:** 2\
**Last updated:** [December 7, 2022, 11:27am UTC](https://discuss.elastic.co/t/usr-share-elasticsearch-bin-elasticsearch/320640 "2022-12-07T11:27:58Z")

</div>

Hi, thanks in advance for the help. I installed Elasticsearch in a thousand ways and I always get the same error. Can someone guide me where to start exploring? Thank you very much! elasticsearch@test:~$ /usr/share/el…

---

## [How to change the mappings of an index in python itself?](https://discuss.elastic.co/t/how-to-change-the-mappings-of-an-index-in-python-itself/320666)

<div class="topic-metadata">

**Author:** [@Shashank02](https://discuss.elastic.co/u/Shashank02)\
**Replies:** 2\
**Last updated:** [December 7, 2022, 10:15am UTC](https://discuss.elastic.co/t/how-to-change-the-mappings-of-an-index-in-python-itself/320666 "2022-12-07T10:15:23Z")

</div>

I want to change the type of text to keyword of a csv file that I'm uploading in Elasticsearch using the Elastic Search client in Python. But I'm getting this error: elasticsearch.BadRequestError: BadRequestError(400, '…

---

## [Elasticsearch increase total\_in\_bytes value Memory](https://discuss.elastic.co/t/elasticsearch-increase-total-in-bytes-value-memory/320578)

<div class="topic-metadata">

**Author:** [@b\_Ensberg](https://discuss.elastic.co/u/b_Ensberg)\
**Replies:** 13\
**Last updated:** [December 7, 2022, 10:13am UTC](https://discuss.elastic.co/t/elasticsearch-increase-total-in-bytes-value-memory/320578 "2022-12-07T10:13:09Z")

</div>

Hello I'm running a single node on an Ubuntu machine. Currently I have not enough space on my node. "mem" : { "total\_in\_bytes" : 25217441792, "free\_in\_bytes" : 674197504, "used\_in\_bytes"…

---

## [How to configure elasticsearch 6 java](https://discuss.elastic.co/t/how-to-configure-elasticsearch-6-java/320652)

<div class="topic-metadata">

**Author:** [@aleshqo](https://discuss.elastic.co/u/aleshqo)\
**Replies:** 0\
**Last updated:** [December 7, 2022, 7:43am UTC](https://discuss.elastic.co/t/how-to-configure-elasticsearch-6-java/320652 "2022-12-07T07:43:35Z")

</div>

I'm using Spring version 2.1.18.RELEASE (I can't change this version) I need to implement a crud repository for elasticsearch, for this I connect spring-data-elasticsearch (version 3.1.21.RELEASE is automatically pulled …

---

## [Remote-connect to Elastic Node via Python](https://discuss.elastic.co/t/remote-connect-to-elastic-node-via-python/320485)

<div class="topic-metadata">

**Author:** [@ElasticUser11](https://discuss.elastic.co/u/ElasticUser11)\
**Replies:** 1\
**Last updated:** [December 7, 2022, 5:06am UTC](https://discuss.elastic.co/t/remote-connect-to-elastic-node-via-python/320485 "2022-12-07T05:06:21Z")

</div>

Trying to connect to a single Elastic node via Python, but I keep getting errors, mostly related to certificate issues. I have Elastic installed on an Ubuntu server and then try to connect to it from a Windows 10 machine…

---

## [Missing error details when adding Elasticsearch Datasource in Grafana](https://discuss.elastic.co/t/missing-error-details-when-adding-elasticsearch-datasource-in-grafana/320570)

<div class="topic-metadata">

**Author:** [@woocats](https://discuss.elastic.co/u/woocats)\
**Replies:** 0\
**Last updated:** [December 6, 2022, 11:23am UTC](https://discuss.elastic.co/t/missing-error-details-when-adding-elasticsearch-datasource-in-grafana/320570 "2022-12-06T11:23:42Z")

</div>

I'm trying to add an Elasticsearch instance that is deployed on a machine inside our network. We have a Grafana instance, that can add datasources from Elasticsearch cloud but when we try to add an Elasticsearch datasou…

---

## [Elasticsearch:8.5.2 docker "access denied (\\"java.lang.RuntimePermission\\" \\"modifyThread\\")"](https://discuss.elastic.co/t/elasticsearch-8-5-2-docker-access-denied-java-lang-runtimepermission-modifythread/320409)

<div class="topic-metadata">

**Author:** [@khteh](https://discuss.elastic.co/u/khteh)\
**Replies:** 6\
**Last updated:** [December 7, 2022, 3:16am UTC](https://discuss.elastic.co/t/elasticsearch-8-5-2-docker-access-denied-java-lang-runtimepermission-modifythread/320409 "2022-12-07T03:16:20Z")

</div>

{"@timestamp":"2022-12-03T09:13:59.279Z", "log.level":"ERROR", "message":"uncaught exception in thread \[process reaper (pid 117)\]", "ecs.version": "1.2.0","service.name":"ES\_ECS","event.dataset":"elasticsearch.server","p…

---

## [Cannot start elasticsearch with the root user](https://discuss.elastic.co/t/cannot-start-elasticsearch-with-the-root-user/320607)

<div class="topic-metadata">

**Author:** [@ericmalta](https://discuss.elastic.co/u/ericmalta)\
**Replies:** 9\
**Last updated:** [December 7, 2022, 3:02am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch-with-the-root-user/320607 "2022-12-07T03:02:44Z")

</div>

Have you seen that when you start the cluster it says you cannot start with the root user but then you change the /usr/share/elasticsearch and elasticsearch data directory ownership to the elasticsearch user and still th…

---

## [How do I Mitigate LOG4J CVE on Elasticsearch 7.4.0?](https://discuss.elastic.co/t/how-do-i-mitigate-log4j-cve-on-elasticsearch-7-4-0/320632)

<div class="topic-metadata">

**Author:** [@kashahyah](https://discuss.elastic.co/u/kashahyah)\
**Replies:** 2\
**Last updated:** [December 7, 2022, 1:36am UTC](https://discuss.elastic.co/t/how-do-i-mitigate-log4j-cve-on-elasticsearch-7-4-0/320632 "2022-12-07T01:36:16Z")

</div>

I have a 3-node ELK cluster in linux. Carbon Black scan picked up some vulnerable jar files. Should I: Upgrade Elasticsearch to 7.16 or later ? Remove the vulnerable JAR files ? Upgrade LOG4J components bundled in Elas…

---

## [How do I transfer mappings from one index to another with Java Api Client](https://discuss.elastic.co/t/how-do-i-transfer-mappings-from-one-index-to-another-with-java-api-client/320489)

<div class="topic-metadata">

**Author:** [@JDev64](https://discuss.elastic.co/u/JDev64)\
**Replies:** 1\
**Last updated:** [December 6, 2022, 10:31pm UTC](https://discuss.elastic.co/t/how-do-i-transfer-mappings-from-one-index-to-another-with-java-api-client/320489 "2022-12-06T22:31:38Z")

</div>

Hello, I'm currently building a Spring Java application and I use the \[Elastic Java Client\] (Elasticsearch Java API Client \[8.5\] | Elastic) (Version: 8.3.3) to communicate between my application and my elastic cluster. I…

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

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