# Elasticsearch

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

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

**Page:** 1532

---

## [Snapshot creation failed due to RepositoryMissingException](https://discuss.elastic.co/t/snapshot-creation-failed-due-to-repositorymissingexception/150152)

<div class="topic-metadata">

**Author:** [@Ronshaiko](https://discuss.elastic.co/u/Ronshaiko)\
**Replies:** 1\
**Last updated:** [October 2, 2018, 8:28am UTC](https://discuss.elastic.co/t/snapshot-creation-failed-due-to-repositorymissingexception/150152 "2018-10-02T08:28:36Z")

</div>

Hello, Appreciate your help in the below issue: I'm trying to create a snapshot in s3 bucket. After running request to create the new snapshot, i'm checking the status of the new snapshot and i see that snapshot state …

---

## [Fetch the document record in the same Order](https://discuss.elastic.co/t/fetch-the-document-record-in-the-same-order/150303)

<div class="topic-metadata">

**Author:** [@Dreamer2731](https://discuss.elastic.co/u/Dreamer2731)\
**Replies:** 1\
**Last updated:** [October 2, 2018, 7:59am UTC](https://discuss.elastic.co/t/fetch-the-document-record-in-the-same-order/150303 "2018-10-02T07:59:45Z")

</div>

Hi, I am trying to fetch a single document "store1" using search API preparesearch method. Below is the document data. I am getting the response into a HashMap\<String,Map\<String,String\>\>. However the problem her is the …

---

## [Elasticsearch indexing performance io wait](https://discuss.elastic.co/t/elasticsearch-indexing-performance-io-wait/150587)

<div class="topic-metadata">

**Author:** [@matw](https://discuss.elastic.co/u/matw)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 4:55pm UTC](https://discuss.elastic.co/t/elasticsearch-indexing-performance-io-wait/150587 "2018-10-01T16:55:01Z")

</div>

I've got 2 similar deployments of our application: 5.6.1 elasticsearch, soon to be upgraded VM virtualisation 8 CPU (Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz) 12 Gigs of RAM assigned No SSD i've got very different …

---

## [Painless integer division](https://discuss.elastic.co/t/painless-integer-division/150386)

<div class="topic-metadata">

**Author:** [@chapmantrain](https://discuss.elastic.co/u/chapmantrain)\
**Replies:** 2\
**Last updated:** [October 2, 2018, 6:42am UTC](https://discuss.elastic.co/t/painless-integer-division/150386 "2018-10-02T06:42:59Z")

</div>

I am dividing two doc\_counts from an aggregate to produce a percentage and compare it to a percentage. Does integer division in painless produce a float or another integer? I'm using the ctx.vars to get it into a log mes…

---

## [Common metadata section for all watchers in a folder](https://discuss.elastic.co/t/common-metadata-section-for-all-watchers-in-a-folder/150053)

<div class="topic-metadata">

**Author:** [@Chaitra\_Ranganna](https://discuss.elastic.co/u/Chaitra_Ranganna)\
**Replies:** 3\
**Last updated:** [October 2, 2018, 6:42am UTC](https://discuss.elastic.co/t/common-metadata-section-for-all-watchers-in-a-folder/150053 "2018-10-02T06:42:25Z")

</div>

Hi , I would like to know If I can have common metadata section with in a folder which can be shared across all watchers in that folder

---

## [Can't find license webform for 5.6 (to upgrade)](https://discuss.elastic.co/t/cant-find-license-webform-for-5-6-to-upgrade/150504)

<div class="topic-metadata">

**Author:** [@paul\_m](https://discuss.elastic.co/u/paul_m)\
**Replies:** 5\
**Last updated:** [October 2, 2018, 6:05am UTC](https://discuss.elastic.co/t/cant-find-license-webform-for-5-6-to-upgrade/150504 "2018-10-02T06:05:24Z")

</div>

Hi there, I'm trying to upgrade our v5.6 ELK to v6.x, and the update assistant in Kibana is locked behind an expired xpack license. I remember getting the basic license through a webform, and the current documentation t…

---

## [How to update by query to create incrementing ranking from sorted query in elasticsearch 6.4](https://discuss.elastic.co/t/how-to-update-by-query-to-create-incrementing-ranking-from-sorted-query-in-elasticsearch-6-4/150637)

<div class="topic-metadata">

**Author:** [@n0pe](https://discuss.elastic.co/u/n0pe)\
**Replies:** 0\
**Last updated:** [October 2, 2018, 4:07am UTC](https://discuss.elastic.co/t/how-to-update-by-query-to-create-incrementing-ranking-from-sorted-query-in-elasticsearch-6-4/150637 "2018-10-02T04:07:30Z")

</div>

I'm trying to update\_by\_query to rank items in sorted search. Is it possible to get the current "index" of the document in the script? eg. create index: PUT test { "mappings" : { "person" : { "…

---

## [Upgrading from 2.X to 5.3.0 aggregation errors](https://discuss.elastic.co/t/upgrading-from-2-x-to-5-3-0-aggregation-errors/150622)

<div class="topic-metadata">

**Author:** [@bdevaca](https://discuss.elastic.co/u/bdevaca)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 10:19pm UTC](https://discuss.elastic.co/t/upgrading-from-2-x-to-5-3-0-aggregation-errors/150622 "2018-10-01T22:19:14Z")

</div>

here is my aggregation logic that works in 2.X String hostName = esUtilityService.getHostName(); String clusterName = esUtilityService.getClusterName(); String indexName = esUtilityService.getIndexName(); //Settings…

---

## [Scaling ES Cluster with 2 more nodes](https://discuss.elastic.co/t/scaling-es-cluster-with-2-more-nodes/150585)

<div class="topic-metadata">

**Author:** [@Jay1](https://discuss.elastic.co/u/Jay1)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 10:12pm UTC](https://discuss.elastic.co/t/scaling-es-cluster-with-2-more-nodes/150585 "2018-10-01T22:12:18Z")

</div>

Hi there ! I got a 3 node Prod ES cluster for log analytics . All the 3 nodes ( 3 x 1TB ) are configured as both Master & Data . Min Master node is set to 2 . Now to increase data retention and search performance , …

---

## [6.2.1 to 6.4 upgrade results in X-pack 'NoSuchFileException' issue](https://discuss.elastic.co/t/6-2-1-to-6-4-upgrade-results-in-x-pack-nosuchfileexception-issue/145935)

<div class="topic-metadata">

**Author:** [@stevedearl](https://discuss.elastic.co/u/stevedearl)\
**Replies:** 6\
**Last updated:** [October 1, 2018, 8:26pm UTC](https://discuss.elastic.co/t/6-2-1-to-6-4-upgrade-results-in-x-pack-nosuchfileexception-issue/145935 "2018-10-01T20:26:00Z")

</div>

Hi All, I tried running an offline RPM upgrade of the new Elasticsearch 6.4 on top of my existing 6.2.1 environment. The original environment has X-pack installed on it, configured to provide just a basic licence (so no…

---

## [Reindex doesn't work properly after adding a new field to multi-fields](https://discuss.elastic.co/t/reindex-doesnt-work-properly-after-adding-a-new-field-to-multi-fields/150597)

<div class="topic-metadata">

**Author:** [@Zhaoyang\_Shao](https://discuss.elastic.co/u/Zhaoyang_Shao)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 6:45pm UTC](https://discuss.elastic.co/t/reindex-doesnt-work-properly-after-adding-a-new-field-to-multi-fields/150597 "2018-10-01T18:45:43Z")

</div>

ES version: 6.3 Settings: { "settings": { "number\_of\_shards": 1, "analysis": { "tokenizer": { "edge\_ngram\_tokenizer": { "type": "edgeNGram", …

---

## [Index / document modeling](https://discuss.elastic.co/t/index-document-modeling/150596)

<div class="topic-metadata">

**Author:** [@Itay\_Bittan](https://discuss.elastic.co/u/Itay_Bittan)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 6:41pm UTC](https://discuss.elastic.co/t/index-document-modeling/150596 "2018-10-01T18:41:47Z")

</div>

We are using Elasticsearch for our recommendations system. Every index is a product catalog: cana hold between 10K-20M documents. Each document represent one product. Product document contains: Metadata such as: pr…

---

## [Elasticsearch X-Pack Subscriptions SSL](https://discuss.elastic.co/t/elasticsearch-x-pack-subscriptions-ssl/150588)

<div class="topic-metadata">

**Author:** [@dmrlixos](https://discuss.elastic.co/u/dmrlixos)\
**Replies:** 2\
**Last updated:** [October 1, 2018, 5:36pm UTC](https://discuss.elastic.co/t/elasticsearch-x-pack-subscriptions-ssl/150588 "2018-10-01T17:36:15Z")

</div>

Hi i'm trying mount a docker cluster with elastisearch + kibana. To secure my elasticsearch i want use ssl + authentication with x-pack. For use enable auth + ssl i need a x-pack subscription(gold or platinum ? Thank…

---

## [Time based Log Data - Index Modeling - Log Data Multiple Applications](https://discuss.elastic.co/t/time-based-log-data-index-modeling-log-data-multiple-applications/150584)

<div class="topic-metadata">

**Author:** [@ESNovice](https://discuss.elastic.co/u/ESNovice)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 3:34pm UTC](https://discuss.elastic.co/t/time-based-log-data-index-modeling-log-data-multiple-applications/150584 "2018-10-01T15:34:36Z")

</div>

Will apprecaite if someone can please help in structuring data properly on ES . My log data from 10 different applications (Ap1 , Ap2....A10) are loaded in ES. Currently index is per day. Logstash\_2018.10.01 houses all …

---

## [Elastic query with filters](https://discuss.elastic.co/t/elastic-query-with-filters/150261)

<div class="topic-metadata">

**Author:** [@Bkt](https://discuss.elastic.co/u/Bkt)\
**Replies:** 2\
**Last updated:** [October 1, 2018, 3:32pm UTC](https://discuss.elastic.co/t/elastic-query-with-filters/150261 "2018-10-01T15:32:43Z")

</div>

Hi, Is it possible to exclude the zero count records in a query? for example the below is the query { "size":0, "query":{ "bool":{ "must":\[ { "match\_all":{ …

---

## [Mapping elasticsearch index to existing hive table](https://discuss.elastic.co/t/mapping-elasticsearch-index-to-existing-hive-table/150582)

<div class="topic-metadata">

**Author:** [@aliyesami](https://discuss.elastic.co/u/aliyesami)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 3:15pm UTC](https://discuss.elastic.co/t/mapping-elasticsearch-index-to-existing-hive-table/150582 "2018-10-01T15:15:42Z")

</div>

I have mapped the hive table using ES storage handler to ES but I want to do the reverse , I want to map the elasticsearch index to an existing hive table that was not created with ES Storage handler clause , is it possi…

---

## [Failed to connect to busy master](https://discuss.elastic.co/t/failed-to-connect-to-busy-master/150376)

<div class="topic-metadata">

**Author:** [@Bukhtawar\_Khan](https://discuss.elastic.co/u/Bukhtawar_Khan)\
**Replies:** 17\
**Last updated:** [October 1, 2018, 2:30pm UTC](https://discuss.elastic.co/t/failed-to-connect-to-busy-master/150376 "2018-10-01T14:30:08Z")

</div>

org.elasticsearch.transport.ConnectTransportException: \[IF4wObj\]\[10.xxx.xxx.xx:9300\] connect\_exception at org.elasticsearch.transport.TcpChannel.awaitConnected(TcpChannel.java:165) ~\[elasticsearch-6.3.1.jar:6.3.1\] a…

---

## [How to create email alert, When client machine got disconnected from the local network?](https://discuss.elastic.co/t/how-to-create-email-alert-when-client-machine-got-disconnected-from-the-local-network/150570)

<div class="topic-metadata">

**Author:** [@Aftab\_Ali](https://discuss.elastic.co/u/Aftab_Ali)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 1:11pm UTC](https://discuss.elastic.co/t/how-to-create-email-alert-when-client-machine-got-disconnected-from-the-local-network/150570 "2018-10-01T13:11:29Z")

</div>

Dear Team, I am happy to use your services but I want to know how to create watcher email alert when my any client machine, which has metricbeat and filebeat goes down like not pingable, What condition should I configur…

---

## [Query Range with Date Data](https://discuss.elastic.co/t/query-range-with-date-data/150565)

<div class="topic-metadata">

**Author:** [@Suman\_Reddy1](https://discuss.elastic.co/u/Suman_Reddy1)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 1:09pm UTC](https://discuss.elastic.co/t/query-range-with-date-data/150565 "2018-10-01T13:09:03Z")

</div>

Hi Team, Below is my filter configurations. "filter": { "range": { "@timestamp": { "gte": "now-5d", "lte": "now-1d" } } } Requirement is to watch last 5 days data excluding current day. I have tried multiple…

---

## [Using Lucene Query Syntax](https://discuss.elastic.co/t/using-lucene-query-syntax/150380)

<div class="topic-metadata">

**Author:** [@TomTom](https://discuss.elastic.co/u/TomTom)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 1:06pm UTC](https://discuss.elastic.co/t/using-lucene-query-syntax/150380 "2018-10-01T13:06:54Z")

</div>

Currently i storage dates in strict\_date\_time\_no\_millis ( yyyy-MM-dd'T'HH:mm:ssZZ eg.: 2018-09-27T14:13:41-0300). When i try use Lucene Query to find data a error occurs: { "from": 0, "size": 30, "query": { "query…

---

## [Enabling X-Pack gives JVM error](https://discuss.elastic.co/t/enabling-x-pack-gives-jvm-error/149630)

<div class="topic-metadata">

**Author:** [@Gunnar\_Venaas](https://discuss.elastic.co/u/Gunnar_Venaas)\
**Replies:** 2\
**Last updated:** [October 1, 2018, 1:06pm UTC](https://discuss.elastic.co/t/enabling-x-pack-gives-jvm-error/149630 "2018-10-01T13:06:37Z")

</div>

Redhat 7, Elasticsearch 6.4.1, installet by the puppet/elasticsearch module. When I try to enable x-pack security, the cluster does not start up. The cluster log says : java.security.AccessControlException: access den…

---

## [How to create watcher email alert on a specific machine in lan?](https://discuss.elastic.co/t/how-to-create-watcher-email-alert-on-a-specific-machine-in-lan/150425)

<div class="topic-metadata">

**Author:** [@Aftab\_Ali](https://discuss.elastic.co/u/Aftab_Ali)\
**Replies:** 3\
**Last updated:** [October 1, 2018, 1:06pm UTC](https://discuss.elastic.co/t/how-to-create-watcher-email-alert-on-a-specific-machine-in-lan/150425 "2018-10-01T13:06:21Z")

</div>

Dear Team, I am happy to use watcher feature in kibana but I want to create an alert on a specific machine in my local network, I am able to get threshold email via SMTP gmail.com but I am not able to see a report of wh…

---

## [Mapping elasticsearch to hive table](https://discuss.elastic.co/t/mapping-elasticsearch-to-hive-table/150563)

<div class="topic-metadata">

**Author:** [@aliyesami](https://discuss.elastic.co/u/aliyesami)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 12:00pm UTC](https://discuss.elastic.co/t/mapping-elasticsearch-to-hive-table/150563 "2018-10-01T12:00:42Z")

</div>

i can map hive table to elasticsearch by specifying the ES storage handler but i want to do the reverse, i want to map elasticsearch index with n existing hive table , is it possible? also can that hive table be in ORC…

---

## [\[SOLVED\] Custom Analyzer in Completion Suggest](https://discuss.elastic.co/t/solved-custom-analyzer-in-completion-suggest/150537)

<div class="topic-metadata">

**Author:** [@philly-vanilly](https://discuss.elastic.co/u/philly-vanilly)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 8:59am UTC](https://discuss.elastic.co/t/solved-custom-analyzer-in-completion-suggest/150537 "2018-10-01T08:59:30Z")

</div>

I wanted to make an index/mapping for completion-suggester documents like: PUT /namesuggest/\_doc/1 { "name": "I\_AM\_JUST\_DISPLAYED\_NOT\_SEARCHED", "name\_suggest": \[ { "input": \["Jêánnè Pierre"\], …

---

## [Mapper\_parsing\_exception : elasticsearch json mapping with text](https://discuss.elastic.co/t/mapper-parsing-exception-elasticsearch-json-mapping-with-text/150513)

<div class="topic-metadata">

**Author:** [@76a99de1e92a429af5f9](https://discuss.elastic.co/u/76a99de1e92a429af5f9)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 6:07am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-elasticsearch-json-mapping-with-text/150513 "2018-10-01T06:07:47Z")

</div>

Hi.... I logging nginx log with json, include request\_body. My structure is \[server - logstash - logstash - elasticsearch - kibana\]. Request\_body's content is also json with escape characters, and sometimes just plain…

---

## [Sorting by date\_range](https://discuss.elastic.co/t/sorting-by-date-range/150521)

<div class="topic-metadata">

**Author:** [@lbugar](https://discuss.elastic.co/u/lbugar)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 7:24am UTC](https://discuss.elastic.co/t/sorting-by-date-range/150521 "2018-10-01T07:24:14Z")

</div>

Is it possible to sort by "date\_range" field? If yes, how? Mapping: PUT testindex { "mappings": { "datetest": { "properties": { "created": { "type": "date" }, "id": { …

---

## [CentOS: elasticsearch dead but subsys locked](https://discuss.elastic.co/t/centos-elasticsearch-dead-but-subsys-locked/150530)

<div class="topic-metadata">

**Author:** [@ThomasSieber](https://discuss.elastic.co/u/ThomasSieber)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 8:23am UTC](https://discuss.elastic.co/t/centos-elasticsearch-dead-but-subsys-locked/150530 "2018-10-01T08:23:56Z")

</div>

I installed elastic search on CentOS 6.10. After that i started it with service elasticsearch start But under localhost:9200 it is not reachable and under service --status-all it shows: elasticsearch dead but subsys…

---

## [Aggregation of possibly added buckets](https://discuss.elastic.co/t/aggregation-of-possibly-added-buckets/150529)

<div class="topic-metadata">

**Author:** [@Johnz86](https://discuss.elastic.co/u/Johnz86)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 8:20am UTC](https://discuss.elastic.co/t/aggregation-of-possibly-added-buckets/150529 "2018-10-01T08:20:31Z")

</div>

I need a functionality similar to shop filter, which shows the possible amount of added documents after the selection of one value in a filter. Example: Each filter item is one bucket value of a field, which can be u…

---

## [\[SOLVED\] Painless IDE plugin](https://discuss.elastic.co/t/solved-painless-ide-plugin/148425)

<div class="topic-metadata">

**Author:** [@cbismuth](https://discuss.elastic.co/u/cbismuth)\
**Replies:** 2\
**Last updated:** [September 13, 2018, 10:23pm UTC](https://discuss.elastic.co/t/solved-painless-ide-plugin/148425 "2018-09-13T22:23:05Z")

</div>

Hi, Painless language looks like Java, but it's not Java. Therefore IDE generate warnings and errors when editing Painless scripts with Java (or Groovy) editors. As an ANTLR4 grammar is available, is there any plan to …

---

## [\[Elasticsearch exception \[type=security\_exception, reason=missing authentication token for REST request \[/\*\*\*/\*\*/\*\*\]\]\]](https://discuss.elastic.co/t/elasticsearch-exception-type-security-exception-reason-missing-authentication-token-for-rest-request/150509)

<div class="topic-metadata">

**Author:** [@sunnytimes](https://discuss.elastic.co/u/sunnytimes)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 5:26am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-security-exception-reason-missing-authentication-token-for-rest-request/150509 "2018-10-01T05:26:59Z")

</div>

1.server ===\> es 6.2.2(x-pack enabled) 2.app ===\> springboot 2.0.5.RELEASE 3.app ===\> elasticsearch-rest-high-level-client 6.2.2(work in springboot) after app start over without any error.try to test interface i got t…

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

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