# Elasticsearch

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

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

**Page:** 1843

---

## [Backup repository credential](https://discuss.elastic.co/t/backup-repository-credential/113476)

<div class="topic-metadata">

**Author:** [@frederic.obez](https://discuss.elastic.co/u/frederic.obez)\
**Replies:** 3\
**Last updated:** [December 29, 2017, 7:13am UTC](https://discuss.elastic.co/t/backup-repository-credential/113476 "2017-12-29T07:13:06Z")

</div>

Hi all, I have a question concerning the configuration of the repository within ElasticSearch config file. We are running a 4 nodes cluster on Windows, we need to store the backup on a dedicated server, we create a sha…

---

## [Matching two fields with the same value across two indices](https://discuss.elastic.co/t/matching-two-fields-with-the-same-value-across-two-indices/101828)

<div class="topic-metadata">

**Author:** [@cuttlefishjones](https://discuss.elastic.co/u/cuttlefishjones)\
**Replies:** 7\
**Last updated:** [December 29, 2017, 6:58am UTC](https://discuss.elastic.co/t/matching-two-fields-with-the-same-value-across-two-indices/101828 "2017-12-29T06:58:19Z")

</div>

Hi, I'm trying to do a simple match of two fields from two indices but I'm not having much luck. So I've got two indices A and B and two fields with different names but the same values. How do I return all results from …

---

## [Encryption at rest support](https://discuss.elastic.co/t/encryption-at-rest-support/113537)

<div class="topic-metadata">

**Author:** [@jiali](https://discuss.elastic.co/u/jiali)\
**Replies:** 1\
**Last updated:** [December 29, 2017, 6:51am UTC](https://discuss.elastic.co/t/encryption-at-rest-support/113537 "2017-12-29T06:51:00Z")

</div>

In X-Pack platinum, "Encryption at rest support" was introduced in 5.3.0 Released. As there's no documentation about it and I understand it is about filesystem encryption on the actual host running Elasticsearch. I woul…

---

## [NoNodeAvailableException\[None of the configured nodes are available: \[{#transport#-1}{IDKtOnPrQICBFDFU-dCxrw}{localhost}{127.0.0.1:9300}\] \]](https://discuss.elastic.co/t/nonodeavailableexception-none-of-the-configured-nodes-are-available-transport-1-idktonprqicbfdfu-dcxrw-localhost-127-0-0-1-9300/112334)

<div class="topic-metadata">

**Author:** [@jomalonejia](https://discuss.elastic.co/u/jomalonejia)\
**Replies:** 2\
**Last updated:** [December 29, 2017, 6:50am UTC](https://discuss.elastic.co/t/nonodeavailableexception-none-of-the-configured-nodes-are-available-transport-1-idktonprqicbfdfu-dcxrw-localhost-127-0-0-1-9300/112334 "2017-12-29T06:50:54Z")

</div>

i run the es on docker , and it worked well \[1\] when i wanna use java client it throw exception: NoNodeAvailableException\[None of the configured nodes are available: \[{#transport#-1}{fe2lzyyASMa7y-5slCY0rw}{localhost}…

---

## [Count nested documents only?](https://discuss.elastic.co/t/count-nested-documents-only/113248)

<div class="topic-metadata">

**Author:** [@bkazez](https://discuss.elastic.co/u/bkazez)\
**Replies:** 7\
**Last updated:** [December 29, 2017, 5:57am UTC](https://discuss.elastic.co/t/count-nested-documents-only/113248 "2017-12-29T05:57:26Z")

</div>

Hi, in my index, each document represents a Record Group, which includes an array of Records - type: nested. I need the count of Records only, not Record Groups. I've seen several people looking for this kind of thing o…

---

## [No Indexes in 6.1.1](https://discuss.elastic.co/t/no-indexes-in-6-1-1/113372)

<div class="topic-metadata">

**Author:** [@mwesche](https://discuss.elastic.co/u/mwesche)\
**Replies:** 1\
**Last updated:** [December 29, 2017, 3:51am UTC](https://discuss.elastic.co/t/no-indexes-in-6-1-1/113372 "2017-12-29T03:51:51Z")

</div>

I just installed 6.1.1 of all three. I then setup Palo Alto to send syslog over udp/5514. I configured the logstash config file for input from syslog to output elasticsearch. Kibana is giving me the index error and the…

---

## [Kibana 6.1 able with elastic 5.3.2](https://discuss.elastic.co/t/kibana-6-1-able-with-elastic-5-3-2/113436)

<div class="topic-metadata">

**Author:** [@User\_2\_Guest\_Incomin](https://discuss.elastic.co/u/User_2_Guest_Incomin)\
**Replies:** 2\
**Last updated:** [December 29, 2017, 1:55am UTC](https://discuss.elastic.co/t/kibana-6-1-able-with-elastic-5-3-2/113436 "2017-12-29T01:55:48Z")

</div>

Hi friends, I can't find if I upgrade kibana 5.3.2 to Kibana 6.1, I'll have to upgrade Elasticsearch from 5.3.2 to 6.1 too, or I could keep elasticsearch with actual version (5.3.2)?? Thank you in advance! Joel PS: I…

---

## [Remove unused fields from logstash-\* index](https://discuss.elastic.co/t/remove-unused-fields-from-logstash-index/113386)

<div class="topic-metadata">

**Author:** [@nnet](https://discuss.elastic.co/u/nnet)\
**Replies:** 6\
**Last updated:** [December 29, 2017, 12:20am UTC](https://discuss.elastic.co/t/remove-unused-fields-from-logstash-index/113386 "2017-12-29T00:20:58Z")

</div>

Hi folks, i accidently added winlogbeat event fields to logstash-\* index and want to remove them. I don't have any logstash-\* data using the fields as I deleted those events. How can I remove the unused fields?

---

## [Painless lang](https://discuss.elastic.co/t/painless-lang/113475)

<div class="topic-metadata">

**Author:** [@radi](https://discuss.elastic.co/u/radi)\
**Replies:** 1\
**Last updated:** [December 28, 2017, 6:18pm UTC](https://discuss.elastic.co/t/painless-lang/113475 "2017-12-28T18:18:08Z")

</div>

hello, i want help to correct this script on lang:painless please if (doc\['filed\].value!= null) { forEach(function(result){ def users = result.doc\['filed\].value; def arr = \[\]; for(def user in users){ arr.push(user…

---

## [Error while upgrading Elasticsearch license](https://discuss.elastic.co/t/error-while-upgrading-elasticsearch-license/113469)

<div class="topic-metadata">

**Author:** [@vivek\_a](https://discuss.elastic.co/u/vivek_a)\
**Replies:** 1\
**Last updated:** [December 28, 2017, 5:24pm UTC](https://discuss.elastic.co/t/error-while-upgrading-elasticsearch-license/113469 "2017-12-28T17:24:47Z")

</div>

Hi All, I have ran into a problem while upgrading my Elasticsearch license. Please see the Error below. I am quite new to ES. Need some help please? {"error":{"root\_cause":\[{"type":"illegal\_argument\_exception","reason"…

---

## [Mapper for \[kibanaSavedObjectMeta.searchSourceJSON\] conflicts with existing mapping in other types](https://discuss.elastic.co/t/mapper-for-kibanasavedobjectmeta-searchsourcejson-conflicts-with-existing-mapping-in-other-types/113241)

<div class="topic-metadata">

**Author:** [@asidoren](https://discuss.elastic.co/u/asidoren)\
**Replies:** 1\
**Last updated:** [December 28, 2017, 12:47pm UTC](https://discuss.elastic.co/t/mapper-for-kibanasavedobjectmeta-searchsourcejson-conflicts-with-existing-mapping-in-other-types/113241 "2017-12-28T12:47:14Z")

</div>

After update from Elasticsearch 2.1 to 5.6 got this error in Elasticsearch log: java.lang.IllegalArgumentException: Mapper for \[kibanaSavedObjectMeta.searchSourceJSON\] conflicts with existing mapping in other types: \[…

---

## [Defining a mapping for join datatype](https://discuss.elastic.co/t/defining-a-mapping-for-join-datatype/113429)

<div class="topic-metadata">

**Author:** [@oguz](https://discuss.elastic.co/u/oguz)\
**Replies:** 1\
**Last updated:** [December 28, 2017, 12:14pm UTC](https://discuss.elastic.co/t/defining-a-mapping-for-join-datatype/113429 "2017-12-28T12:14:42Z")

</div>

Hi All, i couldn't figure out how to define a join datatype relationship following the documentation on join datatype Mapping: curl -XPUT localhost:9200/bookings -H 'Content-Type: application/json' -d ' { "mapping…

---

## [Field\_security exclude fields showing up in visualizations](https://discuss.elastic.co/t/field-security-exclude-fields-showing-up-in-visualizations/113443)

<div class="topic-metadata">

**Author:** [@sachin8778](https://discuss.elastic.co/u/sachin8778)\
**Replies:** 1\
**Last updated:** [December 28, 2017, 11:51am UTC](https://discuss.elastic.co/t/field-security-exclude-fields-showing-up-in-visualizations/113443 "2017-12-28T11:51:59Z")

</div>

Hi, I applied field\_security to exclude a field (e.g. plan\_type) while defining the role (e.g. chennai\_users). I have a visual created showing the excluded field (e.g. data table). When I login as a user owning the rest…

---

## [Search query with java rest client](https://discuss.elastic.co/t/search-query-with-java-rest-client/113411)

<div class="topic-metadata">

**Author:** [@ankur\_singla](https://discuss.elastic.co/u/ankur_singla)\
**Replies:** 5\
**Last updated:** [December 28, 2017, 11:22am UTC](https://discuss.elastic.co/t/search-query-with-java-rest-client/113411 "2017-12-28T11:22:45Z")

</div>

I am using rest client api for search query but in response i am getting exception of invalid character exception. I am looking for examples to check my format but did not find any. My code is - String body = "{" +…

---

## [Could not reassign UNASSIGNED shards (elasticsearch 5.6 )](https://discuss.elastic.co/t/could-not-reassign-unassigned-shards-elasticsearch-5-6/113154)

<div class="topic-metadata">

**Author:** [@Serg](https://discuss.elastic.co/u/Serg)\
**Replies:** 24\
**Last updated:** [December 28, 2017, 9:26am UTC](https://discuss.elastic.co/t/could-not-reassign-unassigned-shards-elasticsearch-5-6/113154 "2017-12-28T09:26:22Z")

</div>

After reboot, i got some unassigned shards. logstash-2017.12.08 3 p UNASSIGNED logstash-2017.12.08 3 r UNASSIGNED logstash-2017.12.08 4 p UNASSIGNE…

---

## [Any suggestion about indexes?](https://discuss.elastic.co/t/any-suggestion-about-indexes/113376)

<div class="topic-metadata">

**Author:** [@Faye](https://discuss.elastic.co/u/Faye)\
**Replies:** 1\
**Last updated:** [December 28, 2017, 9:21am UTC](https://discuss.elastic.co/t/any-suggestion-about-indexes/113376 "2017-12-28T09:21:27Z")

</div>

We are investigating to create indexes for a new ES system. From 6.x, ES only supports one type in one index, that means we need to create many indexes, Does that mean new versions of ES has better performance to handl…

---

## [How to utilize elasticsearchAPI in Angular 2 ? And also please share about doing pagination in elastic search data](https://discuss.elastic.co/t/how-to-utilize-elasticsearchapi-in-angular-2-and-also-please-share-about-doing-pagination-in-elastic-search-data/113399)

<div class="topic-metadata">

**Author:** [@SeethaPartha](https://discuss.elastic.co/u/SeethaPartha)\
**Replies:** 1\
**Last updated:** [December 28, 2017, 8:22am UTC](https://discuss.elastic.co/t/how-to-utilize-elasticsearchapi-in-angular-2-and-also-please-share-about-doing-pagination-in-elastic-search-data/113399 "2017-12-28T08:22:03Z")

</div>

how to utilize elasticsearchAPI in Angular 2 ? And also please share about doing pagination in elastic search data

---

## [Unable to apply filter on serial\_diff aggregation](https://discuss.elastic.co/t/unable-to-apply-filter-on-serial-diff-aggregation/113203)

<div class="topic-metadata">

**Author:** [@hexer338](https://discuss.elastic.co/u/hexer338)\
**Replies:** 1\
**Last updated:** [December 28, 2017, 7:48am UTC](https://discuss.elastic.co/t/unable-to-apply-filter-on-serial-diff-aggregation/113203 "2017-12-28T07:48:59Z")

</div>

Hi, If a filter or filters aggregation is applied above serial\_diff aggregation, Elasticsearch is returning error. Elasticsearch version: v5.6.4 Please find below ES query: { "size": 0, "aggs": { "years": …

---

## [Monitoring data not same with curl count why?](https://discuss.elastic.co/t/monitoring-data-not-same-with-curl-count-why/112532)

<div class="topic-metadata">

**Author:** [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Replies:** 12\
**Last updated:** [December 28, 2017, 4:54am UTC](https://discuss.elastic.co/t/monitoring-data-not-same-with-curl-count-why/112532 "2017-12-28T04:54:36Z")

</div>

\[root@xx.xx.xx config\]# curl -XGET http://xx.xx.xx:9200/xx-20171212-1224/\_count?pretty { "count" : \*\*467110397\*\*, "\_shards" : { "total" : 36, "successful" : 36, "skipped" : 0, "failed" : 0 use kibana…

---

## [How to apply filter in computed field used script in elaticsearch](https://discuss.elastic.co/t/how-to-apply-filter-in-computed-field-used-script-in-elaticsearch/113115)

<div class="topic-metadata">

**Author:** [@yanianthe](https://discuss.elastic.co/u/yanianthe)\
**Replies:** 2\
**Last updated:** [December 28, 2017, 2:57am UTC](https://discuss.elastic.co/t/how-to-apply-filter-in-computed-field-used-script-in-elaticsearch/113115 "2017-12-28T02:57:30Z")

</div>

My use case is to filter in my computed field used script field,is there any way I can reuse the script field definition in order to apply "terms query" in the "bool" ? { "query": { "bool": { "must": \[ …

---

## [Failed to do bulk index after installing xpack](https://discuss.elastic.co/t/failed-to-do-bulk-index-after-installing-xpack/113258)

<div class="topic-metadata">

**Author:** [@Saurab\_Dahal](https://discuss.elastic.co/u/Saurab_Dahal)\
**Replies:** 2\
**Last updated:** [December 28, 2017, 2:43am UTC](https://discuss.elastic.co/t/failed-to-do-bulk-index-after-installing-xpack/113258 "2017-12-28T02:43:57Z")

</div>

I was able to index documents in bulk before I installed xpack. After installing xpack, I am getting failure in bulk execution: . I am using java client for xpack \<dependency\> \<groupId\>org.elasticsearch.client\<…

---

## [Connecting Elasticsearch in Ubuntu 17.04](https://discuss.elastic.co/t/connecting-elasticsearch-in-ubuntu-17-04/113085)

<div class="topic-metadata">

**Author:** [@Kilmer\_Luiz\_Aleluia](https://discuss.elastic.co/u/Kilmer_Luiz_Aleluia)\
**Replies:** 6\
**Last updated:** [December 27, 2017, 8:58pm UTC](https://discuss.elastic.co/t/connecting-elasticsearch-in-ubuntu-17-04/113085 "2017-12-27T20:58:40Z")

</div>

Even if a do a sudo service elasticsearch start, I'm not able to access http://localhost:9200/: This site can’t be reached. localhost refused to connect. But when I hit elasticsearch status, I get: ● elasticsearch.serv…

---

## [Query across indices using unique identifier](https://discuss.elastic.co/t/query-across-indices-using-unique-identifier/113355)

<div class="topic-metadata">

**Author:** [@byoungman](https://discuss.elastic.co/u/byoungman)\
**Replies:** 0\
**Last updated:** [December 27, 2017, 7:36pm UTC](https://discuss.elastic.co/t/query-across-indices-using-unique-identifier/113355 "2017-12-27T19:36:25Z")

</div>

I have a bit of a dilemma going here... We are indexing 2 types of payloads in our system -- one contains xml request file (data) coming in from ERP connectors containing tax information that gets fed into our back end …

---

## [How to specify the index mapping in ESIntegTestCase?](https://discuss.elastic.co/t/how-to-specify-the-index-mapping-in-esintegtestcase/113278)

<div class="topic-metadata">

**Author:** [@vgindin](https://discuss.elastic.co/u/vgindin)\
**Replies:** 1\
**Last updated:** [December 27, 2017, 7:00pm UTC](https://discuss.elastic.co/t/how-to-specify-the-index-mapping-in-esintegtestcase/113278 "2017-12-27T19:00:39Z")

</div>

Hi all. I have a difficulty, described in I suppose that the reason is in mapping differences between the index created in my test and the real index in the real elasticsearch installation. Could somebody tell me a w…

---

## [Number of indices](https://discuss.elastic.co/t/number-of-indices/113247)

<div class="topic-metadata">

**Author:** [@Fram\_Souza](https://discuss.elastic.co/u/Fram_Souza)\
**Replies:** 3\
**Last updated:** [December 27, 2017, 6:46pm UTC](https://discuss.elastic.co/t/number-of-indices/113247 "2017-12-27T18:46:01Z")

</div>

Hello, I'm working on an Elasticsearch implementation project and a company in which 80% of the actions are reading, and 20% writing. The environment is configured with 5 nodes where all are master / data / coordinatin…

---

## [Custom ES plugin timing out](https://discuss.elastic.co/t/custom-es-plugin-timing-out/113236)

<div class="topic-metadata">

**Author:** [@fhalde](https://discuss.elastic.co/u/fhalde)\
**Replies:** 1\
**Last updated:** [December 27, 2017, 5:54pm UTC](https://discuss.elastic.co/t/custom-es-plugin-timing-out/113236 "2017-12-27T17:54:36Z")

</div>

We wrote a custom ES plugin that is deployed in one of our master node. When we hit the plugin, it is responsible for collecting node metrics from all the nodes. One thing we recently encountered is that, since this node…

---

## [Elastic search null\_value for integers is failing](https://discuss.elastic.co/t/elastic-search-null-value-for-integers-is-failing/113104)

<div class="topic-metadata">

**Author:** [@putharekulu](https://discuss.elastic.co/u/putharekulu)\
**Replies:** 1\
**Last updated:** [December 27, 2017, 4:16pm UTC](https://discuss.elastic.co/t/elastic-search-null-value-for-integers-is-failing/113104 "2017-12-27T16:16:07Z")

</div>

Ask Question up vote 0 down vote favorite i have the following in my mapping. The id can be null sometimes so i am using null\_value : 1. "Id" : { "type" : "integer", "store" : true, "doc\_values" : true, "null\_value"…

---

## [Logstash Templates Incorrect](https://discuss.elastic.co/t/logstash-templates-incorrect/112816)

<div class="topic-metadata">

**Author:** [@Borrelworst](https://discuss.elastic.co/u/Borrelworst)\
**Replies:** 5\
**Last updated:** [December 27, 2017, 3:52pm UTC](https://discuss.elastic.co/t/logstash-templates-incorrect/112816 "2017-12-27T15:52:54Z")

</div>

Hi All, This is not a real issue, well maybe for some of you, but I want to clear some things out: I am already using Elasticseach for a couple of years and really like the software and what you can do with it. However…

---

## [How to tune merging to get rid of deleted documents](https://discuss.elastic.co/t/how-to-tune-merging-to-get-rid-of-deleted-documents/113330)

<div class="topic-metadata">

**Author:** [@hgfxng](https://discuss.elastic.co/u/hgfxng)\
**Replies:** 0\
**Last updated:** [December 27, 2017, 2:59pm UTC](https://discuss.elastic.co/t/how-to-tune-merging-to-get-rid-of-deleted-documents/113330 "2017-12-27T14:59:51Z")

</div>

Hi, I have a ES 2.4.x cluster that has many indices and some of them have too many docs.deleted. Some even have 80% of docs.count as docs.deleted. This looks like ES is not keeping up with enough merges to cleanup dele…

---

## [Stopping elasticsearch, failed to delete river on stop](https://discuss.elastic.co/t/stopping-elasticsearch-failed-to-delete-river-on-stop/112778)

<div class="topic-metadata">

**Author:** [@magik092](https://discuss.elastic.co/u/magik092)\
**Replies:** 2\
**Last updated:** [December 27, 2017, 2:24pm UTC](https://discuss.elastic.co/t/stopping-elasticsearch-failed-to-delete-river-on-stop/112778 "2017-12-27T14:24:01Z")

</div>

In last days I change owner of elasticsearch dictionary from "user2" to "user1" (located in /home/user1, all time). After kill old ES process and start script as user1, after few minutes script shutdown without (in my op…

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

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