# Elasticsearch

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

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

**Page:** 1627

---

## [Problem configuring Gmail account for watcher](https://discuss.elastic.co/t/problem-configuring-gmail-account-for-watcher/138985)

<div class="topic-metadata">

**Author:** [@Rob2](https://discuss.elastic.co/u/Rob2)\
**Replies:** 1\
**Last updated:** [July 6, 2018, 10:24pm UTC](https://discuss.elastic.co/t/problem-configuring-gmail-account-for-watcher/138985 "2018-07-06T22:24:29Z")

</div>

I'm following the info at Configuring Watcher to Send Email | Elasticsearch Watcher \[2.4\] | Elastic Placing in elasticsearch.yml the following: watcher.actions.email.service.account: gmail\_account: profile:…

---

## [6.4 build failed](https://discuss.elastic.co/t/6-4-build-failed/138983)

<div class="topic-metadata">

**Author:** [@Hyojoung\_Shin](https://discuss.elastic.co/u/Hyojoung_Shin)\
**Replies:** 0\
**Last updated:** [July 6, 2018, 9:37pm UTC](https://discuss.elastic.co/t/6-4-build-failed/138983 "2018-07-06T21:37:43Z")

</div>

Hi, I tried to build 6.4 but it failed. I googled it for long time :disappointed\_relieved: If my step has errors, please correct me. amazon linux, java "1.8.0\_171" $git clone -b 6.x https://github.com/elastic/elasti…

---

## [Kubernetes Master pods get into splitbrain](https://discuss.elastic.co/t/kubernetes-master-pods-get-into-splitbrain/138609)

<div class="topic-metadata">

**Author:** [@Rajesh\_Kodali](https://discuss.elastic.co/u/Rajesh_Kodali)\
**Replies:** 3\
**Last updated:** [July 4, 2018, 11:53pm UTC](https://discuss.elastic.co/t/kubernetes-master-pods-get-into-splitbrain/138609 "2018-07-04T23:53:31Z")

</div>

We had this happen few times with different versions of Elasticsearch 5.x Our setup is 5 es-masters and minimum\_master\_nodes set to 3 The initial Logs: \[2018-07-04T13:17:33,571\]\[INFO \]\[o.e.c.s.ClusterService \] \[es-m…

---

## [Find elasticsearch node\_name](https://discuss.elastic.co/t/find-elasticsearch-node-name/138978)

<div class="topic-metadata">

**Author:** [@amruth](https://discuss.elastic.co/u/amruth)\
**Replies:** 0\
**Last updated:** [July 6, 2018, 8:01pm UTC](https://discuss.elastic.co/t/find-elasticsearch-node-name/138978 "2018-07-06T20:01:58Z")

</div>

Hi, I am running a 3 node Elasticsearch cluster. Is it possible in any way to have node\_name in Elasticsearch logs? I know I am being dumb but is it possible to extract using Logstash? Thanks

---

## [Elasticsearch index went in Read-only mode](https://discuss.elastic.co/t/elasticsearch-index-went-in-read-only-mode/138963)

<div class="topic-metadata">

**Author:** [@Milind\_Khairnar](https://discuss.elastic.co/u/Milind_Khairnar)\
**Replies:** 3\
**Last updated:** [July 6, 2018, 7:19pm UTC](https://discuss.elastic.co/t/elasticsearch-index-went-in-read-only-mode/138963 "2018-07-06T19:19:24Z")

</div>

Hello, we are hitting this exception on index operation. Our Hosts are big machines and have huge SSD. One particular index went in "Read only" mode and hence any further indexing operations failed. I would like to call…

---

## [ES query sorting by date with custom missing value](https://discuss.elastic.co/t/es-query-sorting-by-date-with-custom-missing-value/138966)

<div class="topic-metadata">

**Author:** [@user3078523](https://discuss.elastic.co/u/user3078523)\
**Replies:** 0\
**Last updated:** [July 6, 2018, 5:26pm UTC](https://discuss.elastic.co/t/es-query-sorting-by-date-with-custom-missing-value/138966 "2018-07-06T17:26:47Z")

</div>

I have an index containing some documents with a date field: "date": { "type": "date", "format": "date\_optional\_time" } The field is optional (some documents don't have that value). I would like to run a query ret…

---

## [After 6:3:1 I/O Dispatcher threads are double the cores](https://discuss.elastic.co/t/after-61-i-o-dispatcher-threads-are-double-the-cores/138911)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 4\
**Last updated:** [July 6, 2018, 5:31pm UTC](https://discuss.elastic.co/t/after-61-i-o-dispatcher-threads-are-double-the-cores/138911 "2018-07-06T17:31:48Z")

</div>

I am using BulkProcessor to index data. I am using a 8core machine. BulkProcessor.builder(highLevelClient::bulkAsync, listener).setBulkActions(3000) .setBulkSize(new ByteSizeValue(50, ByteSizeUnit.MB)) …

---

## [Bad performance with large text field](https://discuss.elastic.co/t/bad-performance-with-large-text-field/138415)

<div class="topic-metadata">

**Author:** [@tim.van.rooijen](https://discuss.elastic.co/u/tim.van.rooijen)\
**Replies:** 1\
**Last updated:** [July 6, 2018, 5:05pm UTC](https://discuss.elastic.co/t/bad-performance-with-large-text-field/138415 "2018-07-06T17:05:45Z")

</div>

Hi, Have an index witch contains a large text field (not extreme 2000 lines max). The field does not have to be searchable. Wanna be able to view the data in the discover tab. Currently i have the following mapping: "…

---

## [Unable to create index in elasticsearch 6.3.0 using kibana dev tools](https://discuss.elastic.co/t/unable-to-create-index-in-elasticsearch-6-3-0-using-kibana-dev-tools/138086)

<div class="topic-metadata">

**Author:** [@Amitesh\_Gautam](https://discuss.elastic.co/u/Amitesh_Gautam)\
**Replies:** 1\
**Last updated:** [July 6, 2018, 4:54pm UTC](https://discuss.elastic.co/t/unable-to-create-index-in-elasticsearch-6-3-0-using-kibana-dev-tools/138086 "2018-07-06T16:54:54Z")

</div>

PUT /shakespeare { "mappings": { "doc": { "properties": { "speaker": { "type": "keyword" }, "play\_name": { "type": "keyword" }, "line\_id": { "type": "integer" }, "speech\_number": { "type": "integer" } } …

---

## [Elascticsearch count api returning improper count](https://discuss.elastic.co/t/elascticsearch-count-api-returning-improper-count/138897)

<div class="topic-metadata">

**Author:** [@prasad.ram1431](https://discuss.elastic.co/u/prasad.ram1431)\
**Replies:** 8\
**Last updated:** [July 6, 2018, 4:26pm UTC](https://discuss.elastic.co/t/elascticsearch-count-api-returning-improper-count/138897 "2018-07-06T16:26:46Z")

</div>

Hi All, Could someone please help me on the below issue. I have some thousands of documents in my index. When I am hitting count api with a condition where i am providing term query with ten thousand values for a parti…

---

## [X Pack? Open Source or needs licensing?](https://discuss.elastic.co/t/x-pack-open-source-or-needs-licensing/138931)

<div class="topic-metadata">

**Author:** [@Divit\_Sharma](https://discuss.elastic.co/u/Divit_Sharma)\
**Replies:** 1\
**Last updated:** [July 6, 2018, 4:15pm UTC](https://discuss.elastic.co/t/x-pack-open-source-or-needs-licensing/138931 "2018-07-06T16:15:28Z")

</div>

I want to use xpack in my organisation. Is it open source? Which of its component is free and which one needs licensing?

---

## [Unable to push logs to elasticsearch after upgrade](https://discuss.elastic.co/t/unable-to-push-logs-to-elasticsearch-after-upgrade/138738)

<div class="topic-metadata">

**Author:** [@kavirayani\_shiva](https://discuss.elastic.co/u/kavirayani_shiva)\
**Replies:** 11\
**Last updated:** [July 6, 2018, 4:14pm UTC](https://discuss.elastic.co/t/unable-to-push-logs-to-elasticsearch-after-upgrade/138738 "2018-07-06T16:14:25Z")

</div>

I have upgraded the elasticsearch to 5.6.9 version and the logstash is still at the 2.4.1. After the upgrade the logstash is unable to push the logs to the elasticsearch. below are the errors i see in the logstash.log {…

---

## [Old index in red state after creating cluster](https://discuss.elastic.co/t/old-index-in-red-state-after-creating-cluster/138581)

<div class="topic-metadata">

**Author:** [@nadia](https://discuss.elastic.co/u/nadia)\
**Replies:** 1\
**Last updated:** [July 6, 2018, 2:19pm UTC](https://discuss.elastic.co/t/old-index-in-red-state-after-creating-cluster/138581 "2018-07-06T14:19:55Z")

</div>

hello i have created cluster of 2 nodes node1: master node node2: data node the cluster state is red because the old index existing before creating my cluster are in red state. i would like to know if i can turn my …

---

## [Custom analyzer for percolator queries](https://discuss.elastic.co/t/custom-analyzer-for-percolator-queries/138932)

<div class="topic-metadata">

**Author:** [@Prabhakaran\_N](https://discuss.elastic.co/u/Prabhakaran_N)\
**Replies:** 0\
**Last updated:** [July 6, 2018, 2:11pm UTC](https://discuss.elastic.co/t/custom-analyzer-for-percolator-queries/138932 "2018-07-06T14:11:00Z")

</div>

I created a percolator index with custom analyzer ( tokenizer : Whitespace ). But while i applying my docs to that percolate index my custom analyzer is not reflecting . Somewhere in net i read that while searching thro…

---

## [Data type conversion issue](https://discuss.elastic.co/t/data-type-conversion-issue/138868)

<div class="topic-metadata">

**Author:** [@ajit](https://discuss.elastic.co/u/ajit)\
**Replies:** 8\
**Last updated:** [July 6, 2018, 1:53pm UTC](https://discuss.elastic.co/t/data-type-conversion-issue/138868 "2018-07-06T13:53:48Z")

</div>

Hi, I am getting long to float data type conversion error. I am using ELK 6.3.0 version. In logstash I have a sql jdbc configuration, and I am executing a query. But my few columns contains decimal values. And while push…

---

## [What is difference between size in search and body](https://discuss.elastic.co/t/what-is-difference-between-size-in-search-and-body/138374)

<div class="topic-metadata">

**Author:** [@yolo\_1900](https://discuss.elastic.co/u/yolo_1900)\
**Replies:** 1\
**Last updated:** [July 6, 2018, 1:52pm UTC](https://discuss.elastic.co/t/what-is-difference-between-size-in-search-and-body/138374 "2018-07-06T13:52:13Z")

</div>

Hello everyone For instance, I have the following code: page = es.search( index = 'index', scroll = '2m', size = 20, body = { "size":10, "query": {"match\_…

---

## [Why ES create duplicated field for single indexed and doc value field?](https://discuss.elastic.co/t/why-es-create-duplicated-field-for-single-indexed-and-doc-value-field/138919)

<div class="topic-metadata">

**Author:** [@howardhuang](https://discuss.elastic.co/u/howardhuang)\
**Replies:** 0\
**Last updated:** [July 6, 2018, 1:11pm UTC](https://discuss.elastic.co/t/why-es-create-duplicated-field-for-single-indexed-and-doc-value-field/138919 "2018-07-06T13:11:16Z")

</div>

Hi All, Recently, I am debugging ES 6.3 indexing flow through source code. I found that ES will new two objects for handling keyword type field. One is Field object for revert index store, and another one is SortedNumer…

---

## [Updating source with aggregation values](https://discuss.elastic.co/t/updating-source-with-aggregation-values/138915)

<div class="topic-metadata">

**Author:** [@uyth](https://discuss.elastic.co/u/uyth)\
**Replies:** 0\
**Last updated:** [July 6, 2018, 12:53pm UTC](https://discuss.elastic.co/t/updating-source-with-aggregation-values/138915 "2018-07-06T12:53:37Z")

</div>

Using Elasticsearch v. 6.2.4, I want to update a field in my document based on multiple aggregations done on a nested object. Something like this: POST \<my\_index\>/\_doc/\<doc\_id\>/\_update { "script": { "lang": "painl…

---

## [Connecting hdfs and elasticsearch](https://discuss.elastic.co/t/connecting-hdfs-and-elasticsearch/138829)

<div class="topic-metadata">

**Author:** [@impu.vasudev](https://discuss.elastic.co/u/impu.vasudev)\
**Replies:** 10\
**Last updated:** [July 6, 2018, 12:48pm UTC](https://discuss.elastic.co/t/connecting-hdfs-and-elasticsearch/138829 "2018-07-06T12:48:53Z")

</div>

Hi all, I am new to Elasticsearch and kibana and I want to use Elasticsearch and kibana for one my project Real Time Monitoring, I want establish two-way connection between hdfs and elasticsearch. I used Hive extern…

---

## [6.2.4 upgrade causes CorruptIndexException via bin/xpack/set\_password](https://discuss.elastic.co/t/6-2-4-upgrade-causes-corruptindexexception-via-bin-xpack-set-password/138905)

<div class="topic-metadata">

**Author:** [@hokiegeek2](https://discuss.elastic.co/u/hokiegeek2)\
**Replies:** 1\
**Last updated:** [July 6, 2018, 12:31pm UTC](https://discuss.elastic.co/t/6-2-4-upgrade-causes-corruptindexexception-via-bin-xpack-set-password/138905 "2018-07-06T12:31:38Z")

</div>

I am attempting to upgrade our cluster to 6.2.4. Now that elastic/changeme login is disabled one has to execute bin/xpack/set\_password. When I attempt to do this, I get the following exception: Exception in thread "main…

---

## [Watcher action logging when condition array\_compare](https://discuss.elastic.co/t/watcher-action-logging-when-condition-array-compare/138909)

<div class="topic-metadata">

**Author:** [@Jo\_De\_Troy](https://discuss.elastic.co/u/Jo_De_Troy)\
**Replies:** 1\
**Last updated:** [July 6, 2018, 12:31pm UTC](https://discuss.elastic.co/t/watcher-action-logging-when-condition-array-compare/138909 "2018-07-06T12:31:26Z")

</div>

Hello, I've created a watch with a search creating buckets and an array\_compare condition. I'd like to have an action that logs only the array elements where the condition is met. Like below: "condition": { "array\_…

---

## [Snapshot creation](https://discuss.elastic.co/t/snapshot-creation/138631)

<div class="topic-metadata">

**Author:** [@roshni](https://discuss.elastic.co/u/roshni)\
**Replies:** 1\
**Last updated:** [July 6, 2018, 12:02pm UTC](https://discuss.elastic.co/t/snapshot-creation/138631 "2018-07-06T12:02:35Z")

</div>

Hi , Not able to understand the what exactly is happening in these 2 stages in snapshot creation process - \[2018-07-03T11:34:10,529\]\[DEBUG\]\[o.e.c.s.ClusterService \] \[node1\] processing \[create\_snapshot \[snapshot\_1\_fileb…

---

## [No logging information available after creating repo for snapshot](https://discuss.elastic.co/t/no-logging-information-available-after-creating-repo-for-snapshot/138309)

<div class="topic-metadata">

**Author:** [@roshni](https://discuss.elastic.co/u/roshni)\
**Replies:** 1\
**Last updated:** [July 6, 2018, 11:59am UTC](https://discuss.elastic.co/t/no-logging-information-available-after-creating-repo-for-snapshot/138309 "2018-07-06T11:59:23Z")

</div>

Hi , I am working on elasticsearch v5.4.3 . To check the working of snapshot , I have first registered the repo \` { "my\_fs\_backup" : { "type" : "fs", "settings" : { "compress" : "true", "chu…

---

## [Does elasticsearch.js API for show suggestion in search box or I have to use jQuery autocomplete?](https://discuss.elastic.co/t/does-elasticsearch-js-api-for-show-suggestion-in-search-box-or-i-have-to-use-jquery-autocomplete/138901)

<div class="topic-metadata">

**Author:** [@rs123](https://discuss.elastic.co/u/rs123)\
**Replies:** 0\
**Last updated:** [July 6, 2018, 11:39am UTC](https://discuss.elastic.co/t/does-elasticsearch-js-api-for-show-suggestion-in-search-box-or-i-have-to-use-jquery-autocomplete/138901 "2018-07-06T11:39:29Z")

</div>

Right now I'm getting data from elasticsearch and putting that in availableSuggs array and then I'm using jQuery autocomplete to show suggestions but that is not that good. Is there any function available with elasticsea…

---

## [Cluster failing at random, works again after restarting node](https://discuss.elastic.co/t/cluster-failing-at-random-works-again-after-restarting-node/138530)

<div class="topic-metadata">

**Author:** [@sromer](https://discuss.elastic.co/u/sromer)\
**Replies:** 6\
**Last updated:** [July 6, 2018, 11:37am UTC](https://discuss.elastic.co/t/cluster-failing-at-random-works-again-after-restarting-node/138530 "2018-07-06T11:37:37Z")

</div>

Recently I am having trouble keeping an Elasticsearch cluster working, the cluster seems to fail somewhere during the night. All queries submitted to the cluster result in timeouts, so it seems nodes 'hang' in a some sta…

---

## [Have to support multiple child types in has\_childA?](https://discuss.elastic.co/t/have-to-support-multiple-child-types-in-has-childa/138894)

<div class="topic-metadata">

**Author:** [@shendl](https://discuss.elastic.co/u/shendl)\
**Replies:** 0\
**Last updated:** [July 6, 2018, 10:53am UTC](https://discuss.elastic.co/t/have-to-support-multiple-child-types-in-has-childa/138894 "2018-07-06T10:53:26Z")

</div>

mapping： "rhmjoin": { "type": "join", "relations": { "dagrxx": \["gxysfjl", "tnbsfjl"\] } } query： { "query": { "has\_child": { "type": \["gxysfjl", "tnbsfjl"\], "query": { "script": { "script": {…

---

## [X-pack with Hadoop](https://discuss.elastic.co/t/x-pack-with-hadoop/138685)

<div class="topic-metadata">

**Author:** [@saurabhkgupta](https://discuss.elastic.co/u/saurabhkgupta)\
**Replies:** 2\
**Last updated:** [July 6, 2018, 10:58am UTC](https://discuss.elastic.co/t/x-pack-with-hadoop/138685 "2018-07-06T10:58:46Z")

</div>

Hi, I'm trying to position Elastic 6.x X-pack to monitor our hadoop cluster operations. We want to forecast hadoop cluster behavior for a specified time period. I'm looking for help to setup the architecture. Should it…

---

## [ES build fails due to illegal\_argument\_exception](https://discuss.elastic.co/t/es-build-fails-due-to-illegal-argument-exception/136713)

<div class="topic-metadata">

**Author:** [@thitami](https://discuss.elastic.co/u/thitami)\
**Replies:** 2\
**Last updated:** [July 6, 2018, 10:22am UTC](https://discuss.elastic.co/t/es-build-fails-due-to-illegal-argument-exception/136713 "2018-07-06T10:22:07Z")

</div>

I have recently changed my ES mappings and now getting an exception on deploy Activity execution failed, because: Elasticsearch\\Common\\Exceptions\\BadRequest400Exception : {"error":{"root\_cause":\[{"type":"illegal\_…

---

## [Why ElasticSearch High Level Rest Client always returning aggregation name with type information](https://discuss.elastic.co/t/why-elasticsearch-high-level-rest-client-always-returning-aggregation-name-with-type-information/138123)

<div class="topic-metadata">

**Author:** [@Prateek\_Gupta](https://discuss.elastic.co/u/Prateek_Gupta)\
**Replies:** 3\
**Last updated:** [July 6, 2018, 10:21am UTC](https://discuss.elastic.co/t/why-elasticsearch-high-level-rest-client-always-returning-aggregation-name-with-type-information/138123 "2018-07-06T10:21:02Z")

</div>

I have been trying to get elasticsearch aggregations using Java High-Level Rest Client. It is always returning aggregation name with type information, for example if I have given a "terms" aggregation with name "message"…

---

## [Index creation for different types - Elastic search data modeling](https://discuss.elastic.co/t/index-creation-for-different-types-elastic-search-data-modeling/138836)

<div class="topic-metadata">

**Author:** [@eswarloges](https://discuss.elastic.co/u/eswarloges)\
**Replies:** 0\
**Last updated:** [July 6, 2018, 7:11am UTC](https://discuss.elastic.co/t/index-creation-for-different-types-elastic-search-data-modeling/138836 "2018-07-06T07:11:25Z")

</div>

Hi All, Here is the requirement that I am planning for index data modeling. File Info - You will get the JSON with the attributes likes Filename, unique file id,number of records in it, number of valid records, invali…

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

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