# Elasticsearch

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

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

**Page:** 1752

---

## [Set my passwords using x-pack/setup-passwords from script?](https://discuss.elastic.co/t/set-my-passwords-using-x-pack-setup-passwords-from-script/123324)

<div class="topic-metadata">

**Author:** [@sbu](https://discuss.elastic.co/u/sbu)\
**Replies:** 7\
**Last updated:** [March 16, 2018, 9:32am UTC](https://discuss.elastic.co/t/set-my-passwords-using-x-pack-setup-passwords-from-script/123324 "2018-03-16T09:32:21Z")

</div>

Hi, I'm trying to build a Terraform script (could be anything though) to install ES and Kibana, it's almost working. But when it comes to ... /usr/share/elasticsearch/bin/x-pack/setup-passwords interactive Setting th…

---

## [Doesn\`t visible after refresh?](https://discuss.elastic.co/t/doesn-t-visible-after-refresh/124014)

<div class="topic-metadata">

**Author:** [@hubo3085632](https://discuss.elastic.co/u/hubo3085632)\
**Replies:** 5\
**Last updated:** [March 16, 2018, 9:29am UTC](https://discuss.elastic.co/t/doesn-t-visible-after-refresh/124014 "2018-03-16T09:29:35Z")

</div>

I encountered a problem that can not search a doc after refresh. here is my operation: 1 client.prepareIndex(idx, idx, id).setSource(doc).execute(); 2 client.admin().indices() .prepareRefresh(idx) .get(); 3 client.…

---

## [ES Curator Date](https://discuss.elastic.co/t/es-curator-date/124117)

<div class="topic-metadata">

**Author:** [@Ben96](https://discuss.elastic.co/u/Ben96)\
**Replies:** 4\
**Last updated:** [March 16, 2018, 9:25am UTC](https://discuss.elastic.co/t/es-curator-date/124117 "2018-03-16T09:25:20Z")

</div>

Hi, I just started Creating & Deleting indices with Curator. I would like to create the indices of the next month but when i'm doing this in my action file : name: '\<toto-{now/M+1M}\>' If i take the current dat…

---

## [Rest High Level Client - TimeoutException](https://discuss.elastic.co/t/rest-high-level-client-timeoutexception/123668)

<div class="topic-metadata">

**Author:** [@Pavel\_Sapozhnikov](https://discuss.elastic.co/u/Pavel_Sapozhnikov)\
**Replies:** 1\
**Last updated:** [March 16, 2018, 9:22am UTC](https://discuss.elastic.co/t/rest-high-level-client-timeoutexception/123668 "2018-03-16T09:22:52Z")

</div>

Hello Folks When I use client.updateAsync I am getting the java.util.concurrent.TimeoutException within onFailure method. I see the messages comes through to Kibana, so it almost feels like annoying exception but I defi…

---

## [Changing Index Analyzers for Properties in Mapping](https://discuss.elastic.co/t/changing-index-analyzers-for-properties-in-mapping/123777)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Blayney](https://discuss.elastic.co/u/Jeffrey_Blayney)\
**Replies:** 1\
**Last updated:** [March 16, 2018, 9:15am UTC](https://discuss.elastic.co/t/changing-index-analyzers-for-properties-in-mapping/123777 "2018-03-16T09:15:21Z")

</div>

Hello, I have a custom index-time analyzer set in my current mapping for multiple properties, and I want to change it to a different one. What I've done up until now is just change the template, however I've discovered…

---

## [ES getting killed by heavy queries](https://discuss.elastic.co/t/es-getting-killed-by-heavy-queries/124142)

<div class="topic-metadata">

**Author:** [@zygisa](https://discuss.elastic.co/u/zygisa)\
**Replies:** 3\
**Last updated:** [March 16, 2018, 8:45am UTC](https://discuss.elastic.co/t/es-getting-killed-by-heavy-queries/124142 "2018-03-16T08:45:51Z")

</div>

Hey guys, Recently we had a couple of situations where our ES cluster received an influx of heavy queries and that pretty much killed the cluster. CPU utilization reached 100% on all of the nodes in the cluster meanwhil…

---

## [Index different source files to different indices?](https://discuss.elastic.co/t/index-different-source-files-to-different-indices/124052)

<div class="topic-metadata">

**Author:** [@asp](https://discuss.elastic.co/u/asp)\
**Replies:** 1\
**Last updated:** [March 16, 2018, 8:34am UTC](https://discuss.elastic.co/t/index-different-source-files-to-different-indices/124052 "2018-03-16T08:34:06Z")

</div>

Hi, currently my first trial of a track looks like this: { "description": "my first benchmark", "indices": \[ { "name": "activemq\_queue\_count", "auto-managed": false, "body": "mappings/activemq\_queue…

---

## [Consistency between multiple \_search requests](https://discuss.elastic.co/t/consistency-between-multiple-search-requests/124227)

<div class="topic-metadata">

**Author:** [@mmakoto](https://discuss.elastic.co/u/mmakoto)\
**Replies:** 0\
**Last updated:** [March 16, 2018, 7:58am UTC](https://discuss.elastic.co/t/consistency-between-multiple-search-requests/124227 "2018-03-16T07:58:18Z")

</div>

Hi, I have some questions about the consistency of Elasticsearch \_search API results. My environment: Using Elasticsearch 6.1.1 The cluster consists of 3 nodes number\_of\_replica is 1 Our app's logs are indexed to the …

---

## [Can i see the slowlog.log file on elastic cloud?](https://discuss.elastic.co/t/can-i-see-the-slowlog-log-file-on-elastic-cloud/124221)

<div class="topic-metadata">

**Author:** [@garfiaslopez](https://discuss.elastic.co/u/garfiaslopez)\
**Replies:** 1\
**Last updated:** [March 16, 2018, 7:54am UTC](https://discuss.elastic.co/t/can-i-see-the-slowlog-log-file-on-elastic-cloud/124221 "2018-03-16T07:54:45Z")

</div>

Is there a way or a option where can i see this file?, I want to logs the query's on my cluster. Or maybe another option for monitoring the query from the cluster on elastic cloud?. thank you!

---

## [ElasticSearch - Is Parent Child relationship the best approach?](https://discuss.elastic.co/t/elasticsearch-is-parent-child-relationship-the-best-approach/124225)

<div class="topic-metadata">

**Author:** [@Vignesh\_Kalai](https://discuss.elastic.co/u/Vignesh_Kalai)\
**Replies:** 1\
**Last updated:** [March 16, 2018, 7:51am UTC](https://discuss.elastic.co/t/elasticsearch-is-parent-child-relationship-the-best-approach/124225 "2018-03-16T07:51:44Z")

</div>

down vote favorite Problem: I have two types of repositories one is document and another one pages. There is a relationship between document and pages. You can think of them as one document(book) with 1 or more pages.…

---

## [Retry\_on\_conflict when using partial update](https://discuss.elastic.co/t/retry-on-conflict-when-using-partial-update/124193)

<div class="topic-metadata">

**Author:** [@chuckoh](https://discuss.elastic.co/u/chuckoh)\
**Replies:** 0\
**Last updated:** [March 16, 2018, 3:20am UTC](https://discuss.elastic.co/t/retry-on-conflict-when-using-partial-update/124193 "2018-03-16T03:20:21Z")

</div>

PUT /intro\_limits { "settings": { "index": { "number\_of\_shards": 1 }, "auto\_expand\_replicas": "0-all" }, "mappings": { "doc": { "properties": { "id": { "type": "long" }, …

---

## [Save results of aggregation to new index?](https://discuss.elastic.co/t/save-results-of-aggregation-to-new-index/124133)

<div class="topic-metadata">

**Author:** [@proximator](https://discuss.elastic.co/u/proximator)\
**Replies:** 1\
**Last updated:** [March 16, 2018, 7:06am UTC](https://discuss.elastic.co/t/save-results-of-aggregation-to-new-index/124133 "2018-03-16T07:06:05Z")

</div>

Hi, I have the exact same issue as: https://discuss.elastic.co/t/save-results-from-aggregation-to-new-index/86913 Any idea how to fix this issue without using Watcher of X-pack?

---

## [Elastic ec2 plugin : access denied to aws](https://discuss.elastic.co/t/elastic-ec2-plugin-access-denied-to-aws/123890)

<div class="topic-metadata">

**Author:** [@harkamals](https://discuss.elastic.co/u/harkamals)\
**Replies:** 7\
**Last updated:** [March 16, 2018, 6:26am UTC](https://discuss.elastic.co/t/elastic-ec2-plugin-access-denied-to-aws/123890 "2018-03-16T06:26:27Z")

</div>

Hi, I'm trying not to use access key and secret for aws api access and instead use ec2 instance profile to grant role based access. I could not find text suggesting this is acceptable or not for elastic ec2 plugin to pe…

---

## [Dm-crypt and search performance](https://discuss.elastic.co/t/dm-crypt-and-search-performance/124206)

<div class="topic-metadata">

**Author:** [@ananth](https://discuss.elastic.co/u/ananth)\
**Replies:** 0\
**Last updated:** [March 16, 2018, 5:26am UTC](https://discuss.elastic.co/t/dm-crypt-and-search-performance/124206 "2018-03-16T05:26:25Z")

</div>

We are planning to enable dm-crypt, would like to know whether it will affect search and aggregation performance ? Will dm-crypt encryption affects OS file cache benefits which elasticsearch heavily uses sorting/aggrega…

---

## [Four byte characters not handled correctly by Word Delimiter Token Filter](https://discuss.elastic.co/t/four-byte-characters-not-handled-correctly-by-word-delimiter-token-filter/124202)

<div class="topic-metadata">

**Author:** [@Daverino](https://discuss.elastic.co/u/Daverino)\
**Replies:** 0\
**Last updated:** [March 16, 2018, 4:46am UTC](https://discuss.elastic.co/t/four-byte-characters-not-handled-correctly-by-word-delimiter-token-filter/124202 "2018-03-16T04:46:27Z")

</div>

According to the docs, the Word Delimiter Token Filter should, by default, split on any non alpha-numeric character. https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-word-delimiter-tokenfilter.ht…

---

## [Running json query from RestHighLevelClient](https://discuss.elastic.co/t/running-json-query-from-resthighlevelclient/124198)

<div class="topic-metadata">

**Author:** [@BleedCode](https://discuss.elastic.co/u/BleedCode)\
**Replies:** 0\
**Last updated:** [March 16, 2018, 4:31am UTC](https://discuss.elastic.co/t/running-json-query-from-resthighlevelclient/124198 "2018-03-16T04:31:58Z")

</div>

Is their any way for running json query with index and type in RestHighLevelClient. Like the way execute() method works in JestClient. Thanks in advance !!

---

## [Bool search must\_not is not useful](https://discuss.elastic.co/t/bool-search-must-not-is-not-useful/124041)

<div class="topic-metadata">

**Author:** [@shockerY](https://discuss.elastic.co/u/shockerY)\
**Replies:** 3\
**Last updated:** [March 16, 2018, 3:44am UTC](https://discuss.elastic.co/t/bool-search-must-not-is-not-useful/124041 "2018-03-16T03:44:59Z")

</div>

I use bool to search,it like this: { "query": { "bool": { "must": { "match": { "message": { "query": "disconnect" }…

---

## [Rally "default latency" performance degradation](https://discuss.elastic.co/t/rally-default-latency-performance-degradation/120763)

<div class="topic-metadata">

**Author:** [@zcola](https://discuss.elastic.co/u/zcola)\
**Replies:** 8\
**Last updated:** [March 16, 2018, 2:36am UTC](https://discuss.elastic.co/t/rally-default-latency-performance-degradation/120763 "2018-03-16T02:36:50Z")

</div>

env:Docker 4 cpu 16g mem 8g heap config file：processors: 4 run test action="index-append,force-merge,index-stats,node-stats,default,term,phrase,country\_agg\_uncached,country\_agg\_cached,scroll,expression,painless\_stati…

---

## [How to handle bulk rejections from ES in the client side](https://discuss.elastic.co/t/how-to-handle-bulk-rejections-from-es-in-the-client-side/124186)

<div class="topic-metadata">

**Author:** [@abhishekash](https://discuss.elastic.co/u/abhishekash)\
**Replies:** 0\
**Last updated:** [March 16, 2018, 2:31am UTC](https://discuss.elastic.co/t/how-to-handle-bulk-rejections-from-es-in-the-client-side/124186 "2018-03-16T02:31:36Z")

</div>

I am using Bulk Processor for indexing using the elastic doc. and then using : bulkProcessor.add(new IndexRequest(indexName, type, id).source(json)) I am seeing high rejections with high bulk configs. Reducing these c…

---

## [How to use search\_after with match all query and without sorting?](https://discuss.elastic.co/t/how-to-use-search-after-with-match-all-query-and-without-sorting/124179)

<div class="topic-metadata">

**Author:** [@majid\_zarrin](https://discuss.elastic.co/u/majid_zarrin)\
**Replies:** 2\
**Last updated:** [March 16, 2018, 12:12am UTC](https://discuss.elastic.co/t/how-to-use-search-after-with-match-all-query-and-without-sorting/124179 "2018-03-16T00:12:40Z")

</div>

Hi, I had billions of document in an index. I read half of them with java-high-level-client until my code got an exception. so I need to skip these documents. I found search\_after as a solution but I have no idea how it…

---

## [E-Commerce Search Demo](https://discuss.elastic.co/t/e-commerce-search-demo/124181)

<div class="topic-metadata">

**Author:** [@proximator](https://discuss.elastic.co/u/proximator)\
**Replies:** 1\
**Last updated:** [March 16, 2018, 12:07am UTC](https://discuss.elastic.co/t/e-commerce-search-demo/124181 "2018-03-16T00:07:45Z")

</div>

Hi all, I am looking for this e-commerce search demo: Any idea where I can find it? Link? Thanks

---

## [java.util.zip.ZipException: error in opening zip file](https://discuss.elastic.co/t/java-util-zip-zipexception-error-in-opening-zip-file/124027)

<div class="topic-metadata">

**Author:** [@AntonQUT](https://discuss.elastic.co/u/AntonQUT)\
**Replies:** 7\
**Last updated:** [March 15, 2018, 10:20pm UTC](https://discuss.elastic.co/t/java-util-zip-zipexception-error-in-opening-zip-file/124027 "2018-03-15T22:20:26Z")

</div>

I already have a working version of 5.3.2 on my MAC, however i want to set up a new version on my external SSD where there is plenty of space. However the new copy failed to start. The logger error is: \[2018-03-15T15:…

---

## [Elasticsearch doesn’t start: status=1/FAILURE (TLS/x-pack)](https://discuss.elastic.co/t/elasticsearch-doesn-t-start-status-1-failure-tls-x-pack/123498)

<div class="topic-metadata">

**Author:** [@manst](https://discuss.elastic.co/u/manst)\
**Replies:** 16\
**Last updated:** [March 15, 2018, 7:26pm UTC](https://discuss.elastic.co/t/elasticsearch-doesn-t-start-status-1-failure-tls-x-pack/123498 "2018-03-15T19:26:12Z")

</div>

Hello! I've tried to follow this list: Install a single ES node. Install X-Pack on that node. Run setup-passwords on that node. Add additional nodes (ES + X-Pack). Enable TLS for node transport. Enable TLS for HT…

---

## [Watch - Unique count](https://discuss.elastic.co/t/watch-unique-count/122669)

<div class="topic-metadata">

**Author:** [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Replies:** 5\
**Last updated:** [March 15, 2018, 9:03pm UTC](https://discuss.elastic.co/t/watch-unique-count/122669 "2018-03-15T21:03:27Z")

</div>

Hi All, Could any one help me to get this watch done. I was trying to execute a watch for the condition,when a unique count of event\_data.TargetUserName has more than 4 entries in 24 hours { "trigger": { "schedule…

---

## [Facing issue related to aggregation](https://discuss.elastic.co/t/facing-issue-related-to-aggregation/124164)

<div class="topic-metadata">

**Author:** [@vaishali1](https://discuss.elastic.co/u/vaishali1)\
**Replies:** 2\
**Last updated:** [March 15, 2018, 9:02pm UTC](https://discuss.elastic.co/t/facing-issue-related-to-aggregation/124164 "2018-03-15T21:02:15Z")

</div>

Hi, I am facing issue related to aggregation. I have around 1000 hits, but in console it says I have 0 count POST /csv/doc/\_search?size=0 { "aggs" : { "ip\_address" : { "value\_count" : { "field" : "type" } } } } R…

---

## [Html field for email](https://discuss.elastic.co/t/html-field-for-email/123809)

<div class="topic-metadata">

**Author:** [@Pororo](https://discuss.elastic.co/u/Pororo)\
**Replies:** 2\
**Last updated:** [March 15, 2018, 8:48pm UTC](https://discuss.elastic.co/t/html-field-for-email/123809 "2018-03-15T20:48:45Z")

</div>

I was trying to set the html for the email alerting in watcher. What I did is to copy and paste my html code into the body.html field. But it caused some indent problems that the system could not recognize it is a valid …

---

## [Issues integrating Slack](https://discuss.elastic.co/t/issues-integrating-slack/122571)

<div class="topic-metadata">

**Author:** [@Nikhilpawar1985](https://discuss.elastic.co/u/Nikhilpawar1985)\
**Replies:** 3\
**Last updated:** [March 15, 2018, 8:47pm UTC](https://discuss.elastic.co/t/issues-integrating-slack/122571 "2018-03-15T20:47:45Z")

</div>

Hello , I have config for slack like xpack.notification.slack: account: monitoring: url: https://hooks.slack.com/services/T0NT7C7BM/B9JP0HSMD/Mxu1VoeIzm6Ch But when i do query like GET \_nodes?filter\_path=…

---

## [How to dynamically check whether array element in index is active or not?](https://discuss.elastic.co/t/how-to-dynamically-check-whether-array-element-in-index-is-active-or-not/123053)

<div class="topic-metadata">

**Author:** [@naveen\_K.N](https://discuss.elastic.co/u/naveen_K.N)\
**Replies:** 2\
**Last updated:** [March 15, 2018, 8:46pm UTC](https://discuss.elastic.co/t/how-to-dynamically-check-whether-array-element-in-index-is-active-or-not/123053 "2018-03-15T20:46:30Z")

</div>

Hi ELK team, i have a index as follows: { "\_index": "ats1-cloudstream-package", "\_type": "doc", "\_id": "D0pSBWIB1T60hu117tqT", "\_version": 1, "\_score": null, "\_source": { "packageList": { "packages": \[ { "nam…

---

## [Curl to watcher webhook](https://discuss.elastic.co/t/curl-to-watcher-webhook/123958)

<div class="topic-metadata">

**Author:** [@annk](https://discuss.elastic.co/u/annk)\
**Replies:** 2\
**Last updated:** [March 15, 2018, 8:44pm UTC](https://discuss.elastic.co/t/curl-to-watcher-webhook/123958 "2018-03-15T20:44:29Z")

</div>

I have a curl post operation which uses OTRS REST API to create tickets . I want to integrate the same using watcher webhook . These are the parameters required to create a ticket in OTRS { "UserLogin" : "admin", "Pa…

---

## [Watcher Alert for Failed Snapshots How to loop the ctx.payload returned](https://discuss.elastic.co/t/watcher-alert-for-failed-snapshots-how-to-loop-the-ctx-payload-returned/122575)

<div class="topic-metadata">

**Author:** [@dmdm](https://discuss.elastic.co/u/dmdm)\
**Replies:** 3\
**Last updated:** [March 15, 2018, 8:36pm UTC](https://discuss.elastic.co/t/watcher-alert-for-failed-snapshots-how-to-loop-the-ctx-payload-returned/122575 "2018-03-15T20:36:30Z")

</div>

In the below example I query for the snapshots to see if there is a failed status on any of them. In this one I'm pulling the first record and the number of shards that failed in the snapshot. How would I edit this so …

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

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