# Elasticsearch

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

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

**Page:** 1917

---

## [When use curator to manager es 5.4.3 how setting put\_mapping time\_out](https://discuss.elastic.co/t/when-use-curator-to-manager-es-5-4-3-how-setting-put-mapping-time-out/104481)

<div class="topic-metadata">

**Author:** [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Replies:** 3\
**Last updated:** [October 19, 2017, 8:59am UTC](https://discuss.elastic.co/t/when-use-curator-to-manager-es-5-4-3-how-setting-put-mapping-time-out/104481 "2017-10-19T08:59:07Z")

</div>

when use curator to manager es i find there is have timeout setting about curator post commad as flow i change the time\_out can delete indices: DELETE http://hostname:9200/system-log-61-2017.08,system-log-61-2017.09,s…

---

## [How to configure 2 clusters in 5.6.2](https://discuss.elastic.co/t/how-to-configure-2-clusters-in-5-6-2/104080)

<div class="topic-metadata">

**Author:** [@gringogordo](https://discuss.elastic.co/u/gringogordo)\
**Replies:** 7\
**Last updated:** [October 19, 2017, 8:57am UTC](https://discuss.elastic.co/t/how-to-configure-2-clusters-in-5-6-2/104080 "2017-10-19T08:57:07Z")

</div>

I'm upgrading an application to use 5.6.2 rather than 2.4.1 and I'm trying to change our design a bit that moved from PoC to production a few years ago & never changed. So essentially in the existing system we a have a …

---

## [Is Elastic Search can be applied to Tensorflow as a machine learning?](https://discuss.elastic.co/t/is-elastic-search-can-be-applied-to-tensorflow-as-a-machine-learning/104520)

<div class="topic-metadata">

**Author:** [@regiereyes15](https://discuss.elastic.co/u/regiereyes15)\
**Replies:** 0\
**Last updated:** [October 19, 2017, 8:56am UTC](https://discuss.elastic.co/t/is-elastic-search-can-be-applied-to-tensorflow-as-a-machine-learning/104520 "2017-10-19T08:56:48Z")

</div>

Is Elastic Search can be applied to Tensorflow as a machine learning?

---

## [Details of ES Index Shard allocation behaviour](https://discuss.elastic.co/t/details-of-es-index-shard-allocation-behaviour/104418)

<div class="topic-metadata">

**Author:** [@Kumaravel](https://discuss.elastic.co/u/Kumaravel)\
**Replies:** 2\
**Last updated:** [October 19, 2017, 8:52am UTC](https://discuss.elastic.co/t/details-of-es-index-shard-allocation-behaviour/104418 "2017-10-19T08:52:28Z")

</div>

I am using ES 2.3.2 without any awareness attribute and plan to use it for datacenter awareness. For testing, I have 1 master node and 4 data nodes out which 2 nodes are in DC1 and 2 nodes in DC2. When the data nodes ar…

---

## [Cannot list snapshots in S3 repository (previously working fine)](https://discuss.elastic.co/t/cannot-list-snapshots-in-s3-repository-previously-working-fine/104249)

<div class="topic-metadata">

**Author:** [@joelittlejohn](https://discuss.elastic.co/u/joelittlejohn)\
**Replies:** 4\
**Last updated:** [October 19, 2017, 8:35am UTC](https://discuss.elastic.co/t/cannot-list-snapshots-in-s3-repository-previously-working-fine/104249 "2017-10-19T08:35:11Z")

</div>

Hi I've been using the repository-s3 plugin with Elasticsearch 5.3.3 happily for months. A couple of days ago, our regular snapshot restore process started failing. It shows a timeout attempting to read the list of snap…

---

## [Use CURL to create mapping suspend](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213)

<div class="topic-metadata">

**Author:** [@winlans](https://discuss.elastic.co/u/winlans)\
**Replies:** 10\
**Last updated:** [October 19, 2017, 8:02am UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213 "2017-10-19T08:02:11Z")

</div>

When I use curl to create mapping for index, curl will hang there, there will not be any corresponding, and will not stop operation. elasticsearch version:5.6.3 or 5.6.2 os: ubuntu 16.04 and centos 7 This is not the …

---

## [Restart cluster ES2.1 failed after disk full exception, how can I make it?](https://discuss.elastic.co/t/restart-cluster-es2-1-failed-after-disk-full-exception-how-can-i-make-it/104514)

<div class="topic-metadata">

**Author:** [@small-tomorrow](https://discuss.elastic.co/u/small-tomorrow)\
**Replies:** 0\
**Last updated:** [October 19, 2017, 7:56am UTC](https://discuss.elastic.co/t/restart-cluster-es2-1-failed-after-disk-full-exception-how-can-i-make-it/104514 "2017-10-19T07:56:22Z")

</div>

When I found the cluster was down, I found most nodes's disk is 100%, so I free most space by removing log files. but the cluster wont recovery and the Linux ES process seems blocked. So , I restart all nodes , and set…

---

## [How can I import template for elastic](https://discuss.elastic.co/t/how-can-i-import-template-for-elastic/104512)

<div class="topic-metadata">

**Author:** [@tomer](https://discuss.elastic.co/u/tomer)\
**Replies:** 0\
**Last updated:** [October 19, 2017, 7:49am UTC](https://discuss.elastic.co/t/how-can-i-import-template-for-elastic/104512 "2017-10-19T07:49:01Z")

</div>

Hi, How can I import a template for elastic from a different elasticsearch machine? I can get the Json from the ES by GET/\_template but how to copy it and push it to an another machine.

---

## [Recover shard failed](https://discuss.elastic.co/t/recover-shard-failed/104501)

<div class="topic-metadata">

**Author:** [@Canappeco](https://discuss.elastic.co/u/Canappeco)\
**Replies:** 0\
**Last updated:** [October 19, 2017, 6:57am UTC](https://discuss.elastic.co/t/recover-shard-failed/104501 "2017-10-19T06:57:54Z")

</div>

Last night my cluster suffered blackout and all the nodes were down. My cluster consists of 1 master node and 2 data nodes. The number of replica is 1. Today I try to recover my cluster but Exceptions happen. This is wha…

---

## [Elasticsearch throws "primary shard is not active Timeout:" error](https://discuss.elastic.co/t/elasticsearch-throws-primary-shard-is-not-active-timeout-error/104261)

<div class="topic-metadata">

**Author:** [@rajesh](https://discuss.elastic.co/u/rajesh)\
**Replies:** 1\
**Last updated:** [October 19, 2017, 6:49am UTC](https://discuss.elastic.co/t/elasticsearch-throws-primary-shard-is-not-active-timeout-error/104261 "2017-10-19T06:49:29Z")

</div>

Hi, I am getting following error in ES, "type"=\>"unavailable\_shards\_exception", "reason"=\>"\[index-2017.10\]\[2\] primary shard is not active Timeout: \[1m\] I didn't find any specific answer on why this is happening. Can s…

---

## [Connecting to Elasticsearch in an executable jar](https://discuss.elastic.co/t/connecting-to-elasticsearch-in-an-executable-jar/104416)

<div class="topic-metadata">

**Author:** [@bbwilliams88](https://discuss.elastic.co/u/bbwilliams88)\
**Replies:** 2\
**Last updated:** [October 19, 2017, 6:27am UTC](https://discuss.elastic.co/t/connecting-to-elasticsearch-in-an-executable-jar/104416 "2017-10-19T06:27:30Z")

</div>

Hello, We recently upgraded from Elasticsearch 2x to 5.3.3. We have created executable jars that will load data into Elastic search. The jars worked fine in 2x but do not work in 5.3.3. We are getting the error: "Error …

---

## [How to customize the result of buckets](https://discuss.elastic.co/t/how-to-customize-the-result-of-buckets/104494)

<div class="topic-metadata">

**Author:** [@RomainXie](https://discuss.elastic.co/u/RomainXie)\
**Replies:** 0\
**Last updated:** [October 19, 2017, 6:16am UTC](https://discuss.elastic.co/t/how-to-customize-the-result-of-buckets/104494 "2017-10-19T06:16:11Z")

</div>

Hi, all We got the query result like followed. But we want to: remove the first item, because the first is useless after derivative aggs; remove some field in each result item, etc: avg-bytes, which is intermediate; …

---

## [Event id based correlations rules - Filtering](https://discuss.elastic.co/t/event-id-based-correlations-rules-filtering/104485)

<div class="topic-metadata">

**Author:** [@Noel\_George](https://discuss.elastic.co/u/Noel_George)\
**Replies:** 0\
**Last updated:** [October 19, 2017, 4:06am UTC](https://discuss.elastic.co/t/event-id-based-correlations-rules-filtering/104485 "2017-10-19T04:06:55Z")

</div>

Where can i find event id based filtering for different scripts of watches?

---

## [Question on implementing elasticsearch in docker way](https://discuss.elastic.co/t/question-on-implementing-elasticsearch-in-docker-way/103633)

<div class="topic-metadata">

**Author:** [@zidane28](https://discuss.elastic.co/u/zidane28)\
**Replies:** 2\
**Last updated:** [October 19, 2017, 2:48am UTC](https://discuss.elastic.co/t/question-on-implementing-elasticsearch-in-docker-way/103633 "2017-10-19T02:48:22Z")

</div>

Currently I have a cluster with 5 nodes...And master nodes have the same hardware specs as data node, which is 16 core CPU and 32GB memory. Since master node didn't utilize that many CPU and RAM, so my manager argues th…

---

## [Role Definition Error (immense term in indices.query)](https://discuss.elastic.co/t/role-definition-error-immense-term-in-indices-query/104465)

<div class="topic-metadata">

**Author:** [@jagrutsharma](https://discuss.elastic.co/u/jagrutsharma)\
**Replies:** 0\
**Last updated:** [October 19, 2017, 12:07am UTC](https://discuss.elastic.co/t/role-definition-error-immense-term-in-indices-query/104465 "2017-10-19T00:07:45Z")

</div>

Hi - I'm getting an exception when trying to create a role with document-level security via the REST API. The reason seems to be "query" getting larger than 32766 bytes. The request body and stracktrace are below. Can yo…

---

## [Getting stored scripts](https://discuss.elastic.co/t/getting-stored-scripts/104455)

<div class="topic-metadata">

**Author:** [@JTaylor](https://discuss.elastic.co/u/JTaylor)\
**Replies:** 1\
**Last updated:** [October 18, 2017, 11:54pm UTC](https://discuss.elastic.co/t/getting-stored-scripts/104455 "2017-10-18T23:54:01Z")

</div>

I have used the \_scripts index to store 2 different queries that an application will be calling, but in order to do a dev-\>prod deployment, we would like to simply "get" the scripts that we have in the index and move the…

---

## [Aggregation Cache](https://discuss.elastic.co/t/aggregation-cache/104453)

<div class="topic-metadata">

**Author:** [@serverlessPHP](https://discuss.elastic.co/u/serverlessPHP)\
**Replies:** 1\
**Last updated:** [October 18, 2017, 10:28pm UTC](https://discuss.elastic.co/t/aggregation-cache/104453 "2017-10-18T22:28:09Z")

</div>

I want to take advantage of the query cache to speed up my very slow aggregations. According to the documentation, queries should cache the aggregations as long as query\_cache or request\_cache is set, depending on ES ve…

---

## [Boolean filter query being ignored (maybe)](https://discuss.elastic.co/t/boolean-filter-query-being-ignored-maybe/104457)

<div class="topic-metadata">

**Author:** [@emarthinsen](https://discuss.elastic.co/u/emarthinsen)\
**Replies:** 1\
**Last updated:** [October 18, 2017, 9:39pm UTC](https://discuss.elastic.co/t/boolean-filter-query-being-ignored-maybe/104457 "2017-10-18T21:39:48Z")

</div>

Hi. I'm trying to filter my search results on a boolean property. I set up a term filter where the value of the "build" property should be true (the literal value). I'm getting a result in my results where the value is n…

---

## [Calculate reindexing time for large index of data](https://discuss.elastic.co/t/calculate-reindexing-time-for-large-index-of-data/104447)

<div class="topic-metadata">

**Author:** [@Natalia\_Kuleniuk](https://discuss.elastic.co/u/Natalia_Kuleniuk)\
**Replies:** 1\
**Last updated:** [October 18, 2017, 7:17pm UTC](https://discuss.elastic.co/t/calculate-reindexing-time-for-large-index-of-data/104447 "2017-10-18T19:17:14Z")

</div>

Is there any ways to calculate how much time would it take to reindex index , that store 37 GB of data and has 180,000,000 documents in it?

---

## [Painless script break out of inner for loop using labels](https://discuss.elastic.co/t/painless-script-break-out-of-inner-for-loop-using-labels/104421)

<div class="topic-metadata">

**Author:** [@krishna\_chaitanya](https://discuss.elastic.co/u/krishna_chaitanya)\
**Replies:** 2\
**Last updated:** [October 18, 2017, 7:06pm UTC](https://discuss.elastic.co/t/painless-script-break-out-of-inner-for-loop-using-labels/104421 "2017-10-18T19:06:30Z")

</div>

I would like to have a watch with script condition which returns true based on condition in my inner most for loop. I have logic created with labeled for loop, as it is part of the Java control flow mentioned in doc her…

---

## [Elastichadoop not scaling](https://discuss.elastic.co/t/elastichadoop-not-scaling/104433)

<div class="topic-metadata">

**Author:** [@initproto](https://discuss.elastic.co/u/initproto)\
**Replies:** 0\
**Last updated:** [October 18, 2017, 4:57pm UTC](https://discuss.elastic.co/t/elastichadoop-not-scaling/104433 "2017-10-18T16:57:03Z")

</div>

Hi, We are trying to get elastichadoop to work in our modest Spark environment. Running a job with 30 cores and trying to write 1M documents to 4 node ES cluster fails. If the document size is small, like under 10,000 …

---

## [ELK stack Use case scenario](https://discuss.elastic.co/t/elk-stack-use-case-scenario/104028)

<div class="topic-metadata">

**Author:** [@edu\_ever](https://discuss.elastic.co/u/edu_ever)\
**Replies:** 1\
**Last updated:** [October 18, 2017, 4:56pm UTC](https://discuss.elastic.co/t/elk-stack-use-case-scenario/104028 "2017-10-18T16:56:59Z")

</div>

Hello everyone, I am a beginner DevOps learner. I heard ELk is one of the tool that DevOps engineer should be aware of, so i started learning ELK stack. Recently graduated, actively looking for job, Could anyone plz pr…

---

## [Elasticsearch Load balance with multiple nodes in same machine](https://discuss.elastic.co/t/elasticsearch-load-balance-with-multiple-nodes-in-same-machine/104432)

<div class="topic-metadata">

**Author:** [@surajbs](https://discuss.elastic.co/u/surajbs)\
**Replies:** 0\
**Last updated:** [October 18, 2017, 4:51pm UTC](https://discuss.elastic.co/t/elasticsearch-load-balance-with-multiple-nodes-in-same-machine/104432 "2017-10-18T16:51:56Z")

</div>

Hi, I am trying to run multiple nodes with different instances in same machine for load balancing in elasticsearch. I have downloaded three elasticsearch files in the same machine and configured their elasticsearch.yml…

---

## [Load balance in elasticsearch with multiple nodes in same machine](https://discuss.elastic.co/t/load-balance-in-elasticsearch-with-multiple-nodes-in-same-machine/103036)

<div class="topic-metadata">

**Author:** [@surajbs](https://discuss.elastic.co/u/surajbs)\
**Replies:** 3\
**Last updated:** [October 18, 2017, 4:50pm UTC](https://discuss.elastic.co/t/load-balance-in-elasticsearch-with-multiple-nodes-in-same-machine/103036 "2017-10-18T16:50:59Z")

</div>

Hi, I am trying to run multiple nodes with different instances in same machine for load balancing in elasticsearch. I have downloaded three elasticsearch files in the same machine and configured their elasticsearch.yml…

---

## [Create new field in ES and backfill it with data](https://discuss.elastic.co/t/create-new-field-in-es-and-backfill-it-with-data/104314)

<div class="topic-metadata">

**Author:** [@Natalia\_Kuleniuk](https://discuss.elastic.co/u/Natalia_Kuleniuk)\
**Replies:** 3\
**Last updated:** [October 18, 2017, 6:19am UTC](https://discuss.elastic.co/t/create-new-field-in-es-and-backfill-it-with-data/104314 "2017-10-18T06:19:50Z")

</div>

We have ElasticSearch index that stores large dataset. I need to add two new fields to ES index and backfill values for these fields from Redshift. My question is how can I achieve this? What is the best approach: change…

---

## [Set up elasticsearch to use pod names during discovery instead of Pod IP](https://discuss.elastic.co/t/set-up-elasticsearch-to-use-pod-names-during-discovery-instead-of-pod-ip/104272)

<div class="topic-metadata">

**Author:** [@akpt](https://discuss.elastic.co/u/akpt)\
**Replies:** 4\
**Last updated:** [October 18, 2017, 3:40pm UTC](https://discuss.elastic.co/t/set-up-elasticsearch-to-use-pod-names-during-discovery-instead-of-pod-ip/104272 "2017-10-18T15:40:25Z")

</div>

In my minikube cluster, my elasticsearch pods have the config: cluster.name: elasticsearch-logs node.name: ${HOSTNAME} node.master: true node.data: true network.host: \_site\_ transport.tcp.port: 9300 http.port: 9200 htt…

---

## [How to integrate elasticsearch with multiple MS access database](https://discuss.elastic.co/t/how-to-integrate-elasticsearch-with-multiple-ms-access-database/104393)

<div class="topic-metadata">

**Author:** [@Nishan\_Singh](https://discuss.elastic.co/u/Nishan_Singh)\
**Replies:** 5\
**Last updated:** [October 18, 2017, 3:27pm UTC](https://discuss.elastic.co/t/how-to-integrate-elasticsearch-with-multiple-ms-access-database/104393 "2017-10-18T15:27:09Z")

</div>

we have multiple MS access database and i want to search in those mdb using elasticsearch. is it possible to do that using any plugin.

---

## [ParsingException\[Unknown key for a START\_OBJECT in \[filter\].\]](https://discuss.elastic.co/t/parsingexception-unknown-key-for-a-start-object-in-filter/104083)

<div class="topic-metadata">

**Author:** [@varun\_kumar2](https://discuss.elastic.co/u/varun_kumar2)\
**Replies:** 3\
**Last updated:** [October 18, 2017, 2:15pm UTC](https://discuss.elastic.co/t/parsingexception-unknown-key-for-a-start-object-in-filter/104083 "2017-10-18T14:15:54Z")

</div>

PUT \_xpack/watcher/watch/Integrations.RepComp.Monitor.Errors/ { "trigger": { "schedule": { "interval": "15m" } }, "input": { "search": { "request": { "search\_type": "query\_then\_fetch", "indices": \[ "logstash-"…

---

## [X-Pack Certgen - unable to set key password after creation](https://discuss.elastic.co/t/x-pack-certgen-unable-to-set-key-password-after-creation/104336)

<div class="topic-metadata">

**Author:** [@oysteila](https://discuss.elastic.co/u/oysteila)\
**Replies:** 8\
**Last updated:** [October 18, 2017, 2:13pm UTC](https://discuss.elastic.co/t/x-pack-certgen-unable-to-set-key-password-after-creation/104336 "2017-10-18T14:13:38Z")

</div>

I'm trying to set the key password for the CA I created, using this command: certgen --key ca.key --pass The command fails with the error message: "Option(s) \[key\] are unavailable given other options on the command l…

---

## [Retrieve stored fields from elastic search via elasticsearch hadoop connector](https://discuss.elastic.co/t/retrieve-stored-fields-from-elastic-search-via-elasticsearch-hadoop-connector/104406)

<div class="topic-metadata">

**Author:** [@edheck](https://discuss.elastic.co/u/edheck)\
**Replies:** 0\
**Last updated:** [October 18, 2017, 2:06pm UTC](https://discuss.elastic.co/t/retrieve-stored-fields-from-elastic-search-via-elasticsearch-hadoop-connector/104406 "2017-10-18T14:06:31Z")

</div>

Here is our situation. Following is our document structure :- { 'key1': 'some\_val', 'key2': 'some\_very\_large\_binary\_value', ... } Because value of key2 is a large binary value and because we don't need it to b…

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

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