# Elasticsearch

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

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

**Page:** 1059

---

## [JAVA8\_HOME not found while running tests](https://discuss.elastic.co/t/java8-home-not-found-while-running-tests/212976)

<div class="topic-metadata">

**Author:** [@CroissantBlanc](https://discuss.elastic.co/u/CroissantBlanc)\
**Replies:** 2\
**Last updated:** [December 27, 2019, 10:30am UTC](https://discuss.elastic.co/t/java8-home-not-found-while-running-tests/212976 "2019-12-27T10:30:35Z")

</div>

Hi, This is my first post, so I apologize if something is not as clear as it should be. I am sure the next ones will be better :slight\_smile: I want to contribute to the project so I forked and cloned the github repo a…

---

## [Error: Could not find or load main class Warning:](https://discuss.elastic.co/t/error-could-not-find-or-load-main-class-warning/212358)

<div class="topic-metadata">

**Author:** [@Suniel](https://discuss.elastic.co/u/Suniel)\
**Replies:** 1\
**Last updated:** [December 27, 2019, 8:54am UTC](https://discuss.elastic.co/t/error-could-not-find-or-load-main-class-warning/212358 "2019-12-27T08:54:40Z")

</div>

Whenever I am trying to start elasticserach from windows command prompt. I am getting following error. Error: Could not find or load main class Warning: I installed elasticsearch from .MSI installation file.

---

## [Problem running elasticsearch](https://discuss.elastic.co/t/problem-running-elasticsearch/212748)

<div class="topic-metadata">

**Author:** [@Nikolaos\_Metaxas](https://discuss.elastic.co/u/Nikolaos_Metaxas)\
**Replies:** 1\
**Last updated:** [December 27, 2019, 9:00am UTC](https://discuss.elastic.co/t/problem-running-elasticsearch/212748 "2019-12-27T09:00:13Z")

</div>

I Install Elasticsearch 7.5.1 ( msi installation ) in windows 10 When I run from C:\\Program Files\\Elastic\\7.5.1\\bin elasticsearch I receive the error Error: Could not find or load main class Warning: Please Help o…

---

## [Elasticsearch-setup-passwords interactive batch](https://discuss.elastic.co/t/elasticsearch-setup-passwords-interactive-batch/213158)

<div class="topic-metadata">

**Author:** [@screwyy](https://discuss.elastic.co/u/screwyy)\
**Replies:** 0\
**Last updated:** [December 27, 2019, 8:39am UTC](https://discuss.elastic.co/t/elasticsearch-setup-passwords-interactive-batch/213158 "2019-12-27T08:39:46Z")

</div>

hello, I'm using elasticsearch 7.3.1 and I am automating my deployment of elasticsearch with ansible. This involves managing users and their passwords (elastic, kibana etc.) I'm using file realm and nothing else (no na…

---

## [How to get Xpack security in cluster](https://discuss.elastic.co/t/how-to-get-xpack-security-in-cluster/213042)

<div class="topic-metadata">

**Author:** [@Sagar\_Mandal](https://discuss.elastic.co/u/Sagar_Mandal)\
**Replies:** 4\
**Last updated:** [December 27, 2019, 8:03am UTC](https://discuss.elastic.co/t/how-to-get-xpack-security-in-cluster/213042 "2019-12-27T08:03:14Z")

</div>

Hi Team, I just want to know who can i have X-Pack security enabled in a elasticsearch cluster( two nodes) and a kibana instance. Thanks

---

## [Migrate elasticsearch data to AWS from another cloud](https://discuss.elastic.co/t/migrate-elasticsearch-data-to-aws-from-another-cloud/213030)

<div class="topic-metadata">

**Author:** [@trenunu](https://discuss.elastic.co/u/trenunu)\
**Replies:** 3\
**Last updated:** [December 27, 2019, 6:42am UTC](https://discuss.elastic.co/t/migrate-elasticsearch-data-to-aws-from-another-cloud/213030 "2019-12-27T06:42:40Z")

</div>

Hey Guys, We're currently hosting our elasticsearch cluster on azure(not azure service, we set up our own cluster), and we are migrating to AWS. Am wondering what is the best approach. I saw the repository-s3 plugin, i…

---

## [InternalServerError when trying to create index](https://discuss.elastic.co/t/internalservererror-when-trying-to-create-index/213132)

<div class="topic-metadata">

**Author:** [@kyuma-git](https://discuss.elastic.co/u/kyuma-git)\
**Replies:** 0\
**Last updated:** [December 27, 2019, 5:35am UTC](https://discuss.elastic.co/t/internalservererror-when-trying-to-create-index/213132 "2019-12-27T05:35:29Z")

</div>

~Environment~ docker =\> docker.elastic.co/elasticsearch/elasticsearch:7.1.0 Rails =\> Version 5.1.7 Gem =\>elasticsearch-model, elasticsearch-rails I'm working on setting up Elasticsearch. but when I tryed to create i…

---

## [Search two ranges at the same time](https://discuss.elastic.co/t/search-two-ranges-at-the-same-time/213104)

<div class="topic-metadata">

**Author:** [@ChaosMTA](https://discuss.elastic.co/u/ChaosMTA)\
**Replies:** 2\
**Last updated:** [December 27, 2019, 4:22am UTC](https://discuss.elastic.co/t/search-two-ranges-at-the-same-time/213104 "2019-12-27T04:22:15Z")

</div>

Hey guys, I just have a question about a nested query I’m trying to do. So I have a index with a nested object. In that nested object I have two range types a date range and a double range. I want to create a query whe…

---

## [Request cache can not be enabled successfully in java transport client](https://discuss.elastic.co/t/request-cache-can-not-be-enabled-successfully-in-java-transport-client/213118)

<div class="topic-metadata">

**Author:** [@pphust](https://discuss.elastic.co/u/pphust)\
**Replies:** 0\
**Last updated:** [December 27, 2019, 2:29am UTC](https://discuss.elastic.co/t/request-cache-can-not-be-enabled-successfully-in-java-transport-client/213118 "2019-12-27T02:29:08Z")

</div>

Hi, I meet one strange problem in our es cluster. When I submit one http request through curl, or submit it through java rest client, the request cache works well and I can see "hit\_count" keep increasing when submitti…

---

## [Elasticsearch aggregation sum](https://discuss.elastic.co/t/elasticsearch-aggregation-sum/213100)

<div class="topic-metadata">

**Author:** [@Joy\_Salomon](https://discuss.elastic.co/u/Joy_Salomon)\
**Replies:** 0\
**Last updated:** [December 26, 2019, 4:24pm UTC](https://discuss.elastic.co/t/elasticsearch-aggregation-sum/213100 "2019-12-26T16:24:00Z")

</div>

I'm trying to sum revenue from orders, But the results are in float .6299743652344 Any idea why? Field in data is .00 ("grand\_total": 84.5) s = Search(using=ES, index='orders') s = s\[:0\] s.aggs.metric('rev', 'su…

---

## [Field have not localisation](https://discuss.elastic.co/t/field-have-not-localisation/213076)

<div class="topic-metadata">

**Author:** [@Randa\_Gharbi1](https://discuss.elastic.co/u/Randa_Gharbi1)\
**Replies:** 1\
**Last updated:** [December 26, 2019, 1:14pm UTC](https://discuss.elastic.co/t/field-have-not-localisation/213076 "2019-12-26T13:14:59Z")

</div>

if I launch the search by position (geo\_location) the teleassistance solution is not displayed, in elastic there is only one solution with the acronym TELE in the city vertou if I look for the word teleassistance in the …

---

## [Sum aggregation is incorrect compare to scroll all docs to sum](https://discuss.elastic.co/t/sum-aggregation-is-incorrect-compare-to-scroll-all-docs-to-sum/213009)

<div class="topic-metadata">

**Author:** [@hackerwin7](https://discuss.elastic.co/u/hackerwin7)\
**Replies:** 7\
**Last updated:** [December 26, 2019, 1:08pm UTC](https://discuss.elastic.co/t/sum-aggregation-is-incorrect-compare-to-scroll-all-docs-to-sum/213009 "2019-12-26T13:08:51Z")

</div>

Hi, I discovered that a simple sum aggregation is different to that I write a code to scroll all documents and sum the field value. the value formula is always ${sum-aggregation-result} + 1 == ${scroll-sum} Elasticsea…

---

## [ELK setup in one place for all the 3 application, but the storage(path.data ) used for ELK should be in there own datacenter](https://discuss.elastic.co/t/elk-setup-in-one-place-for-all-the-3-application-but-the-storage-path-data-used-for-elk-should-be-in-there-own-datacenter/213066)

<div class="topic-metadata">

**Author:** [@nikhilesh](https://discuss.elastic.co/u/nikhilesh)\
**Replies:** 2\
**Last updated:** [December 26, 2019, 12:13pm UTC](https://discuss.elastic.co/t/elk-setup-in-one-place-for-all-the-3-application-but-the-storage-path-data-used-for-elk-should-be-in-there-own-datacenter/213066 "2019-12-26T12:13:40Z")

</div>

Hi Team, We have 3 applications , 1 st application logs reside in own data center, 2nd one in AWS, 3rd one in Azure . now i would like to setup ELK for all the 3 applications. The setup should be like.. all the 3 appli…

---

## [What is the alternative to TermFilter() in ElasticSearch 7.5](https://discuss.elastic.co/t/what-is-the-alternative-to-termfilter-in-elasticsearch-7-5/213068)

<div class="topic-metadata">

**Author:** [@elabedouss](https://discuss.elastic.co/u/elabedouss)\
**Replies:** 0\
**Last updated:** [December 26, 2019, 10:38am UTC](https://discuss.elastic.co/t/what-is-the-alternative-to-termfilter-in-elasticsearch-7-5/213068 "2019-12-26T10:38:22Z")

</div>

I am wondering about an alternative method to TermFilter() in ES 7.5, it's deprecated since ES 2.x. My current method: @Override public boolean deleteAnnotation(String userName, String id) throws Exception { …

---

## [HightLevelRestClient RangeQuery Date form parse error](https://discuss.elastic.co/t/hightlevelrestclient-rangequery-date-form-parse-error/213059)

<div class="topic-metadata">

**Author:** [@dongshengYoung](https://discuss.elastic.co/u/dongshengYoung)\
**Replies:** 0\
**Last updated:** [December 26, 2019, 9:14am UTC](https://discuss.elastic.co/t/hightlevelrestclient-rangequery-date-form-parse-error/213059 "2019-12-26T09:14:38Z")

</div>

when I using "yyyy-MM-dd'T'HH:mm:ss.SSSZ" ("Z" upperCase) in request body, has error, but "yyyy-MM-dd'T'HH:mm:ss.SSSz" ("z" lowerCase) works? my error: "reason": { "type": "parse\_exception", …

---

## [Elasticsearch 7.5 Won't Start with Security Set](https://discuss.elastic.co/t/elasticsearch-7-5-wont-start-with-security-set/212045)

<div class="topic-metadata">

**Author:** [@ljacobs7211](https://discuss.elastic.co/u/ljacobs7211)\
**Replies:** 3\
**Last updated:** [December 26, 2019, 9:07am UTC](https://discuss.elastic.co/t/elasticsearch-7-5-wont-start-with-security-set/212045 "2019-12-26T09:07:16Z")

</div>

Configured x-pack security settings on Basic license two node cluster but Elasticsearch service won't start. What helpful tips can help solve this issue?

---

## [Elasticsearch going down in cordinator node because of JVM heap space issue](https://discuss.elastic.co/t/elasticsearch-going-down-in-cordinator-node-because-of-jvm-heap-space-issue/212945)

<div class="topic-metadata">

**Author:** [@Stephy\_Jacob](https://discuss.elastic.co/u/Stephy_Jacob)\
**Replies:** 11\
**Last updated:** [December 26, 2019, 8:37am UTC](https://discuss.elastic.co/t/elasticsearch-going-down-in-cordinator-node-because-of-jvm-heap-space-issue/212945 "2019-12-26T08:37:22Z")

</div>

Hi, We have a 11 node ES cluster in AWS cloud, version ES 6.6.2, which is performing intensive bulk ingestion with very minimum search queries. PFB node configuration Node Type Instance type JVM configured 1 Master, D…

---

## ["Kibana server is not ready yet" message](https://discuss.elastic.co/t/kibana-server-is-not-ready-yet-message/213055)

<div class="topic-metadata">

**Author:** [@sessh](https://discuss.elastic.co/u/sessh)\
**Replies:** 0\
**Last updated:** [December 26, 2019, 7:59am UTC](https://discuss.elastic.co/t/kibana-server-is-not-ready-yet-message/213055 "2019-12-26T07:59:48Z")

</div>

Hi Everyone, I am trying to setup elasticsearch on AWS and encountered this message "Kibana server is not ready yet" when i run curl http://localhost:5601. Any idea what i can check on? Results from version sudo /usr/…

---

## [How to add array elements into existing array using painless script into elasticsearch?](https://discuss.elastic.co/t/how-to-add-array-elements-into-existing-array-using-painless-script-into-elasticsearch/213054)

<div class="topic-metadata">

**Author:** [@adarshzphin](https://discuss.elastic.co/u/adarshzphin)\
**Replies:** 0\
**Last updated:** [December 26, 2019, 7:49am UTC](https://discuss.elastic.co/t/how-to-add-array-elements-into-existing-array-using-painless-script-into-elasticsearch/213054 "2019-12-26T07:49:09Z")

</div>

Below is given structure: root |-- customerid: long (nullable = true) |-- leadid: long (nullable = true) |-- statusid: integer (nullable = true) |-- islaststatus: string (nullable = true) |-- hist: array (nullable …

---

## [Elasticsearch security checklist](https://discuss.elastic.co/t/elasticsearch-security-checklist/213008)

<div class="topic-metadata">

**Author:** [@Idann](https://discuss.elastic.co/u/Idann)\
**Replies:** 0\
**Last updated:** [December 25, 2019, 9:19am UTC](https://discuss.elastic.co/t/elasticsearch-security-checklist/213008 "2019-12-25T09:19:47Z")

</div>

I wish to create a checklist of all Security options within Elasticsearch, I found a few websites online and the official manual, I would appreciate any info about comprehensive hardening checklist I can get to implement…

---

## [Possible memory leak in elasticsearch 6.2.4](https://discuss.elastic.co/t/possible-memory-leak-in-elasticsearch-6-2-4/212988)

<div class="topic-metadata">

**Author:** [@imperio-wxm](https://discuss.elastic.co/u/imperio-wxm)\
**Replies:** 2\
**Last updated:** [December 26, 2019, 7:23am UTC](https://discuss.elastic.co/t/possible-memory-leak-in-elasticsearch-6-2-4/212988 "2019-12-26T07:23:46Z")

</div>

I have a cluster for 3 nodes. index number：2816 shards： 24893 docs： 1240277375 disk use: 477G // jvm ops -Xms8g -Xmx8g ## GC configuration -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSIn…

---

## [How to create index template or pipeline in an es plugin](https://discuss.elastic.co/t/how-to-create-index-template-or-pipeline-in-an-es-plugin/212582)

<div class="topic-metadata">

**Author:** [@Yanchun](https://discuss.elastic.co/u/Yanchun)\
**Replies:** 2\
**Last updated:** [December 26, 2019, 2:35am UTC](https://discuss.elastic.co/t/how-to-create-index-template-or-pipeline-in-an-es-plugin/212582 "2019-12-26T02:35:22Z")

</div>

Hi, is there any example to create index template or pipeline in an es plugin?

---

## [Support in x-pack platinum: data at rest](https://discuss.elastic.co/t/support-in-x-pack-platinum-data-at-rest/213017)

<div class="topic-metadata">

**Author:** [@hadasdana](https://discuss.elastic.co/u/hadasdana)\
**Replies:** 0\
**Last updated:** [December 25, 2019, 1:24pm UTC](https://discuss.elastic.co/t/support-in-x-pack-platinum-data-at-rest/213017 "2019-12-25T13:24:55Z")

</div>

Hello We planned to have Platinum license and i saw there is a support for Encryption at rest in security x-pack. I would like to understand: in a multi node cluster with sufficient replicas of the indexes Is there a…

---

## [Full match of query value from beginning to end of field](https://discuss.elastic.co/t/full-match-of-query-value-from-beginning-to-end-of-field/212979)

<div class="topic-metadata">

**Author:** [@unavailabl3](https://discuss.elastic.co/u/unavailabl3)\
**Replies:** 3\
**Last updated:** [December 25, 2019, 1:03pm UTC](https://discuss.elastic.co/t/full-match-of-query-value-from-beginning-to-end-of-field/212979 "2019-12-25T13:03:22Z")

</div>

Hello! I have problem with full match querying of field value. title and gender - fields of indexed docs query: { query\_string: { query: "box AND gender:\\"women\\"", default\_field: "title" } } I use double q…

---

## [How much minimum ram is required for these indicies?](https://discuss.elastic.co/t/how-much-minimum-ram-is-required-for-these-indicies/212969)

<div class="topic-metadata">

**Author:** [@Aurel\_Drejta](https://discuss.elastic.co/u/Aurel_Drejta)\
**Replies:** 2\
**Last updated:** [December 25, 2019, 8:46am UTC](https://discuss.elastic.co/t/how-much-minimum-ram-is-required-for-these-indicies/212969 "2019-12-25T08:46:51Z")

</div>

I'm having trouble figuring out how much ram i need per data node to accommodate my indexes. I search in all these indexes at once and i use highlighting when searching so that probably adds to the memory footprint. At…

---

## [Index creation doesn't align to the index template](https://discuss.elastic.co/t/index-creation-doesnt-align-to-the-index-template/212999)

<div class="topic-metadata">

**Author:** [@ntran](https://discuss.elastic.co/u/ntran)\
**Replies:** 0\
**Last updated:** [December 25, 2019, 7:38am UTC](https://discuss.elastic.co/t/index-creation-doesnt-align-to-the-index-template/212999 "2019-12-25T07:38:44Z")

</div>

Hi, I have a template which follows: PUT \_template/syslog-template { "index\_patterns": \["syslog\*"\], "settings": { "index": { "number\_of\_shards": 3, "routing.allocation.require.box\_type": "warm" …

---

## [Practical size for attachments](https://discuss.elastic.co/t/practical-size-for-attachments/207273)

<div class="topic-metadata">

**Author:** [@DaveG](https://discuss.elastic.co/u/DaveG)\
**Replies:** 3\
**Last updated:** [December 25, 2019, 7:13am UTC](https://discuss.elastic.co/t/practical-size-for-attachments/207273 "2019-12-25T07:13:20Z")

</div>

Hi All, For attachment data, is there a practical size limit to the content of the attachment? I wish to add multiple attachments to an index in a nested sub-object and there may be a lot of data. Is there a point whe…

---

## [Failed to enable unit: Unit file logstash.service does not exist](https://discuss.elastic.co/t/failed-to-enable-unit-unit-file-logstash-service-does-not-exist/212995)

<div class="topic-metadata">

**Author:** [@WhatsElastic](https://discuss.elastic.co/u/WhatsElastic)\
**Replies:** 0\
**Last updated:** [December 25, 2019, 6:40am UTC](https://discuss.elastic.co/t/failed-to-enable-unit-unit-file-logstash-service-does-not-exist/212995 "2019-12-25T06:40:55Z")

</div>

I am trying to instal ELK stack on raspberry pi using easyELK method. While installing I am getting below error Enabling Services for Start on Boot Starting Elastic, Logstash, Kibana Services Failed to enable unit: Un…

---

## [Index size increased after shrink](https://discuss.elastic.co/t/index-size-increased-after-shrink/212994)

<div class="topic-metadata">

**Author:** [@imperio-wxm](https://discuss.elastic.co/u/imperio-wxm)\
**Replies:** 0\
**Last updated:** [December 25, 2019, 6:12am UTC](https://discuss.elastic.co/t/index-size-increased-after-shrink/212994 "2019-12-25T06:12:34Z")

</div>

Before shrink： After shrink： Reduced shards from 10 to 2，and doc number unchanged，but total size increase，what is the extra data？

---

## [Partial update in Index bulk](https://discuss.elastic.co/t/partial-update-in-index-bulk/212965)

<div class="topic-metadata">

**Author:** [@anas-hossam](https://discuss.elastic.co/u/anas-hossam)\
**Replies:** 3\
**Last updated:** [December 24, 2019, 9:20pm UTC](https://discuss.elastic.co/t/partial-update-in-index-bulk/212965 "2019-12-24T21:20:21Z")

</div>

when using index in bulk API, Is there away for partial update in case of document already exists ?

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

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