# Elasticsearch

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

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

**Page:** 320

---

## [PHP Client 8.5 Not Response Data](https://discuss.elastic.co/t/php-client-8-5-not-response-data/322670)

<div class="topic-metadata">

**Author:** [@vcamargo](https://discuss.elastic.co/u/vcamargo)\
**Replies:** 1\
**Last updated:** [January 9, 2023, 12:07am UTC](https://discuss.elastic.co/t/php-client-8-5-not-response-data/322670 "2023-01-09T00:07:05Z")

</div>

When try request do elastic using php client response it's returning always null, I've try using "search", "get" methodos and not working, when a try use postman request it's working, sample code below Request Status Co…

---

## [Why elasticsearch search query (when you inspect)on date is different from kibana query on date?](https://discuss.elastic.co/t/why-elasticsearch-search-query-when-you-inspect-on-date-is-different-from-kibana-query-on-date/322676)

<div class="topic-metadata">

**Author:** [@alex\_petrov](https://discuss.elastic.co/u/alex_petrov)\
**Replies:** 4\
**Last updated:** [January 8, 2023, 11:23am UTC](https://discuss.elastic.co/t/why-elasticsearch-search-query-when-you-inspect-on-date-is-different-from-kibana-query-on-date/322676 "2023-01-08T11:23:27Z")

</div>

I used date as a field in kibana as shown below and date is between Oct 15, 2022 @ 00:00:00.000 - Oct 16, 2022 @ 00:00:00.000 why it is different from elasticsearch query when you inspect(as shown below)?

---

## [How to encrypt Elasticsearch data path](https://discuss.elastic.co/t/how-to-encrypt-elasticsearch-data-path/322562)

<div class="topic-metadata">

**Author:** [@Naga\_Prudhvi](https://discuss.elastic.co/u/Naga_Prudhvi)\
**Replies:** 3\
**Last updated:** [January 8, 2023, 6:21am UTC](https://discuss.elastic.co/t/how-to-encrypt-elasticsearch-data-path/322562 "2023-01-08T06:21:55Z")

</div>

I want to perform dm-crypt encryption at rest for all data path for Elasticsearch but it should be searchable if I try to access data from hadoop/spark/kibana. Any ideas on this would be very appreciated.

---

## [Can ES single node use index lifecycle management(ILM)?](https://discuss.elastic.co/t/can-es-single-node-use-index-lifecycle-management-ilm/322664)

<div class="topic-metadata">

**Author:** [@jacksparrow414](https://discuss.elastic.co/u/jacksparrow414)\
**Replies:** 2\
**Last updated:** [January 8, 2023, 2:06am UTC](https://discuss.elastic.co/t/can-es-single-node-use-index-lifecycle-management-ilm/322664 "2023-01-08T02:06:56Z")

</div>

I checked the official documentation, which only mentioned clusters, I wonder if a single node supports ILM? According to my understanding, a single-node ES has all node roles and all data tiers, so it should support IL…

---

## [Security troubles - java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors (ca.crt matches on all nodes)](https://discuss.elastic.co/t/security-troubles-java-security-cert-certpathvalidatorexception-path-does-not-chain-with-any-of-the-trust-anchors-ca-crt-matches-on-all-nodes/322674)

<div class="topic-metadata">

**Author:** [@emoon](https://discuss.elastic.co/u/emoon)\
**Replies:** 1\
**Last updated:** [January 8, 2023, 1:23am UTC](https://discuss.elastic.co/t/security-troubles-java-security-cert-certpathvalidatorexception-path-does-not-chain-with-any-of-the-trust-anchors-ca-crt-matches-on-all-nodes/322674 "2023-01-08T01:23:01Z")

</div>

Note that this entire cluster was working fine up 'til I updated certificates. I'm on Elasticsearch 7.5. I updated my certificates using the certificate-util - created a server.yml with all my servers and the Kibana nod…

---

## [After 6.8 -\> 7.17 upgrade, logstash not sending data to logstash-\* indexes](https://discuss.elastic.co/t/after-6-8-7-17-upgrade-logstash-not-sending-data-to-logstash-indexes/322479)

<div class="topic-metadata">

**Author:** [@willdennis](https://discuss.elastic.co/u/willdennis)\
**Replies:** 7\
**Last updated:** [January 7, 2023, 4:45pm UTC](https://discuss.elastic.co/t/after-6-8-7-17-upgrade-logstash-not-sending-data-to-logstash-indexes/322479 "2023-01-07T16:45:48Z")

</div>

Hi all, Did an upgrade to my single-node cluster yesterday evening, now up on 7.17.8 and everything's basically working, except that it seems that Logstash is no longer creating logstash-\<YYYY.MM.DD\> indexes... I see th…

---

## [Pagination on composite aggregation](https://discuss.elastic.co/t/pagination-on-composite-aggregation/322667)

<div class="topic-metadata">

**Author:** [@hmkhitaryan](https://discuss.elastic.co/u/hmkhitaryan)\
**Replies:** 0\
**Last updated:** [January 7, 2023, 3:25pm UTC](https://discuss.elastic.co/t/pagination-on-composite-aggregation/322667 "2023-01-07T15:25:38Z")

</div>

Hi. I'm having such kind of problem on defining composite aggregation for paginating the results. CompositeAggregationBuilder aggregationBuilder = AggregationBuilders .composite(aggrField, List.of(ne…

---

## [Elasticsearch not starting, with no errors in the logs](https://discuss.elastic.co/t/elasticsearch-not-starting-with-no-errors-in-the-logs/322660)

<div class="topic-metadata">

**Author:** [@sphawk](https://discuss.elastic.co/u/sphawk)\
**Replies:** 3\
**Last updated:** [January 7, 2023, 11:29am UTC](https://discuss.elastic.co/t/elasticsearch-not-starting-with-no-errors-in-the-logs/322660 "2023-01-07T11:29:34Z")

</div>

I've updated debian to buster version without no problem and today I've tried to update ES to 8.5 version. Bad idea (some Java problem) so I've reinstalled previous version (6.x) but ES still not starting. service elas…

---

## [Upgraded first node from 7.17.5 to 8.4. Won't start, claiming there is a 6.4.5 index, but I can't find it](https://discuss.elastic.co/t/upgraded-first-node-from-7-17-5-to-8-4-wont-start-claiming-there-is-a-6-4-5-index-but-i-cant-find-it/317811)

<div class="topic-metadata">

**Author:** [@Brett\_C](https://discuss.elastic.co/u/Brett_C)\
**Replies:** 11\
**Last updated:** [January 7, 2023, 10:57am UTC](https://discuss.elastic.co/t/upgraded-first-node-from-7-17-5-to-8-4-wont-start-claiming-there-is-a-6-4-5-index-but-i-cant-find-it/317811 "2023-01-07T10:57:10Z")

</div>

Hi Everyone, I have just started upgrading my cluster from 7.17.5 to 8.4. I completed the first node, but when I went to start the service, it complained that: \[2022-10-31T17:08:08,683\]\[ERROR\]\[o.e.b.Elasticsearch \]…

---

## [Get all value for a field with the JAVA API](https://discuss.elastic.co/t/get-all-value-for-a-field-with-the-java-api/322566)

<div class="topic-metadata">

**Author:** [@Dorian](https://discuss.elastic.co/u/Dorian)\
**Replies:** 5\
**Last updated:** [January 6, 2023, 6:19pm UTC](https://discuss.elastic.co/t/get-all-value-for-a-field-with-the-java-api/322566 "2023-01-06T18:19:21Z")

</div>

Hello, How can i get all the value that correspond to a specific field ? For example i want all the existing value for the field "affaireName", check the exemple below : SearchRequest request = SearchRequest.of(a -\> a…

---

## [Flattened fields vs subobjects=false](https://discuss.elastic.co/t/flattened-fields-vs-subobjects-false/322631)

<div class="topic-metadata">

**Author:** [@bdentino](https://discuss.elastic.co/u/bdentino)\
**Replies:** 0\
**Last updated:** [January 6, 2023, 4:45pm UTC](https://discuss.elastic.co/t/flattened-fields-vs-subobjects-false/322631 "2023-01-06T16:45:43Z")

</div>

Hi everyone, Can someone help me understand the fundamental differences between a 'flattened' field type and an 'object' field type with subobjects=false? AIUI, everything under a 'flattened' object is indexed as a keyw…

---

## [Using two date ranges in one Watcher](https://discuss.elastic.co/t/using-two-date-ranges-in-one-watcher/322554)

<div class="topic-metadata">

**Author:** [@mariusk](https://discuss.elastic.co/u/mariusk)\
**Replies:** 3\
**Last updated:** [January 6, 2023, 3:26pm UTC](https://discuss.elastic.co/t/using-two-date-ranges-in-one-watcher/322554 "2023-01-06T15:26:24Z")

</div>

I have a group of indices (tracking-v1-\*) containing documents representing parts of a fibre optic network (one document per day and construction crew). I want to create a Watcher that generates a daily report, showing t…

---

## [Block certain strings from ingestion](https://discuss.elastic.co/t/block-certain-strings-from-ingestion/322326)

<div class="topic-metadata">

**Author:** [@rahul\_sirugudi](https://discuss.elastic.co/u/rahul_sirugudi)\
**Replies:** 6\
**Last updated:** [January 6, 2023, 1:36pm UTC](https://discuss.elastic.co/t/block-certain-strings-from-ingestion/322326 "2023-01-06T13:36:01Z")

</div>

Hi, There are few back end applications which depend/listen to queues, if there are no messages in queue it will print as INFO level logs "NO MESSAGES AVAILABLE in queue". Is there a way where i can block this particula…

---

## [Can not create new index , Client request timeout (502)](https://discuss.elastic.co/t/can-not-create-new-index-client-request-timeout-502/322516)

<div class="topic-metadata">

**Author:** [@Madushan\_Pathirana](https://discuss.elastic.co/u/Madushan_Pathirana)\
**Replies:** 3\
**Last updated:** [January 6, 2023, 8:04am UTC](https://discuss.elastic.co/t/can-not-create-new-index-client-request-timeout-502/322516 "2023-01-06T08:04:07Z")

</div>

Hi, elasticsearch worked fine when I install it first. After two weeks, now when I try to create new index it return below error PUT customer response {"statusCode":502,"error":"Bad Gateway","message":"Client request …

---

## [I want to dissable depriciated TLSv1.0 and tlsv1.1](https://discuss.elastic.co/t/i-want-to-dissable-depriciated-tlsv1-0-and-tlsv1-1/321609)

<div class="topic-metadata">

**Author:** [@udittiwari](https://discuss.elastic.co/u/udittiwari)\
**Replies:** 3\
**Last updated:** [January 6, 2023, 7:55am UTC](https://discuss.elastic.co/t/i-want-to-dissable-depriciated-tlsv1-0-and-tlsv1-1/321609 "2023-01-06T07:55:00Z")

</div>

How can i dissable the depriciated TLS in my server? its urgent can some one help?

---

## [Queries not working with node js](https://discuss.elastic.co/t/queries-not-working-with-node-js/322590)

<div class="topic-metadata">

**Author:** [@Hemabh\_Ravee\_Fox](https://discuss.elastic.co/u/Hemabh_Ravee_Fox)\
**Replies:** 0\
**Last updated:** [January 6, 2023, 5:52am UTC](https://discuss.elastic.co/t/queries-not-working-with-node-js/322590 "2023-01-06T05:52:24Z")

</div>

I am using the following query to get the total unique values for the field website - GET events\_test2/\_search { "size": 0, "aggs": { "unique\_websites": { "terms": { "field": "website", "si…

---

## [Unable to connect Elastic Cloud to my python(FastApi) app](https://discuss.elastic.co/t/unable-to-connect-elastic-cloud-to-my-python-fastapi-app/322589)

<div class="topic-metadata">

**Author:** [@Dhruv\_Extra](https://discuss.elastic.co/u/Dhruv_Extra)\
**Replies:** 0\
**Last updated:** [January 6, 2023, 5:43am UTC](https://discuss.elastic.co/t/unable-to-connect-elastic-cloud-to-my-python-fastapi-app/322589 "2023-01-06T05:43:02Z")

</div>

Here's my code: from elasticsearch import Elasticsearch es = Elasticsearch( cloud\_id="cluster-1:dXMa5Fx...", http\_auth=("elastic", "\<password\>"), ) es.info() #or from elasticsearch import Elasticsearch es = …

---

## [Field from logs](https://discuss.elastic.co/t/field-from-logs/322476)

<div class="topic-metadata">

**Author:** [@MrMartin1](https://discuss.elastic.co/u/MrMartin1)\
**Replies:** 1\
**Last updated:** [January 5, 2023, 11:32pm UTC](https://discuss.elastic.co/t/field-from-logs/322476 "2023-01-05T23:32:55Z")

</div>

Hi! I'm new to elasticsearch and have recently setup elastic, kibana and filebeat and manage to receive logs from a Cisco device. Now i have a question if it's possible to parse specific value from the message, like "P…

---

## [How to change security index's replica shard count?](https://discuss.elastic.co/t/how-to-change-security-indexs-replica-shard-count/322558)

<div class="topic-metadata">

**Author:** [@bulent](https://discuss.elastic.co/u/bulent)\
**Replies:** 1\
**Last updated:** [January 5, 2023, 10:16pm UTC](https://discuss.elastic.co/t/how-to-change-security-indexs-replica-shard-count/322558 "2023-01-05T22:16:53Z")

</div>

Hi; I am trying to increase replica count of security index by using superuser ( elastic) like below curl -X PUT 'http://\*\*\*\*\*\*\*\*\*\*\*\*\*\*:9212/.security-7/\_settings' -H 'Authorization: Basic \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*' -H 'Co…

---

## [Cold Tier ILM auto restore](https://discuss.elastic.co/t/cold-tier-ilm-auto-restore/322574)

<div class="topic-metadata">

**Author:** [@Safty](https://discuss.elastic.co/u/Safty)\
**Replies:** 1\
**Last updated:** [January 5, 2023, 8:27pm UTC](https://discuss.elastic.co/t/cold-tier-ilm-auto-restore/322574 "2023-01-05T20:27:06Z")

</div>

I have been working with cold tier ILM policies and noticed that as soon as the data is written to the cold tier as a snapshot it is immediately restored to local cache. No searches are taking place, this is during the …

---

## [You cannot specify a keystore and key file](https://discuss.elastic.co/t/you-cannot-specify-a-keystore-and-key-file/322561)

<div class="topic-metadata">

**Author:** [@cawoodm](https://discuss.elastic.co/u/cawoodm)\
**Replies:** 1\
**Last updated:** [January 5, 2023, 4:46pm UTC](https://discuss.elastic.co/t/you-cannot-specify-a-keystore-and-key-file/322561 "2023-01-05T16:46:08Z")

</div>

Trying to get Elasticsearch 7.13 to run in Kubernetes with security enabled via the official helm chart. The error is elasticsearch java.lang.IllegalArgumentException: you cannot specify a keystore and key file. What do…

---

## [Setting the verification\_mode to none - What about Kibanas using HTTPS?](https://discuss.elastic.co/t/setting-the-verification-mode-to-none-what-about-kibanas-using-https/321719)

<div class="topic-metadata">

**Author:** [@smm](https://discuss.elastic.co/u/smm)\
**Replies:** 1\
**Last updated:** [January 5, 2023, 4:09pm UTC](https://discuss.elastic.co/t/setting-the-verification-mode-to-none-what-about-kibanas-using-https/321719 "2023-01-05T16:09:46Z")

</div>

Dear Community, due to certifiactes going to get invalid, I have to activate this setting in one of my secured production servers: verification\_mode to none My Question is: Once activated this setting (by restarting a…

---

## [Windows Local Magento Installation Elastic Search Unknown 503 error from Elasticsearch null](https://discuss.elastic.co/t/windows-local-magento-installation-elastic-search-unknown-503-error-from-elasticsearch-null/322174)

<div class="topic-metadata">

**Author:** [@kumar2023](https://discuss.elastic.co/u/kumar2023)\
**Replies:** 9\
**Last updated:** [January 5, 2023, 3:42pm UTC](https://discuss.elastic.co/t/windows-local-magento-installation-elastic-search-unknown-503-error-from-elasticsearch-null/322174 "2023-01-05T15:42:35Z")

</div>

Installed Magento 2.45 in windows 10 local setup. From the admin panel i do see Catalog Search index notification. Actually the notification says "One or more indexers are invalid. Make sure your Magento cron job is run…

---

## [Elasticsearch working with Electronjs](https://discuss.elastic.co/t/elasticsearch-working-with-electronjs/322564)

<div class="topic-metadata">

**Author:** [@Prashant\_Tyagi](https://discuss.elastic.co/u/Prashant_Tyagi)\
**Replies:** 0\
**Last updated:** [January 5, 2023, 3:32pm UTC](https://discuss.elastic.co/t/elasticsearch-working-with-electronjs/322564 "2023-01-05T15:32:51Z")

</div>

Hi Everyone, I developed a Desktop search application with reactjs, nodejs, elasticsearch and docker. This application simply index all the files in your local system and then provides a search box to search the files. …

---

## [How can I add Json-Data to historic index](https://discuss.elastic.co/t/how-can-i-add-json-data-to-historic-index/322457)

<div class="topic-metadata">

**Author:** [@Steven\_Tschache](https://discuss.elastic.co/u/Steven_Tschache)\
**Replies:** 4\
**Last updated:** [January 5, 2023, 2:39pm UTC](https://discuss.elastic.co/t/how-can-i-add-json-data-to-historic-index/322457 "2023-01-05T14:39:23Z")

</div>

We currently are importing data using Logstash. One of the fields ("request") is a JSON stored as a string. We now require a section of this stored JSON as fields in the searchable index. I have updated Logstash filter u…

---

## [Which methods can be used to analyze and improve data?](https://discuss.elastic.co/t/which-methods-can-be-used-to-analyze-and-improve-data/322528)

<div class="topic-metadata">

**Author:** [@Henrigo](https://discuss.elastic.co/u/Henrigo)\
**Replies:** 7\
**Last updated:** [January 5, 2023, 12:46pm UTC](https://discuss.elastic.co/t/which-methods-can-be-used-to-analyze-and-improve-data/322528 "2023-01-05T12:46:10Z")

</div>

I'm new to the field and I have a question. Which methods can be used to analyze and improve data?

---

## [Fatal exception while booting Elasticsearch](https://discuss.elastic.co/t/fatal-exception-while-booting-elasticsearch/322390)

<div class="topic-metadata">

**Author:** [@diegz](https://discuss.elastic.co/u/diegz)\
**Replies:** 11\
**Last updated:** [January 5, 2023, 11:45am UTC](https://discuss.elastic.co/t/fatal-exception-while-booting-elasticsearch/322390 "2023-01-05T11:45:14Z")

</div>

Hello, I have 5 nodes under rhel 8.7, the system is hardened so the partitions /var /var/tmp /var/log /home /var/log/audit and /tmp are in noexec I managed to work around the problem on the first two nodes by adding th…

---

## [Warm node is failing to connecting with master node](https://discuss.elastic.co/t/warm-node-is-failing-to-connecting-with-master-node/322522)

<div class="topic-metadata">

**Author:** [@rahul\_sirugudi](https://discuss.elastic.co/u/rahul_sirugudi)\
**Replies:** 1\
**Last updated:** [January 5, 2023, 11:33am UTC](https://discuss.elastic.co/t/warm-node-is-failing-to-connecting-with-master-node/322522 "2023-01-05T11:33:26Z")

</div>

I am migrating single-node cluster to multi node. I have started up with setting up basic security on master node using this link. As mentioned in point 2 i have copied the output file to the warm node and i have saved…

---

## [Security\_exception while Restoring Snapshot | ES 8.3.2](https://discuss.elastic.co/t/security-exception-while-restoring-snapshot-es-8-3-2/322511)

<div class="topic-metadata">

**Author:** [@zeus7](https://discuss.elastic.co/u/zeus7)\
**Replies:** 3\
**Last updated:** [January 5, 2023, 11:24am UTC](https://discuss.elastic.co/t/security-exception-while-restoring-snapshot-es-8-3-2/322511 "2023-01-05T11:24:26Z")

</div>

I m trying to restore snapshot from version 6.2.4 to 8.3.2, getting error : { "error": { "root\_cause": \[ { "type": "security\_exception", "reason": "current license…

---

## [Multiple score fields?](https://discuss.elastic.co/t/multiple-score-fields/322323)

<div class="topic-metadata">

**Author:** [@petrskokan11](https://discuss.elastic.co/u/petrskokan11)\
**Replies:** 1\
**Last updated:** [January 5, 2023, 11:03am UTC](https://discuss.elastic.co/t/multiple-score-fields/322323 "2023-01-05T11:03:50Z")

</div>

Maybe a dummy question: is it possible to have multiple score fields? I use a custom score based on function\_score query. This score is being displayed to the user to show, how much each document matches his/her prefere…

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

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