# Elasticsearch

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

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

**Page:** 139

---

## [Use elastic search inside big database](https://discuss.elastic.co/t/use-elastic-search-inside-big-database/354893)

<div class="topic-metadata">

**Author:** [@vahid\_alvandi](https://discuss.elastic.co/u/vahid_alvandi)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 2:32am UTC](https://discuss.elastic.co/t/use-elastic-search-inside-big-database/354893 "2024-03-07T02:32:29Z")

</div>

Following this link, I have decided to index all the information in elasticsearch in addition to the main database of the site, and then the information displayed to the users of the site will be taken from Elasticsearch…

---

## [Custom classic plugin plugin-security.policy - cannot access external REST](https://discuss.elastic.co/t/custom-classic-plugin-plugin-security-policy-cannot-access-external-rest/354783)

<div class="topic-metadata">

**Author:** [@Steph\_van\_Schalkwyk](https://discuss.elastic.co/u/Steph_van_Schalkwyk)\
**Replies:** 3\
**Last updated:** [March 6, 2024, 10:38pm UTC](https://discuss.elastic.co/t/custom-classic-plugin-plugin-security-policy-cannot-access-external-rest/354783 "2024-03-06T22:38:39Z")

</div>

I have this in my plugin-security.policy: grant { permission java.net.SocketPermission "\*", "connect,resolve,accept,listen"; The file is "picked up" by the plugin installer, as it is warning me about other required p…

---

## [Elasticsearch template confusion](https://discuss.elastic.co/t/elasticsearch-template-confusion/354884)

<div class="topic-metadata">

**Author:** [@eirik](https://discuss.elastic.co/u/eirik)\
**Replies:** 0\
**Last updated:** [March 6, 2024, 9:22pm UTC](https://discuss.elastic.co/t/elasticsearch-template-confusion/354884 "2024-03-06T21:22:00Z")

</div>

I'm new to elasticsearch and have fond some strange behaviour, at least in my opinion. The thing is that I created the index template in the first code example below, and then inserted the test document in the second co…

---

## [Tracking user activity in Elastic Cloud](https://discuss.elastic.co/t/tracking-user-activity-in-elastic-cloud/354535)

<div class="topic-metadata">

**Author:** [@SamuelSMendes](https://discuss.elastic.co/u/SamuelSMendes)\
**Replies:** 3\
**Last updated:** [March 6, 2024, 3:38pm UTC](https://discuss.elastic.co/t/tracking-user-activity-in-elastic-cloud/354535 "2024-03-06T15:38:08Z")

</div>

I need to find a way to track user activity inside the Elastic Cloud. So in case the user hasn't logged in for a certain time we may get a sort of alert about it. So far I've found this auditing article but not only I'm…

---

## [How can I migrate our application's Elasticsearch DB to a Postgresql DB?](https://discuss.elastic.co/t/how-can-i-migrate-our-applications-elasticsearch-db-to-a-postgresql-db/354856)

<div class="topic-metadata">

**Author:** [@Shahrik](https://discuss.elastic.co/u/Shahrik)\
**Replies:** 0\
**Last updated:** [March 6, 2024, 3:34pm UTC](https://discuss.elastic.co/t/how-can-i-migrate-our-applications-elasticsearch-db-to-a-postgresql-db/354856 "2024-03-06T15:34:16Z")

</div>

I have to migrate our web application's Elasticsearch Database to a Postgresql Database. The web application is in AngularJS and the backend is in Nodejs. Our application interacts with our Elasticsearch Database and use…

---

## [ElasticSearch Langchain retreive embedding based on particular threshold](https://discuss.elastic.co/t/elasticsearch-langchain-retreive-embedding-based-on-particular-threshold/354794)

<div class="topic-metadata">

**Author:** [@Tanzeel\_Abbas](https://discuss.elastic.co/u/Tanzeel_Abbas)\
**Replies:** 1\
**Last updated:** [March 6, 2024, 1:38pm UTC](https://discuss.elastic.co/t/elasticsearch-langchain-retreive-embedding-based-on-particular-threshold/354794 "2024-03-06T13:38:11Z")

</div>

why similarity\_score\_threshold is not working. When i changed search\_type to similarity then it is worked but retreiverdocument not based on score threshold. retriever = db.as\_retriever( search\_type="similarity\_score\_t…

---

## [Remove master nodes from elasticsearch cluster](https://discuss.elastic.co/t/remove-master-nodes-from-elasticsearch-cluster/354821)

<div class="topic-metadata">

**Author:** [@mukularora89](https://discuss.elastic.co/u/mukularora89)\
**Replies:** 3\
**Last updated:** [March 6, 2024, 1:20pm UTC](https://discuss.elastic.co/t/remove-master-nodes-from-elasticsearch-cluster/354821 "2024-03-06T13:20:14Z")

</div>

Hi, We have a requirement where we need to upgrade OS and for that Elasticsearch will be fresh installed on the nodes. I have a question related to master nodes removal. We have 3 master nodes as part of the cluster. W…

---

## [How to write this query using Composite aggregation using Terms with the new Elastic.Clients.Elasticsearch client in c#](https://discuss.elastic.co/t/how-to-write-this-query-using-composite-aggregation-using-terms-with-the-new-elastic-clients-elasticsearch-client-in-c/354832)

<div class="topic-metadata">

**Author:** [@Patrice\_MARIN](https://discuss.elastic.co/u/Patrice_MARIN)\
**Replies:** 2\
**Last updated:** [March 6, 2024, 12:36pm UTC](https://discuss.elastic.co/t/how-to-write-this-query-using-composite-aggregation-using-terms-with-the-new-elastic-clients-elasticsearch-client-in-c/354832 "2024-03-06T12:36:32Z")

</div>

Hi, Hope you will be able to help me on this. I have the following query GET /catalog-20240302194411/\_search { "aggs": { "filtered\_aggregations": { "aggs": { "paginated\_unique\_products": { …

---

## [Embedding Images in Data Ingestion](https://discuss.elastic.co/t/embedding-images-in-data-ingestion/353188)

<div class="topic-metadata">

**Author:** [@Chenko](https://discuss.elastic.co/u/Chenko)\
**Replies:** 2\
**Last updated:** [March 6, 2024, 12:06pm UTC](https://discuss.elastic.co/t/embedding-images-in-data-ingestion/353188 "2024-03-06T12:06:57Z")

</div>

Hello, Recently I attended a Vector & AI workshop where I delved into the intricacies of vector embeddings. However, a demo on image relevance search caught my attention. Now, my goal is to embed images directly into ou…

---

## [$ sign infornt of value for user.name](https://discuss.elastic.co/t/sign-infornt-of-value-for-user-name/354836)

<div class="topic-metadata">

**Author:** [@Nouman\_Ahmed](https://discuss.elastic.co/u/Nouman_Ahmed)\
**Replies:** 1\
**Last updated:** [March 6, 2024, 11:47am UTC](https://discuss.elastic.co/t/sign-infornt-of-value-for-user-name/354836 "2024-03-06T11:47:12Z")

</div>

Hello everyone, Can someone please tell why i am getting $ for a user.name value i.e. user.name : Hoby$. Is this something issue with mapping? Like i am getting two username hoby$ and hoby.

---

## [Simple JWT authentication example with Docker](https://discuss.elastic.co/t/simple-jwt-authentication-example-with-docker/352786)

<div class="topic-metadata">

**Author:** [@Lasra\_Bilaj](https://discuss.elastic.co/u/Lasra_Bilaj)\
**Replies:** 5\
**Last updated:** [March 6, 2024, 8:19am UTC](https://discuss.elastic.co/t/simple-jwt-authentication-example-with-docker/352786 "2024-03-06T08:19:23Z")

</div>

I want to find a simple example of JWT based authentication for Elasticsearch with docker. I am using the the docker-compose.yml file provided by Elastic here at: Is there a resource where I can set that up with the …

---

## [Disable sniffer in ElasticsearchRestClientHealthIndicator](https://discuss.elastic.co/t/disable-sniffer-in-elasticsearchrestclienthealthindicator/354811)

<div class="topic-metadata">

**Author:** [@Chris\_Gatihi](https://discuss.elastic.co/u/Chris_Gatihi)\
**Replies:** 0\
**Last updated:** [March 6, 2024, 7:51am UTC](https://discuss.elastic.co/t/disable-sniffer-in-elasticsearchrestclienthealthindicator/354811 "2024-03-06T07:51:50Z")

</div>

Hi, When we create our own ES rest client we are able to turn off the sniffer. Spring actuator creates its own ES rest client apparently with the sniffer enabled by default. Does anyone know if it's possible to turn i…

---

## [Migration VM in cluster server](https://discuss.elastic.co/t/migration-vm-in-cluster-server/354803)

<div class="topic-metadata">

**Author:** [@Septianingrum.17](https://discuss.elastic.co/u/Septianingrum.17)\
**Replies:** 0\
**Last updated:** [March 6, 2024, 6:32am UTC](https://discuss.elastic.co/t/migration-vm-in-cluster-server/354803 "2024-03-06T06:32:21Z")

</div>

Hi All, i plan to migrate a VM from VMWare gen9 to gen10, and that means the Machine ID will change. Does the ELK license read the Machine ID? What are the impacts if the Machine ID changes? Do I need to re-enter my l…

---

## [Monitor cpu of hot nodes, enterprise search nodes](https://discuss.elastic.co/t/monitor-cpu-of-hot-nodes-enterprise-search-nodes/354800)

<div class="topic-metadata">

**Author:** [@searchwithme](https://discuss.elastic.co/u/searchwithme)\
**Replies:** 0\
**Last updated:** [March 6, 2024, 5:47am UTC](https://discuss.elastic.co/t/monitor-cpu-of-hot-nodes-enterprise-search-nodes/354800 "2024-03-06T05:47:46Z")

</div>

How to monitor cpu, jvm, number of requests for hot nodes as well as app search nodes in elastic? something similar to cloudwatch in AWS. i see performance section but that only gives a 24 hour peek Please help!

---

## [Exception while enabling the xpack in es7.17](https://discuss.elastic.co/t/exception-while-enabling-the-xpack-in-es7-17/354636)

<div class="topic-metadata">

**Author:** [@navaneethan](https://discuss.elastic.co/u/navaneethan)\
**Replies:** 6\
**Last updated:** [March 6, 2024, 12:09am UTC](https://discuss.elastic.co/t/exception-while-enabling-the-xpack-in-es7-17/354636 "2024-03-06T00:09:30Z")

</div>

Hi While enabling the xpack in elasticsearch 7.17, we are facing the below issue ElasticsearchSecurityException\[failed to load SSL configuration \[xpack.security.transport.ssl\]\]; nested: ElasticsearchException\[failed to…

---

## [Problem to run Elasticsearch](https://discuss.elastic.co/t/problem-to-run-elasticsearch/354674)

<div class="topic-metadata">

**Author:** [@AnatoliiR](https://discuss.elastic.co/u/AnatoliiR)\
**Replies:** 3\
**Last updated:** [March 5, 2024, 11:47pm UTC](https://discuss.elastic.co/t/problem-to-run-elasticsearch/354674 "2024-03-05T23:47:43Z")

</div>

Hello, I have installed Elasticsearch and Kibana on my system, but I encounter an error when I try to run them. The error message is as follows: Does anyone have any suggestions on how to fix this issue? I appreciat…

---

## [Lossing the rest documents when BulkIndexError occured](https://discuss.elastic.co/t/lossing-the-rest-documents-when-bulkindexerror-occured/354776)

<div class="topic-metadata">

**Author:** [@Josh19](https://discuss.elastic.co/u/Josh19)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 8:44pm UTC](https://discuss.elastic.co/t/lossing-the-rest-documents-when-bulkindexerror-occured/354776 "2024-03-05T20:44:54Z")

</div>

I wanna know process of the rest documents when BulkIndexError occured. official document says bulk process is indexing documents by each so there is no problem with rest docs, even if there is some indexerror on some d…

---

## [Java client 8 can't DELETE document](https://discuss.elastic.co/t/java-client-8-cant-delete-document/354744)

<div class="topic-metadata">

**Author:** [@nicolasduminil](https://discuss.elastic.co/u/nicolasduminil)\
**Replies:** 1\
**Last updated:** [March 5, 2024, 6:46pm UTC](https://discuss.elastic.co/t/java-client-8-cant-delete-document/354744 "2024-03-05T18:46:08Z")

</div>

Using Java client version provided as Quarkus 3.7.1 extension. The following request ran in Kibana: DELETE customers/\_doc/69wID44Bdp9hpkBkyZ2a works as expected. However, the code below: client.delete(DeleteReques…

---

## [Users access to console](https://discuss.elastic.co/t/users-access-to-console/354756)

<div class="topic-metadata">

**Author:** [@mcosta](https://discuss.elastic.co/u/mcosta)\
**Replies:** 1\
**Last updated:** [March 5, 2024, 5:21pm UTC](https://discuss.elastic.co/t/users-access-to-console/354756 "2024-03-05T17:21:39Z")

</div>

Hi all, Is it possible to allow a specific team of users to access Kibana's console (Management -\> Dev Tools), using native role-based access control mechanism, so that users can only have permission to query "their own…

---

## [Snapshot/Restore VS ReIndexing - Missing documents, zero failures](https://discuss.elastic.co/t/snapshot-restore-vs-reindexing-missing-documents-zero-failures/354448)

<div class="topic-metadata">

**Author:** [@Joao\_Barreto](https://discuss.elastic.co/u/Joao_Barreto)\
**Replies:** 26\
**Last updated:** [March 5, 2024, 10:38am UTC](https://discuss.elastic.co/t/snapshot-restore-vs-reindexing-missing-documents-zero-failures/354448 "2024-03-05T10:38:04Z")

</div>

Hi everyone. A few weeks ago I created a post regarding a data migration I have to do in a customer with a Platinum License. The conclusion was that I needed to go from elastic 6 to 7 then to 8.12 in order to have the d…

---

## [Why only one REST wrapper exists and not nested?](https://discuss.elastic.co/t/why-only-one-rest-wrapper-exists-and-not-nested/354719)

<div class="topic-metadata">

**Author:** [@BadLemon](https://discuss.elastic.co/u/BadLemon)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 10:05am UTC](https://discuss.elastic.co/t/why-only-one-rest-wrapper-exists-and-not-nested/354719 "2024-03-05T10:05:54Z")

</div>

Hello everyone, Elasticsearch reports a error when I installed ranger elasticsearch plugin and restarted Elasticsearch: "Cannot have more than one plugin implementing a REST wrapper". Later, I found that there is a cl…

---

## [What impact will the SSL certificate expiration in the file elastic-certificates.p12 have?](https://discuss.elastic.co/t/what-impact-will-the-ssl-certificate-expiration-in-the-file-elastic-certificates-p12-have/353966)

<div class="topic-metadata">

**Author:** [@wangxr1985](https://discuss.elastic.co/u/wangxr1985)\
**Replies:** 8\
**Last updated:** [March 5, 2024, 8:54am UTC](https://discuss.elastic.co/t/what-impact-will-the-ssl-certificate-expiration-in-the-file-elastic-certificates-p12-have/353966 "2024-03-05T08:54:02Z")

</div>

Version: 7.5.2 License: basic configuration about security in elasticsearch.yml xpack.security.enabled: true xpack.security.transport.ssl.enabled: true xpack.security.transport.ssl.verification\_mode: certificate xpack…

---

## [Filebeat Ignore command](https://discuss.elastic.co/t/filebeat-ignore-command/354637)

<div class="topic-metadata">

**Author:** [@amjad](https://discuss.elastic.co/u/amjad)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 8:38am UTC](https://discuss.elastic.co/t/filebeat-ignore-command/354637 "2024-03-05T08:38:13Z")

</div>

Hi Elastic community. Hope every one is doing well. I really need your help, I couldn't understand how the ignore\_older works in filebeat. i will explain my doubt , below is the line of command how i kept in Filebeat.…

---

## [Does autoscaling in elastic cloud deployments only work on the data size and not the memory?](https://discuss.elastic.co/t/does-autoscaling-in-elastic-cloud-deployments-only-work-on-the-data-size-and-not-the-memory/354691)

<div class="topic-metadata">

**Author:** [@surya\_dadi\_dhamarake](https://discuss.elastic.co/u/surya_dadi_dhamarake)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 8:27am UTC](https://discuss.elastic.co/t/does-autoscaling-in-elastic-cloud-deployments-only-work-on-the-data-size-and-not-the-memory/354691 "2024-03-05T08:27:27Z")

</div>

Hi Team, I just want to know what are the rules we have on the auto scaling in elastic cloud deployments. We have enabled auto scaling but it is not scaling the instances even if the memory is in critical state. Can any…

---

## [Es rally list tracks error](https://discuss.elastic.co/t/es-rally-list-tracks-error/354694)

<div class="topic-metadata">

**Author:** [@searchwithme](https://discuss.elastic.co/u/searchwithme)\
**Replies:** 1\
**Last updated:** [March 5, 2024, 7:35am UTC](https://discuss.elastic.co/t/es-rally-list-tracks-error/354694 "2024-03-05T07:35:36Z")

</div>

esrally list tracks \_\_\_\_ \_\_\_\_ / \_\_ \_\_\_\_ / / / \_\_ / // / \_\_ \`/ / / / / / / , / // / / / // / // ||\_,///\_, / /\_\_\_\_/ \[ERROR\] Cannot list. substring not found. What could be the reason? Here is a snapshot of …

---

## [Slow search response](https://discuss.elastic.co/t/slow-search-response/354501)

<div class="topic-metadata">

**Author:** [@shivam\_raj](https://discuss.elastic.co/u/shivam_raj)\
**Replies:** 3\
**Last updated:** [March 5, 2024, 4:51am UTC](https://discuss.elastic.co/t/slow-search-response/354501 "2024-03-05T04:51:38Z")

</div>

I have created a python appilication , to connect with es, there I am doing a document\_id search that is list es = Elasticsearch( CLOUD\_ID, http\_auth=(elastic\_user, ELASTIC\_PASSWORD) query = { "query": { "bool": { …

---

## [Esrally list tracks](https://discuss.elastic.co/t/esrally-list-tracks/354687)

<div class="topic-metadata">

**Author:** [@searchwithme](https://discuss.elastic.co/u/searchwithme)\
**Replies:** 1\
**Last updated:** [March 5, 2024, 4:35am UTC](https://discuss.elastic.co/t/esrally-list-tracks/354687 "2024-03-05T04:35:07Z")

</div>

I have installed esrally on an ec2 instance and I am running list tracks and encountering this error. Can someone assist? esrally list tracks Traceback (most recent call last): File "/home/ec2-user/.local/bin/esrally"…

---

## [How to determine which node is the master (without using \_cat endpoint) in an application](https://discuss.elastic.co/t/how-to-determine-which-node-is-the-master-without-using-cat-endpoint-in-an-application/354672)

<div class="topic-metadata">

**Author:** [@buitcj](https://discuss.elastic.co/u/buitcj)\
**Replies:** 4\
**Last updated:** [March 5, 2024, 2:39am UTC](https://discuss.elastic.co/t/how-to-determine-which-node-is-the-master-without-using-cat-endpoint-in-an-application/354672 "2024-03-05T02:39:59Z")

</div>

I am trying to determine if a node is the master elasticsearch node so that I can determine if my script should run. My script creates a user using the elasticsearch-cli binary and I want to ensure that this happens a si…

---

## [Stable-esplugin bundlePlugin does not add classname to stable-plugtin-descriptor.properties file](https://discuss.elastic.co/t/stable-esplugin-bundleplugin-does-not-add-classname-to-stable-plugtin-descriptor-properties-file/354681)

<div class="topic-metadata">

**Author:** [@Steph\_van\_Schalkwyk](https://discuss.elastic.co/u/Steph_van_Schalkwyk)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 12:19am UTC](https://discuss.elastic.co/t/stable-esplugin-bundleplugin-does-not-add-classname-to-stable-plugtin-descriptor-properties-file/354681 "2024-03-05T00:19:11Z")

</div>

Using 8.12.2. when building plugin with Gradle, the classname is not added to the stable-plugin-descriptor.properties file. The plugin deploys, but the classname property is NULL. Any ideas?

---

## [ElasticSearch JAVA create custom sort in place of attribute value sort](https://discuss.elastic.co/t/elasticsearch-java-create-custom-sort-in-place-of-attribute-value-sort/354677)

<div class="topic-metadata">

**Author:** [@Manoj\_Upadhyay](https://discuss.elastic.co/u/Manoj_Upadhyay)\
**Replies:** 0\
**Last updated:** [March 4, 2024, 11:19pm UTC](https://discuss.elastic.co/t/elasticsearch-java-create-custom-sort-in-place-of-attribute-value-sort/354677 "2024-03-04T23:19:08Z")

</div>

For example, I have 6 accounts (1,2,34,5,6)of transactions in index and I want to search transactions and sort by order by account 4,6,3,2,1,5(custom order ) then how I can use it . SearchResponse\<MyClass\> esResponse = …

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

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