# Elasticsearch

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

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

**Page:** 1029

---

## [Trigger an alert on a condition](https://discuss.elastic.co/t/trigger-an-alert-on-a-condition/217103)

<div class="topic-metadata">

**Author:** [@shappy123](https://discuss.elastic.co/u/shappy123)\
**Replies:** 5\
**Last updated:** [February 3, 2020, 3:07pm UTC](https://discuss.elastic.co/t/trigger-an-alert-on-a-condition/217103 "2020-02-03T15:07:52Z")

</div>

Hi I want to trigger an email alert based on this condition : that if in the log this --- "," RequestPath":"/documentService/v1/Document/uploadLink ----- doesnt appear in the logs for next 12 hours so should send an…

---

## [Sudo service start throwing error as /home/ec2-user/elasticsearch-7.5.2/bin/elasticsearch: Perm... denied](https://discuss.elastic.co/t/sudo-service-start-throwing-error-as-home-ec2-user-elasticsearch-7-5-2-bin-elasticsearch-perm-denied/217502)

<div class="topic-metadata">

**Author:** [@sridharspeaks](https://discuss.elastic.co/u/sridharspeaks)\
**Replies:** 1\
**Last updated:** [February 3, 2020, 2:51pm UTC](https://discuss.elastic.co/t/sudo-service-start-throwing-error-as-home-ec2-user-elasticsearch-7-5-2-bin-elasticsearch-perm-denied/217502 "2020-02-03T14:51:14Z")

</div>

I installed elasticsearch 7.5.2 in AWS EC2 linux. I created required file in /etc/init.d/elasticsearch and added elasticsearch and group to this instance. Provided +x permissions to user. However, when I am trying to do…

---

## [Clustered elasticsearch gc.log](https://discuss.elastic.co/t/clustered-elasticsearch-gc-log/217518)

<div class="topic-metadata">

**Author:** [@Mohammad\_Mousavi](https://discuss.elastic.co/u/Mohammad_Mousavi)\
**Replies:** 3\
**Last updated:** [February 3, 2020, 2:49pm UTC](https://discuss.elastic.co/t/clustered-elasticsearch-gc-log/217518 "2020-02-03T14:49:25Z")

</div>

Hi, I have 3 elasticsearch nodes, each one with 5 GB JVM heap size. I have 1 primary shard with 1 replica set. I see this on gc.log keeps appending. Is this a error ? what's that means ? Thanx \[2020-02-02T10:00:34.709…

---

## [Hprof files + Ports](https://discuss.elastic.co/t/hprof-files-ports/217636)

<div class="topic-metadata">

**Author:** [@Kirtash](https://discuss.elastic.co/u/Kirtash)\
**Replies:** 0\
**Last updated:** [February 3, 2020, 2:27pm UTC](https://discuss.elastic.co/t/hprof-files-ports/217636 "2020-02-03T14:27:30Z")

</div>

Hi all! I have problems with the instances of elasticsearch because I don't have free space in the server. When I analyzed the files, I saw that it has a lot of files with the termination .hprof. Which is the meaning o…

---

## [Setting cluster restart settings](https://discuss.elastic.co/t/setting-cluster-restart-settings/217618)

<div class="topic-metadata">

**Author:** [@ggdd](https://discuss.elastic.co/u/ggdd)\
**Replies:** 2\
**Last updated:** [February 3, 2020, 1:11pm UTC](https://discuss.elastic.co/t/setting-cluster-restart-settings/217618 "2020-02-03T13:11:39Z")

</div>

Hi, I am trying to set some sane values on the gateway recovery settings and wanted to make sure that I am understanding these correctly. Assuming that I have a cluster with 3 master-eligible nodes and 10 data nodes wi…

---

## [Elastic cloud jvm version and garbage collector](https://discuss.elastic.co/t/elastic-cloud-jvm-version-and-garbage-collector/217622)

<div class="topic-metadata">

**Author:** [@\_tim](https://discuss.elastic.co/u/_tim)\
**Replies:** 0\
**Last updated:** [February 3, 2020, 12:33pm UTC](https://discuss.elastic.co/t/elastic-cloud-jvm-version-and-garbage-collector/217622 "2020-02-03T12:33:22Z")

</div>

Hi, Just wondered what JVM version and garbage collector are used when using the elastic hosted cloud (ES 7+). I couldn't find any information in the docs, so thought i would ask here. Is it dependant on cluster size or…

---

## [Kuromoji analyzer plugin together with search analyzer synonyms](https://discuss.elastic.co/t/kuromoji-analyzer-plugin-together-with-search-analyzer-synonyms/216444)

<div class="topic-metadata">

**Author:** [@jei](https://discuss.elastic.co/u/jei)\
**Replies:** 1\
**Last updated:** [February 3, 2020, 11:47am UTC](https://discuss.elastic.co/t/kuromoji-analyzer-plugin-together-with-search-analyzer-synonyms/216444 "2020-02-03T11:47:30Z")

</div>

Hi, We're in the process of making use of synonyms with search analyzers. We have analyzers for each language. These are almost the same, but using different stemmers for each analyzer. The creation of Analyzers and Se…

---

## [Cluster High Availability](https://discuss.elastic.co/t/cluster-high-availability/217389)

<div class="topic-metadata">

**Author:** [@Michele\_Johl](https://discuss.elastic.co/u/Michele_Johl)\
**Replies:** 3\
**Last updated:** [February 3, 2020, 11:41am UTC](https://discuss.elastic.co/t/cluster-high-availability/217389 "2020-02-03T11:41:19Z")

</div>

We had an incident today with Elastic and High Availability was a total failure for 4 minutes when 1 of the nodes died, causing rather large issues on our end as all search queries failed for any indexes with the primary…

---

## [After creating API key attempting to use it results in: missing authentication credentials for REST request](https://discuss.elastic.co/t/after-creating-api-key-attempting-to-use-it-results-in-missing-authentication-credentials-for-rest-request/217266)

<div class="topic-metadata">

**Author:** [@scarby](https://discuss.elastic.co/u/scarby)\
**Replies:** 3\
**Last updated:** [February 3, 2020, 8:19am UTC](https://discuss.elastic.co/t/after-creating-api-key-attempting-to-use-it-results-in-missing-authentication-credentials-for-rest-request/217266 "2020-02-03T08:19:40Z")

</div>

Hope someone can help here i'm attempting to create api keys for a user and utilize them as documented here: https://www.elastic.co/guide/en/elasticsearch/reference/7.5/security-api-create-api-key.html i have successf…

---

## [Licence renewal](https://discuss.elastic.co/t/licence-renewal/217037)

<div class="topic-metadata">

**Author:** [@Tim\_James](https://discuss.elastic.co/u/Tim_James)\
**Replies:** 10\
**Last updated:** [February 3, 2020, 10:31am UTC](https://discuss.elastic.co/t/licence-renewal/217037 "2020-02-03T10:31:00Z")

</div>

I am trying to install a new licence which i have downloaded for my 6.0.1 installation. but I get the following error when typing it into kibana { "error": { "root\_cause": \[ { "type": "exception", "reason": "Unkno…

---

## [Query\_string not returning results that is known to be in the searched fields](https://discuss.elastic.co/t/query-string-not-returning-results-that-is-known-to-be-in-the-searched-fields/217604)

<div class="topic-metadata">

**Author:** [@ErikWarming](https://discuss.elastic.co/u/ErikWarming)\
**Replies:** 0\
**Last updated:** [February 3, 2020, 10:20am UTC](https://discuss.elastic.co/t/query-string-not-returning-results-that-is-known-to-be-in-the-searched-fields/217604 "2020-02-03T10:20:43Z")

</div>

I have an index with data in several nested fields, that I want to build a small search engine for. Below I have my query, data example, and mapping. I'm using highlight to display my result If I search for "known exis…

---

## [Found two aggregation type definitions](https://discuss.elastic.co/t/found-two-aggregation-type-definitions/217598)

<div class="topic-metadata">

**Author:** [@muhammadvinam1212](https://discuss.elastic.co/u/muhammadvinam1212)\
**Replies:** 0\
**Last updated:** [February 3, 2020, 10:10am UTC](https://discuss.elastic.co/t/found-two-aggregation-type-definitions/217598 "2020-02-03T10:10:45Z")

</div>

showing Found two aggregation type definitions in \[viewBy\]: \[composite\] and \[terms\] error in api. but perfectly working on kibana developer console.

---

## [TASK \[elastic.elasticsearch : fail when heap size is not specified when using memory lock\]](https://discuss.elastic.co/t/task-elastic-elasticsearch-fail-when-heap-size-is-not-specified-when-using-memory-lock/217560)

<div class="topic-metadata">

**Author:** [@mudricd](https://discuss.elastic.co/u/mudricd)\
**Replies:** 0\
**Last updated:** [February 3, 2020, 5:22am UTC](https://discuss.elastic.co/t/task-elastic-elasticsearch-fail-when-heap-size-is-not-specified-when-using-memory-lock/217560 "2020-02-03T05:22:16Z")

</div>

Hi, I am trying to configure Elasticsearch cluster over Ansible. I use official Elastic Ansible role elastic.elasticsearch for this. Unfortunatelly my set up keep failing with the following error: TASK \[elastic.elastic…

---

## [How to access doc value on nested type in script query (filter context)](https://discuss.elastic.co/t/how-to-access-doc-value-on-nested-type-in-script-query-filter-context/217576)

<div class="topic-metadata">

**Author:** [@f3l1xss](https://discuss.elastic.co/u/f3l1xss)\
**Replies:** 0\
**Last updated:** [February 3, 2020, 8:49am UTC](https://discuss.elastic.co/t/how-to-access-doc-value-on-nested-type-in-script-query-filter-context/217576 "2020-02-03T08:49:16Z")

</div>

Hi Guys, I have the below index: cargroup "mappings": { "properties": { "id": { "type": "integer" }, "cars": { "type": "nested", "properties": { …

---

## [Elasticsearch.yml is empty](https://discuss.elastic.co/t/elasticsearch-yml-is-empty/217572)

<div class="topic-metadata">

**Author:** [@juuuhuuu](https://discuss.elastic.co/u/juuuhuuu)\
**Replies:** 0\
**Last updated:** [February 3, 2020, 8:02am UTC](https://discuss.elastic.co/t/elasticsearch-yml-is-empty/217572 "2020-02-03T08:02:28Z")

</div>

Good mornig :slight\_smile: Please help . I was following the webpage of installing elasticsearch on docker .. and my elasticsearch.yml is empty .. It should not be like that , right? :smiley: Where could I do mistak…

---

## [Enabling shard allocation does not enable it for follower indices](https://discuss.elastic.co/t/enabling-shard-allocation-does-not-enable-it-for-follower-indices/217353)

<div class="topic-metadata">

**Author:** [@kley](https://discuss.elastic.co/u/kley)\
**Replies:** 6\
**Last updated:** [February 3, 2020, 7:56am UTC](https://discuss.elastic.co/t/enabling-shard-allocation-does-not-enable-it-for-follower-indices/217353 "2020-02-03T07:56:19Z")

</div>

Hi there! So, I encountered a weird behavior where I'm not sure if this is my fault or not. We have this scenario, two DCs (DC1 and DC2). DC2 follows DC1. So, when we upgrade something we usually disable shard allocat…

---

## [Throughput](https://discuss.elastic.co/t/throughput/215649)

<div class="topic-metadata">

**Author:** [@kinlee](https://discuss.elastic.co/u/kinlee)\
**Replies:** 3\
**Last updated:** [February 3, 2020, 7:35am UTC](https://discuss.elastic.co/t/throughput/215649 "2020-02-03T07:35:55Z")

</div>

Is it possible to find a maximum throughput (indexing, term,phase) using esrally? if so what value do we have to assign in challenges? Thanking you

---

## [When will Elasticsearch 7.6.0 be released?](https://discuss.elastic.co/t/when-will-elasticsearch-7-6-0-be-released/217569)

<div class="topic-metadata">

**Author:** [@yc1024](https://discuss.elastic.co/u/yc1024)\
**Replies:** 1\
**Last updated:** [February 3, 2020, 7:32am UTC](https://discuss.elastic.co/t/when-will-elasticsearch-7-6-0-be-released/217569 "2020-02-03T07:32:49Z")

</div>

I saw the elasticsearch 7.6.0 release notes on the elasticsearch official website on 2020/01/16, but I never saw the tag of the elasticsearch 7.6.0. When will Elasticsearch 7.6.0 be released?

---

## [Error while reindexing data: Mixing up field types \[ ES version 5.4.3 \]](https://discuss.elastic.co/t/error-while-reindexing-data-mixing-up-field-types-es-version-5-4-3/217142)

<div class="topic-metadata">

**Author:** [@ashwani2797](https://discuss.elastic.co/u/ashwani2797)\
**Replies:** 2\
**Last updated:** [February 3, 2020, 6:59am UTC](https://discuss.elastic.co/t/error-while-reindexing-data-mixing-up-field-types-es-version-5-4-3/217142 "2020-02-03T06:59:04Z")

</div>

Hi Team, I am reindexing data because the required change type of field, but during reindexing, I got the error. Mixing up field types: class org.elasticsearch.index.mapper.KeywordFieldMapper$KeywordFieldType != class …

---

## [What's the best way to sync data between MySQL and Elasticsearch](https://discuss.elastic.co/t/whats-the-best-way-to-sync-data-between-mysql-and-elasticsearch/217558)

<div class="topic-metadata">

**Author:** [@Shafath\_Ahmed](https://discuss.elastic.co/u/Shafath_Ahmed)\
**Replies:** 3\
**Last updated:** [February 3, 2020, 6:15am UTC](https://discuss.elastic.co/t/whats-the-best-way-to-sync-data-between-mysql-and-elasticsearch/217558 "2020-02-03T06:15:14Z")

</div>

Hi All We are using MySQL as primary db and Elasticsearch for secondary db(basically for search purpose). We are building a Job Portal. There are mainly three use cases where the search will be performed on Elasticsearc…

---

## [ES 7.3 - Delete by Query - Deletes more than match clause](https://discuss.elastic.co/t/es-7-3-delete-by-query-deletes-more-than-match-clause/217544)

<div class="topic-metadata">

**Author:** [@u3432](https://discuss.elastic.co/u/u3432)\
**Replies:** 6\
**Last updated:** [February 2, 2020, 11:48pm UTC](https://discuss.elastic.co/t/es-7-3-delete-by-query-deletes-more-than-match-clause/217544 "2020-02-02T23:48:39Z")

</div>

Hi all, I am using Elastic Stack to process some logs. There are some logs I dont need so decided to delete them. I deleted them using delete by query and setting the match for log.file.path. Here is the curl setup I us…

---

## [How to increase a date by e.g. 1 day using Painless script?](https://discuss.elastic.co/t/how-to-increase-a-date-by-e-g-1-day-using-painless-script/216873)

<div class="topic-metadata">

**Author:** [@JohanP](https://discuss.elastic.co/u/JohanP)\
**Replies:** 2\
**Last updated:** [February 2, 2020, 7:24pm UTC](https://discuss.elastic.co/t/how-to-increase-a-date-by-e-g-1-day-using-painless-script/216873 "2020-02-02T19:24:34Z")

</div>

Just starting to use Painless as excercise before certification. Am wondering how to attack the problem of updating/increasing a date field by using a Painless script? I know how to for example increase a simple counte…

---

## [Help needed, Elastic+Kibana Ubuntu 18.04.LTS problem](https://discuss.elastic.co/t/help-needed-elastic-kibana-ubuntu-18-04-lts-problem/217507)

<div class="topic-metadata">

**Author:** [@mmalisa12](https://discuss.elastic.co/u/mmalisa12)\
**Replies:** 4\
**Last updated:** [February 2, 2020, 5:16pm UTC](https://discuss.elastic.co/t/help-needed-elastic-kibana-ubuntu-18-04-lts-problem/217507 "2020-02-02T17:16:30Z")

</div>

Hi, pretty frustrating installation of Elastic and Kibana. Elastic is running OK, checked with curl, got "You know, for searching" reply. Starting kibana with --allow-root to see where problem is and message is: Licen…

---

## [Java High Level Rest Client - including a basepath to request urls](https://discuss.elastic.co/t/java-high-level-rest-client-including-a-basepath-to-request-urls/217533)

<div class="topic-metadata">

**Author:** [@SavvySkylark](https://discuss.elastic.co/u/SavvySkylark)\
**Replies:** 2\
**Last updated:** [February 2, 2020, 3:50pm UTC](https://discuss.elastic.co/t/java-high-level-rest-client-including-a-basepath-to-request-urls/217533 "2020-02-02T15:50:29Z")

</div>

I have an API Gateway that will be put in-front of our elasticsearch APIs. It routes traffic by using a basepath. So a request url would look like the following. https://api.example.com/elasticsearch/v1/exampleindex/\_se…

---

## [Change of ports for elasticsearch does not work](https://discuss.elastic.co/t/change-of-ports-for-elasticsearch-does-not-work/217538)

<div class="topic-metadata">

**Author:** [@juuuhuuu](https://discuss.elastic.co/u/juuuhuuu)\
**Replies:** 0\
**Last updated:** [February 2, 2020, 3:42pm UTC](https://discuss.elastic.co/t/change-of-ports-for-elasticsearch-does-not-work/217538 "2020-02-02T15:42:35Z")

</div>

Hi all :sunny: please help, So I pulled the image of elasticsearch on docker and create in docker-compose.yml different ports for elasticsearch (9200 to 9222) .. but I have not started it yet .. Where in the sett…

---

## [Agg count only once per parent in nested objects](https://discuss.elastic.co/t/agg-count-only-once-per-parent-in-nested-objects/217267)

<div class="topic-metadata">

**Author:** [@Philipp\_Loew](https://discuss.elastic.co/u/Philipp_Loew)\
**Replies:** 2\
**Last updated:** [February 2, 2020, 3:37pm UTC](https://discuss.elastic.co/t/agg-count-only-once-per-parent-in-nested-objects/217267 "2020-02-02T15:37:22Z")

</div>

Hi there, I have a mapping with nested objects, that we use to combine variants to a main product. we do nested aggregations on the variants to find values of certain keys. The agg counts are incremented by one, for ea…

---

## [Boost\_factor deprecated?](https://discuss.elastic.co/t/boost-factor-deprecated/217513)

<div class="topic-metadata">

**Author:** [@itmare](https://discuss.elastic.co/u/itmare)\
**Replies:** 0\
**Last updated:** [February 2, 2020, 5:39am UTC](https://discuss.elastic.co/t/boost-factor-deprecated/217513 "2020-02-02T05:39:21Z")

</div>

hi, I have a question real quick. It seems like boost\_factor option (functions in function\_score) is deprecated and replaced to weight. Is it right? If it is true, from which version it is changed like that? And why…

---

## [Cluster sitting idle using 80% CPU, System Load over 5, ES 7.4.1](https://discuss.elastic.co/t/cluster-sitting-idle-using-80-cpu-system-load-over-5-es-7-4-1/217063)

<div class="topic-metadata">

**Author:** [@Doc\_Kaos](https://discuss.elastic.co/u/Doc_Kaos)\
**Replies:** 6\
**Last updated:** [February 1, 2020, 7:11pm UTC](https://discuss.elastic.co/t/cluster-sitting-idle-using-80-cpu-system-load-over-5-es-7-4-1/217063 "2020-02-01T19:11:41Z")

</div>

After ingesting some test data in our cluster, we are seeing the data nodes run at over 80% CPU and a system load of between 2-5 on each data node when it is just sitting idle. There is nothing ingesting, nothing queryin…

---

## [Reindex data into smallers index](https://discuss.elastic.co/t/reindex-data-into-smallers-index/217336)

<div class="topic-metadata">

**Author:** [@LuigiDelavega](https://discuss.elastic.co/u/LuigiDelavega)\
**Replies:** 3\
**Last updated:** [February 1, 2020, 4:16pm UTC](https://discuss.elastic.co/t/reindex-data-into-smallers-index/217336 "2020-02-01T16:16:23Z")

</div>

Hello, I'm looking to aggregate index data to new smallers indexes. I will try to explain myself quickly : I'm getting CPU infos every 30 seconds in A-Index pour real time monitoring. After a week, i would like to get …

---

## [Copy\_to field in an update script with moving a object field to a nested field?](https://discuss.elastic.co/t/copy-to-field-in-an-update-script-with-moving-a-object-field-to-a-nested-field/217247)

<div class="topic-metadata">

**Author:** [@JPVay](https://discuss.elastic.co/u/JPVay)\
**Replies:** 1\
**Last updated:** [February 1, 2020, 11:30am UTC](https://discuss.elastic.co/t/copy-to-field-in-an-update-script-with-moving-a-object-field-to-a-nested-field/217247 "2020-02-01T11:30:17Z")

</div>

version : 7.5 Using JS API but same with REST API making an update like : { index : "myindex", id : pid, refresh : true, body : { "script" : { "source" : " ctx.\_source.Histo.add(ctx.\_source.Actual); ctx.\_source…

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

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