# Elasticsearch

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

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

**Page:** 420

---

## [Complex Proximity/Nested/exact-match Queries in Elasticsearch](https://discuss.elastic.co/t/complex-proximity-nested-exact-match-queries-in-elasticsearch/307998)

<div class="topic-metadata">

**Author:** [@jaivikram](https://discuss.elastic.co/u/jaivikram)\
**Replies:** 0\
**Last updated:** [June 23, 2022, 11:33am UTC](https://discuss.elastic.co/t/complex-proximity-nested-exact-match-queries-in-elasticsearch/307998 "2022-06-23T11:33:34Z")

</div>

I am looking for proximity (and nested proximity as well) between multiple hetrogeneous groups By hetrogeneous I mean the token in the groups can be: term and term term and phrase phrase and phrase term and wildcard p…

---

## [Collapse, Term Aggregation, Grouping](https://discuss.elastic.co/t/collapse-term-aggregation-grouping/307993)

<div class="topic-metadata">

**Author:** [@dev\_test](https://discuss.elastic.co/u/dev_test)\
**Replies:** 0\
**Last updated:** [June 23, 2022, 11:01am UTC](https://discuss.elastic.co/t/collapse-term-aggregation-grouping/307993 "2022-06-23T11:01:33Z")

</div>

Hi there, I am using elasticsearch 7.17 and trying to group result on some field Here is the query which i am trying to run GET content-data/\_search { "\_source": false, "query": { "bool": { "should": \[ …

---

## [Elasticsearch not starting](https://discuss.elastic.co/t/elasticsearch-not-starting/307984)

<div class="topic-metadata">

**Author:** [@Ram3](https://discuss.elastic.co/u/Ram3)\
**Replies:** 2\
**Last updated:** [June 23, 2022, 10:59am UTC](https://discuss.elastic.co/t/elasticsearch-not-starting/307984 "2022-06-23T10:59:02Z")

</div>

Hello Everyone so I am very new to elasticsearch and I don't know How it work I had installed it and was working but suddenly today the clients told me that it is not working. I have made sure all the ownership is good …

---

## [Disk space of ELK](https://discuss.elastic.co/t/disk-space-of-elk/307977)

<div class="topic-metadata">

**Author:** [@Gaurav\_kr](https://discuss.elastic.co/u/Gaurav_kr)\
**Replies:** 1\
**Last updated:** [June 23, 2022, 10:36am UTC](https://discuss.elastic.co/t/disk-space-of-elk/307977 "2022-06-23T10:36:38Z")

</div>

Hi All, I using docker images for elasticsearch and kinbana on Linux host. And i have limited disk space to manage, so I am using ILM and SLM to delete the old indices so that disk space never reached to threshold. Bu…

---

## [Elasticsearch and NestJs multi cluster](https://discuss.elastic.co/t/elasticsearch-and-nestjs-multi-cluster/307989)

<div class="topic-metadata">

**Author:** [@meyer1](https://discuss.elastic.co/u/meyer1)\
**Replies:** 0\
**Last updated:** [June 23, 2022, 10:23am UTC](https://discuss.elastic.co/t/elasticsearch-and-nestjs-multi-cluster/307989 "2022-06-23T10:23:41Z")

</div>

Hello everyone, I have a small problem I want to produce an elasticsearch via an app NestJs. I have 3 hosts but I don't know how to configure my "search.module" "search.providers" and "search.service". Should I do someth…

---

## [Is Pipeline able to enrich data with a field of another line in same index?](https://discuss.elastic.co/t/is-pipeline-able-to-enrich-data-with-a-field-of-another-line-in-same-index/307988)

<div class="topic-metadata">

**Author:** [@Sebastien\_Taniere](https://discuss.elastic.co/u/Sebastien_Taniere)\
**Replies:** 0\
**Last updated:** [June 23, 2022, 10:22am UTC](https://discuss.elastic.co/t/is-pipeline-able-to-enrich-data-with-a-field-of-another-line-in-same-index/307988 "2022-06-23T10:22:17Z")

</div>

Hello, I have to ingest this type of data : \[2022-06-23 12:11:53 INF\] \[Env=\] \[Depot=\] \[Activity=\] \[RequestId=0HMIJARNNC6FT:00000002\] Request finished HTTP/1.1 GET http://xxxx.yyyy:5000/api/Weight/GetPickLineSupportWeig…

---

## [Dashboard Snapshot](https://discuss.elastic.co/t/dashboard-snapshot/307986)

<div class="topic-metadata">

**Author:** [@Gaurav\_kr](https://discuss.elastic.co/u/Gaurav_kr)\
**Replies:** 0\
**Last updated:** [June 23, 2022, 10:17am UTC](https://discuss.elastic.co/t/dashboard-snapshot/307986 "2022-06-23T10:17:33Z")

</div>

Hi All, I have created some dashboards and wanted to add in the beats package path kibana/7/dashboard but as we know the dashboard created on elk is exported in .ndjson format and if I put the .ndjson dashboard in beats…

---

## [Nodes getting removed often from the cluster](https://discuss.elastic.co/t/nodes-getting-removed-often-from-the-cluster/307956)

<div class="topic-metadata">

**Author:** [@Giuliano\_Drago](https://discuss.elastic.co/u/Giuliano_Drago)\
**Replies:** 4\
**Last updated:** [June 23, 2022, 9:39am UTC](https://discuss.elastic.co/t/nodes-getting-removed-often-from-the-cluster/307956 "2022-06-23T09:39:13Z")

</div>

hello, I have a couple of clusters running: es 6.8.21 es 5.6.16 the machines are Ubuntu VMs and are continuously showing these error in the logs: \[2022-06-23T09:08:46,082\]\[INFO \]\[o.e.c.s.ClusterApplierService\] \[serve…

---

## [Bug? "Could not communicate with the node... from the enrollment token."](https://discuss.elastic.co/t/bug-could-not-communicate-with-the-node-from-the-enrollment-token/306189)

<div class="topic-metadata">

**Author:** [@smm](https://discuss.elastic.co/u/smm)\
**Replies:** 7\
**Last updated:** [June 23, 2022, 8:57am UTC](https://discuss.elastic.co/t/bug-could-not-communicate-with-the-node-from-the-enrollment-token/306189 "2022-06-23T08:57:01Z")

</div>

Hi there, I am making my first steps in Elasticsearch 8.x coming from 7.x. On 2 local virtual box nodes I would like to test / to understand the procedure of how I can let join a second Elasticsearch node to an already…

---

## [Aggregate on field value](https://discuss.elastic.co/t/aggregate-on-field-value/307968)

<div class="topic-metadata">

**Author:** [@zoriax](https://discuss.elastic.co/u/zoriax)\
**Replies:** 0\
**Last updated:** [June 23, 2022, 8:56am UTC](https://discuss.elastic.co/t/aggregate-on-field-value/307968 "2022-06-23T08:56:28Z")

</div>

Hello, I'm new on this forum and I need your help :slight\_smile: I'm looking for a we to "aggregate" values on a field. Let me explain what I'm looking for : I have documents with this kind of fields : { "\_id" : "1…

---

## [Tokens offset issue](https://discuss.elastic.co/t/tokens-offset-issue/307737)

<div class="topic-metadata">

**Author:** [@itaydvir](https://discuss.elastic.co/u/itaydvir)\
**Replies:** 1\
**Last updated:** [June 23, 2022, 8:50am UTC](https://discuss.elastic.co/t/tokens-offset-issue/307737 "2022-06-23T08:50:34Z")

</div>

Hello, I'm upgrading from Elastic 6.8.1 to 7.8.1 (tested on 8.2.3 as well) and getting the following error: startOffset must be non-negative, and endOffset must be \>= startOffset, and offsets must not go backwards I…

---

## [How to identiry duplicates and delete it in index](https://discuss.elastic.co/t/how-to-identiry-duplicates-and-delete-it-in-index/307830)

<div class="topic-metadata">

**Author:** [@Naga\_Prudhvi](https://discuss.elastic.co/u/Naga_Prudhvi)\
**Replies:** 6\
**Last updated:** [June 23, 2022, 7:12am UTC](https://discuss.elastic.co/t/how-to-identiry-duplicates-and-delete-it-in-index/307830 "2022-06-23T07:12:42Z")

</div>

we are using elasticsearch 7.11.1 recently we observed an issue and below are the points for it. we store data for every 15 mins interval and we get time stamp from our input file (ex: 05:00, 23:15, 20:30, 11:45 ) r…

---

## [Elasticsearch is not installed in my laptop](https://discuss.elastic.co/t/elasticsearch-is-not-installed-in-my-laptop/307941)

<div class="topic-metadata">

**Author:** [@Talha\_Naeem](https://discuss.elastic.co/u/Talha_Naeem)\
**Replies:** 12\
**Last updated:** [June 23, 2022, 6:52am UTC](https://discuss.elastic.co/t/elasticsearch-is-not-installed-in-my-laptop/307941 "2022-06-23T06:52:03Z")

</div>

---

## [Is there a guide as to how to upgrade old MSI installations?](https://discuss.elastic.co/t/is-there-a-guide-as-to-how-to-upgrade-old-msi-installations/307254)

<div class="topic-metadata">

**Author:** [@runegronkjaer](https://discuss.elastic.co/u/runegronkjaer)\
**Replies:** 1\
**Last updated:** [June 23, 2022, 6:37am UTC](https://discuss.elastic.co/t/is-there-a-guide-as-to-how-to-upgrade-old-msi-installations/307254 "2022-06-23T06:37:47Z")

</div>

Is there a guide as to how to upgrade old MSI installations? That was so easy that the manual installation process seems super complicated in comparison. /Rune

---

## [While trying to Close Indices ElasticSearch gives error "Object reference not set to an instance of an object."](https://discuss.elastic.co/t/while-trying-to-close-indices-elasticsearch-gives-error-object-reference-not-set-to-an-instance-of-an-object/307844)

<div class="topic-metadata">

**Author:** [@EVINDX](https://discuss.elastic.co/u/EVINDX)\
**Replies:** 1\
**Last updated:** [June 23, 2022, 6:12am UTC](https://discuss.elastic.co/t/while-trying-to-close-indices-elasticsearch-gives-error-object-reference-not-set-to-an-instance-of-an-object/307844 "2022-06-23T06:12:16Z")

</div>

I am trying to close the indices using the POST cmd localhost:9200/\_all/\_close But I am receiving this exception from Elasticsearch. Exception: 'Elasticsearch 'Indices.Close' API failed due to error 'Object reference …

---

## [How do I fix TLS Error when connecting with Python Client?](https://discuss.elastic.co/t/how-do-i-fix-tls-error-when-connecting-with-python-client/307916)

<div class="topic-metadata">

**Author:** [@DataStorageMuse](https://discuss.elastic.co/u/DataStorageMuse)\
**Replies:** 2\
**Last updated:** [June 23, 2022, 6:09am UTC](https://discuss.elastic.co/t/how-do-i-fix-tls-error-when-connecting-with-python-client/307916 "2022-06-23T06:09:58Z")

</div>

When I try to connect to Elasticsearch with Python Client, I get this error: elastic\_transport.TlsError: TLS error caused by: TlsError(TLS error caused by: SSLError(\[SSL: WRONG\_VERSION\_NUMBER\] wrong version number (\_ssl.…

---

## [How do I fix TLS Error when connecting with Python?](https://discuss.elastic.co/t/how-do-i-fix-tls-error-when-connecting-with-python/307922)

<div class="topic-metadata">

**Author:** [@DataStorageMuse](https://discuss.elastic.co/u/DataStorageMuse)\
**Replies:** 1\
**Last updated:** [June 23, 2022, 6:08am UTC](https://discuss.elastic.co/t/how-do-i-fix-tls-error-when-connecting-with-python/307922 "2022-06-23T06:08:09Z")

</div>

When I try to connect to Elasticsearch with Python Client, I get this error: elastic\_transport.TlsError: TLS error caused by: TlsError(TLS error caused by: SSLError(\[SSL: WRONG\_VERSION\_NUMBER\] wrong version number (\_ssl.…

---

## [How do I upgrade old MSI installations?](https://discuss.elastic.co/t/how-do-i-upgrade-old-msi-installations/307942)

<div class="topic-metadata">

**Author:** [@runegronkjaer](https://discuss.elastic.co/u/runegronkjaer)\
**Replies:** 1\
**Last updated:** [June 23, 2022, 6:06am UTC](https://discuss.elastic.co/t/how-do-i-upgrade-old-msi-installations/307942 "2022-06-23T06:06:14Z")

</div>

EDIT: As this topic was closed by @warkolm I cannot reply to his comment and must update. So this means that noone in the entire world knows how to update an elastic instance on windows? How do I upgrade an old v7 msi…

---

## [Why I'm getting 0 results when fuzziness is more than 2?](https://discuss.elastic.co/t/why-im-getting-0-results-when-fuzziness-is-more-than-2/307883)

<div class="topic-metadata">

**Author:** [@asil](https://discuss.elastic.co/u/asil)\
**Replies:** 1\
**Last updated:** [June 22, 2022, 1:31pm UTC](https://discuss.elastic.co/t/why-im-getting-0-results-when-fuzziness-is-more-than-2/307883 "2022-06-22T13:31:13Z")

</div>

I'm using elastic search 7.6.2 I have index with the following mapping: "mappings": { "properties": { "content": {"type": "text"}, } } with 3 documents: michae…

---

## [Deleting duplicates in index using API query](https://discuss.elastic.co/t/deleting-duplicates-in-index-using-api-query/307945)

<div class="topic-metadata">

**Author:** [@Naga\_Prudhvi](https://discuss.elastic.co/u/Naga_Prudhvi)\
**Replies:** 1\
**Last updated:** [June 23, 2022, 5:47am UTC](https://discuss.elastic.co/t/deleting-duplicates-in-index-using-api-query/307945 "2022-06-23T05:47:26Z")

</div>

I an in search of a query to to delete the duplicates for below example index data: name product sale id sai pen 100 1 kumar car 30 2 sai pen 100 1 sai pen 100 1 ram bike 288 3 kumar car 30 2 After deleting dup…

---

## [Duplicates in ElasticSearch when using ILM Rollover](https://discuss.elastic.co/t/duplicates-in-elasticsearch-when-using-ilm-rollover/307910)

<div class="topic-metadata">

**Author:** [@Troy571](https://discuss.elastic.co/u/Troy571)\
**Replies:** 1\
**Last updated:** [June 23, 2022, 2:14am UTC](https://discuss.elastic.co/t/duplicates-in-elasticsearch-when-using-ilm-rollover/307910 "2022-06-23T02:14:28Z")

</div>

I have read two other posts related to this but I still have not found a solution to my issue. I am ingesting large amounts of data and the ingestion rate is unpredictable. I have implemented ILM policies to rollover an …

---

## [Sort MLT query results: spark + scala](https://discuss.elastic.co/t/sort-mlt-query-results-spark-scala/307782)

<div class="topic-metadata">

**Author:** [@nobre0](https://discuss.elastic.co/u/nobre0)\
**Replies:** 2\
**Last updated:** [June 22, 2022, 8:59pm UTC](https://discuss.elastic.co/t/sort-mlt-query-results-spark-scala/307782 "2022-06-22T20:59:02Z")

</div>

Hi, I'm trying to run the 'More Like This' (MLT) query using the apache spark connector. The problem is that the result is not sorted by computed MLT score. I think it is related to the sort=\_doc parameter added in the…

---

## [Update CA and server certs and also add couple more cold servers](https://discuss.elastic.co/t/update-ca-and-server-certs-and-also-add-couple-more-cold-servers/307906)

<div class="topic-metadata">

**Author:** [@adityak248](https://discuss.elastic.co/u/adityak248)\
**Replies:** 1\
**Last updated:** [June 22, 2022, 8:17pm UTC](https://discuss.elastic.co/t/update-ca-and-server-certs-and-also-add-couple-more-cold-servers/307906 "2022-06-22T20:17:57Z")

</div>

Hello Team, I am looking for answers to 2 major questions. I have used below link to setup my entire stack in production and everything looks fine so far. https://www.elastic.co/guide/en/elastic-stack-get-started/7.1…

---

## [Elastic-Spark connector : How to read data fro ES Index which has nested Json with array fields](https://discuss.elastic.co/t/elastic-spark-connector-how-to-read-data-fro-es-index-which-has-nested-json-with-array-fields/307803)

<div class="topic-metadata">

**Author:** [@musku](https://discuss.elastic.co/u/musku)\
**Replies:** 1\
**Last updated:** [June 22, 2022, 7:59pm UTC](https://discuss.elastic.co/t/elastic-spark-connector-how-to-read-data-fro-es-index-which-has-nested-json-with-array-fields/307803 "2022-06-22T19:59:32Z")

</div>

I have use case where I have same filed names in Json inside array fields as below. I have included "es.read.field.as.array.include" : distrChan.Notifications.OfferNtfy.AId , distrChan.Notifications.OfferNtfy.EId while …

---

## [Unable to send logs to elasticsearch due to max\_bytes\_length\_exceeded\_exception](https://discuss.elastic.co/t/unable-to-send-logs-to-elasticsearch-due-to-max-bytes-length-exceeded-exception/307892)

<div class="topic-metadata">

**Author:** [@Gihan\_Indrajith](https://discuss.elastic.co/u/Gihan_Indrajith)\
**Replies:** 1\
**Last updated:** [June 22, 2022, 5:50pm UTC](https://discuss.elastic.co/t/unable-to-send-logs-to-elasticsearch-due-to-max-bytes-length-exceeded-exception/307892 "2022-06-22T17:50:00Z")

</div>

Observing below log in Fluentd with max\_bytes\_length\_exceeded\_exception. Please help to identify the root cause and fix 2022-06-22 22:18:30 +0800 \[error\]: #0 Could not push log to Elasticsearch: {"took"=\>30, "errors"=\>t…

---

## [How do I fix TLS Error when connecting with Python Client?](https://discuss.elastic.co/t/how-do-i-fix-tls-error-when-connecting-with-python-client/307907)

<div class="topic-metadata">

**Author:** [@DataStorageMuse](https://discuss.elastic.co/u/DataStorageMuse)\
**Replies:** 0\
**Last updated:** [June 22, 2022, 5:49pm UTC](https://discuss.elastic.co/t/how-do-i-fix-tls-error-when-connecting-with-python-client/307907 "2022-06-22T17:49:58Z")

</div>

When I try to connect to Elasticsearch with Python Client, I get this error: elastic\_transport.TlsError: TLS error caused by: TlsError(TLS error caused by: SSLError(\[SSL: WRONG\_VERSION\_NUMBER\] wrong version number (\_ssl.…

---

## [Data is not parsed correctly from Logstash to Elasticsearch](https://discuss.elastic.co/t/data-is-not-parsed-correctly-from-logstash-to-elasticsearch/307251)

<div class="topic-metadata">

**Author:** [@jh197](https://discuss.elastic.co/u/jh197)\
**Replies:** 1\
**Last updated:** [June 22, 2022, 4:37pm UTC](https://discuss.elastic.co/t/data-is-not-parsed-correctly-from-logstash-to-elasticsearch/307251 "2022-06-22T16:37:37Z")

</div>

Hello, hopefully someone can help me. The big problem is, that I can't see the data in Elasticsearch with Kibana, which I am inserting with Filebeat and Logstash. I think the main issue has to be between the Logstash an…

---

## [Another method or way to not close indexes during Restore](https://discuss.elastic.co/t/another-method-or-way-to-not-close-indexes-during-restore/307897)

<div class="topic-metadata">

**Author:** [@wonderland14](https://discuss.elastic.co/u/wonderland14)\
**Replies:** 1\
**Last updated:** [June 22, 2022, 4:21pm UTC](https://discuss.elastic.co/t/another-method-or-way-to-not-close-indexes-during-restore/307897 "2022-06-22T16:21:48Z")

</div>

Good day, ! Just want to ask for help/assistance to an issue during our testing from the Snapshot and Restore. During Restoration of the Snapshot, it keeps on asking us to close or delete the index because it has the sa…

---

## [How to secure elasticsearch on kubernetes](https://discuss.elastic.co/t/how-to-secure-elasticsearch-on-kubernetes/306570)

<div class="topic-metadata">

**Author:** [@jessewhite](https://discuss.elastic.co/u/jessewhite)\
**Replies:** 3\
**Last updated:** [June 22, 2022, 4:09pm UTC](https://discuss.elastic.co/t/how-to-secure-elasticsearch-on-kubernetes/306570 "2022-06-22T16:09:20Z")

</div>

Hello, i have ELK deployed on a k8s cluster with helm charts. i wanted to add security to Elasticsearch so i can add users and control the access. but since i'm new to ELK i didn't know how or i found a good solution fo…

---

## [Snapshot and Restore](https://discuss.elastic.co/t/snapshot-and-restore/306938)

<div class="topic-metadata">

**Author:** [@wonderland14](https://discuss.elastic.co/u/wonderland14)\
**Replies:** 4\
**Last updated:** [June 22, 2022, 3:44pm UTC](https://discuss.elastic.co/t/snapshot-and-restore/306938 "2022-06-22T15:44:10Z")

</div>

Hello Everyone, I have a few questions that get me confused while doing Snapshot and Restore. I keep on searching it on the internet but I don't get any sense from it, its not helping me. For those who experienced kindly…

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

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