# Latest

**URL:** https://discuss.elastic.co/latest.md?page=784

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

**Page:** 785

---

## [Please add more examples on the new Java API Client](https://discuss.elastic.co/t/please-add-more-examples-on-the-new-java-api-client/325297)

<div class="topic-metadata">

**Author:** [@imhoffdavid](https://discuss.elastic.co/u/imhoffdavid)\
**Replies:** 0\
**Last updated:** [February 10, 2023, 8:58pm UTC](https://discuss.elastic.co/t/please-add-more-examples-on-the-new-java-api-client/325297 "2023-02-10T20:58:02Z")

</div>

This page in particular: Using the Java API Client | Elasticsearch Java API Client \[8.6\] | Elastic . Is not fleshed out enough. Coming from the old client and trying to migrate my elastic update calls to the new client …

---

## [Delete UNASSIGNED replica shards in elasticsearch 6.8.23](https://discuss.elastic.co/t/delete-unassigned-replica-shards-in-elasticsearch-6-8-23/325000)

<div class="topic-metadata">

**Author:** [@mohammed\_faisal](https://discuss.elastic.co/u/mohammed_faisal)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 5:19am UTC](https://discuss.elastic.co/t/delete-unassigned-replica-shards-in-elasticsearch-6-8-23/325000 "2023-02-14T05:19:42Z")

</div>

How do i remove the UNASSIGNED replica shard from the index

---

## [Elasticsearch sizing and update in a docker enviroment](https://discuss.elastic.co/t/elasticsearch-sizing-and-update-in-a-docker-enviroment/325334)

<div class="topic-metadata">

**Author:** [@Lay0ut](https://discuss.elastic.co/u/Lay0ut)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 4:51am UTC](https://discuss.elastic.co/t/elasticsearch-sizing-and-update-in-a-docker-enviroment/325334 "2023-02-14T04:51:22Z")

</div>

Hello everybody, I am currently taking over our Elastic cluster at my company after the person who set it up and managed it so far left the company. Given my limited experience with the ELK stack, I have a few questions…

---

## [Exiting: couldn't connect to ElasticSearch at](https://discuss.elastic.co/t/exiting-couldnt-connect-to-elasticsearch-at/325234)

<div class="topic-metadata">

**Author:** [@zyaza](https://discuss.elastic.co/u/zyaza)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 4:12am UTC](https://discuss.elastic.co/t/exiting-couldnt-connect-to-elasticsearch-at/325234 "2023-02-14T04:12:12Z")

</div>

sudo auditbeat -e setup This command ends with Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: \[error connecting to Elasticsearch at "ip adress of ubunt server:9200: Get "up adress:9200"…

---

## [JDBC Connection Pool for Elastic sql](https://discuss.elastic.co/t/jdbc-connection-pool-for-elastic-sql/325320)

<div class="topic-metadata">

**Author:** [@varindersandhu](https://discuss.elastic.co/u/varindersandhu)\
**Replies:** 0\
**Last updated:** [February 11, 2023, 5:33pm UTC](https://discuss.elastic.co/t/jdbc-connection-pool-for-elastic-sql/325320 "2023-02-11T17:33:21Z")

</div>

Hi Team, trying to build osgi plugin for elastic sql driver to query ES . Not able to find ConnectionPoolSource class name from x-pack-sql-jdbc-8.6.1.jar . Any idea which class will replace EsDataSourcePool in code below …

---

## [Kibana 8.6.1 keeps Loading Elastic forever when using a JWT token](https://discuss.elastic.co/t/kibana-8-6-1-keeps-loading-elastic-forever-when-using-a-jwt-token/325274)

<div class="topic-metadata">

**Author:** [@frits](https://discuss.elastic.co/u/frits)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 3:57am UTC](https://discuss.elastic.co/t/kibana-8-6-1-keeps-loading-elastic-forever-when-using-a-jwt-token/325274 "2023-02-14T03:57:06Z")

</div>

I've been trying to get a JWT token login to work for a few days now. I've made a couple of great steps, I think I've managed to authenticate against the JWT provider (Broadcom IDM). I think I've created a correct role a…

---

## [Unable to update the password of elastic user](https://discuss.elastic.co/t/unable-to-update-the-password-of-elastic-user/325422)

<div class="topic-metadata">

**Author:** [@quynhdn](https://discuss.elastic.co/u/quynhdn)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 3:19am UTC](https://discuss.elastic.co/t/unable-to-update-the-password-of-elastic-user/325422 "2023-02-14T03:19:29Z")

</div>

I want to rotate the password of elastic user. I used this utility: bin/elasticsearch-users passwd elastic -p XXXXX It didn’t give any error, but when I tried to use the new password, it didn’t work. The old password co…

---

## [Default settings Xms and Xmx](https://discuss.elastic.co/t/default-settings-xms-and-xmx/324103)

<div class="topic-metadata">

**Author:** [@INS](https://discuss.elastic.co/u/INS)\
**Replies:** 1\
**Last updated:** [February 13, 2023, 6:32pm UTC](https://discuss.elastic.co/t/default-settings-xms-and-xmx/324103 "2023-02-13T18:32:51Z")

</div>

Hi Whether elastic has set with default Xms and Xmx or should I always remember to set it it in environment per node? I'm asking because I'm observing some wire increase heap on nodes, and I think this graph should loo…

---

## [Runtime field not appearing in search results](https://discuss.elastic.co/t/runtime-field-not-appearing-in-search-results/325425)

<div class="topic-metadata">

**Author:** [@learningelastic](https://discuss.elastic.co/u/learningelastic)\
**Replies:** 2\
**Last updated:** [February 14, 2023, 12:54am UTC](https://discuss.elastic.co/t/runtime-field-not-appearing-in-search-results/325425 "2023-02-14T00:54:00Z")

</div>

I'm trying to set up a run time field to calculate the total of an e-commerce purchase. But there is something wrong with the way I'm declaring run time field, and it might have something to do with nested objects. Fir…

---

## [Spring boot visualize actuator health](https://discuss.elastic.co/t/spring-boot-visualize-actuator-health/325389)

<div class="topic-metadata">

**Author:** [@chrispos](https://discuss.elastic.co/u/chrispos)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 12:34am UTC](https://discuss.elastic.co/t/spring-boot-visualize-actuator-health/325389 "2023-02-14T00:34:33Z")

</div>

Hello, I have a question. Our Java programmer has created a health API output for his Java program (output in json). Now I can get the API information by using an http pooler. I was wondering if there is a good way to v…

---

## [Add Matches inside a loop](https://discuss.elastic.co/t/add-matches-inside-a-loop/325427)

<div class="topic-metadata">

**Author:** [@chachew](https://discuss.elastic.co/u/chachew)\
**Replies:** 0\
**Last updated:** [February 13, 2023, 10:51pm UTC](https://discuss.elastic.co/t/add-matches-inside-a-loop/325427 "2023-02-13T22:51:22Z")

</div>

How can i add multiple Match clauses inside a loop? Currently when i do this, the only thing that gets added is the first item in the List and thats it. List\<string\> types = new(); b.Should(s =\> { types.ForEach(t =\>…

---

## [Results ranking on empty query ""](https://discuss.elastic.co/t/results-ranking-on-empty-query/325225)

<div class="topic-metadata">

**Author:** [@Gerardo\_Zenobi](https://discuss.elastic.co/u/Gerardo_Zenobi)\
**Replies:** 3\
**Last updated:** [February 13, 2023, 9:52pm UTC](https://discuss.elastic.co/t/results-ranking-on-empty-query/325225 "2023-02-13T21:52:09Z")

</div>

Hi there :wave: I wanted to know how EAP ranks / orders results when we perform a search with an empty query, for example, like so: POST /api/as/v1/engines/my-engine/search.json {"query":"", "page":{"size":50}} From…

---

## [Script\_score behavior depends on number of requested documents](https://discuss.elastic.co/t/script-score-behavior-depends-on-number-of-requested-documents/324837)

<div class="topic-metadata">

**Author:** [@Gkleinereva](https://discuss.elastic.co/u/Gkleinereva)\
**Replies:** 1\
**Last updated:** [February 13, 2023, 9:03pm UTC](https://discuss.elastic.co/t/script-score-behavior-depends-on-number-of-requested-documents/324837 "2023-02-13T21:03:11Z")

</div>

TL;DR - I encountered a problem with script\_score behavior. script\_score seems to calculate scores differently depending on the size parameter in the query. Can anyone help me understand what's going on here (and wheth…

---

## [With the removal of doc types, must I reindex all the indices that use a custom doc\_type?](https://discuss.elastic.co/t/with-the-removal-of-doc-types-must-i-reindex-all-the-indices-that-use-a-custom-doc-type/325419)

<div class="topic-metadata">

**Author:** [@kexin-zhai](https://discuss.elastic.co/u/kexin-zhai)\
**Replies:** 0\
**Last updated:** [February 13, 2023, 8:36pm UTC](https://discuss.elastic.co/t/with-the-removal-of-doc-types-must-i-reindex-all-the-indices-that-use-a-custom-doc-type/325419 "2023-02-13T20:36:59Z")

</div>

I have a similar question regarding the removal of doc types as @smlbiobot 's post here With the removal of doc types, must I reindex all the indices that use a named type? . Do I have to reindex all the indices before …

---

## [Is it possible to use TimeFilter on multiple date Fields?](https://discuss.elastic.co/t/is-it-possible-to-use-timefilter-on-multiple-date-fields/324688)

<div class="topic-metadata">

**Author:** [@SamuelSMendes](https://discuss.elastic.co/u/SamuelSMendes)\
**Replies:** 1\
**Last updated:** [February 13, 2023, 8:20pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-timefilter-on-multiple-date-fields/324688 "2023-02-13T20:20:13Z")

</div>

So I have two date fields: createdTime and resolutionTime; The problem in question is that I need one chart A to operate by createdTime and a chart B to operate in resolutionTime. I had a guess that maybe I could achie…

---

## [Unified highlighter with function\_score](https://discuss.elastic.co/t/unified-highlighter-with-function-score/325281)

<div class="topic-metadata">

**Author:** [@Wonder\_Garance](https://discuss.elastic.co/u/Wonder_Garance)\
**Replies:** 1\
**Last updated:** [February 13, 2023, 8:18pm UTC](https://discuss.elastic.co/t/unified-highlighter-with-function-score/325281 "2023-02-13T20:18:40Z")

</div>

Hello, I have a query to search for the acronym: pin and "Personal Identification Number", with "auto\_generate\_synonyms\_phrase\_query": true I don't want results with 3 words Personal, Identification, Number highlighted …

---

## [Update node roles with shards assigned](https://discuss.elastic.co/t/update-node-roles-with-shards-assigned/325344)

<div class="topic-metadata">

**Author:** [@sachiko](https://discuss.elastic.co/u/sachiko)\
**Replies:** 1\
**Last updated:** [February 13, 2023, 7:54pm UTC](https://discuss.elastic.co/t/update-node-roles-with-shards-assigned/325344 "2023-02-13T19:54:41Z")

</div>

Cluster is having 6 nodes, having the default role: cdfhilmrstw How to update the node.roles from all to master only. Note: node has already a shards assigned, containing .security-7 index. IF I run elasticsearch-nod…

---

## [Empty snapshots](https://discuss.elastic.co/t/empty-snapshots/325194)

<div class="topic-metadata">

**Author:** [@tmslara.a](https://discuss.elastic.co/u/tmslara.a)\
**Replies:** 17\
**Last updated:** [February 13, 2023, 7:46pm UTC](https://discuss.elastic.co/t/empty-snapshots/325194 "2023-02-13T19:46:42Z")

</div>

Hi, I have a problem when trying to create and restore a snapshot in Elasticsearch. The snapshots are blank. Some specifications: I'm using a Mac (MacOS Monterey 12.6.2) if relevant. I'm running Elasticsearch in it a…

---

## [New Elastic Network Security Analyst learning path](https://discuss.elastic.co/t/new-elastic-network-security-analyst-learning-path/325417)

<div class="topic-metadata">

**Author:** [@brian.reitz](https://discuss.elastic.co/u/brian.reitz)\
**Replies:** 0\
**Last updated:** [February 13, 2023, 7:44pm UTC](https://discuss.elastic.co/t/new-elastic-network-security-analyst-learning-path/325417 "2023-02-13T19:44:49Z")

</div>

Learn how to improve your security operations center with our new Elastic Network Security Analyst learning path. The path includes a series of on-demand training modules that explore how to analyze network data and det…

---

## [Reading a .csv file from a remote url using filebeat and httpjson](https://discuss.elastic.co/t/reading-a-csv-file-from-a-remote-url-using-filebeat-and-httpjson/325415)

<div class="topic-metadata">

**Author:** [@Cristiane\_Naves](https://discuss.elastic.co/u/Cristiane_Naves)\
**Replies:** 0\
**Last updated:** [February 13, 2023, 7:30pm UTC](https://discuss.elastic.co/t/reading-a-csv-file-from-a-remote-url-using-filebeat-and-httpjson/325415 "2023-02-13T19:30:44Z")

</div>

Hi, I'm trying to monitor a remote URL that contains a .csv file. I need to retrieve the file and make it available in Logstash. I'm new to this, and I'm not sure how to get started. Can anyone offer some guidance or s…

---

## [What is Delastic.apm.application\_packages=](https://discuss.elastic.co/t/what-is-delastic-apm-application-packages/324805)

<div class="topic-metadata">

**Author:** [@odelacruzc](https://discuss.elastic.co/u/odelacruzc)\
**Replies:** 1\
**Last updated:** [February 6, 2023, 3:26pm UTC](https://discuss.elastic.co/t/what-is-delastic-apm-application-packages/324805 "2023-02-06T15:26:30Z")

</div>

Hi, I want to monitor a Tomcat Application but how property Delastic.apm.application\_packages=org.example,org.another.example works in APM configuration, it's mandatory? Can I set it to default?

---

## [Kibana - Display additional information with each datapoint](https://discuss.elastic.co/t/kibana-display-additional-information-with-each-datapoint/325305)

<div class="topic-metadata">

**Author:** [@Taylor\_Graham](https://discuss.elastic.co/u/Taylor_Graham)\
**Replies:** 2\
**Last updated:** [February 13, 2023, 5:16pm UTC](https://discuss.elastic.co/t/kibana-display-additional-information-with-each-datapoint/325305 "2023-02-13T17:16:28Z")

</div>

Maybe this is a unique problem, or maybe it's simply not possible. I have a set of devices for which I'm tracking metrics over time. To do this I create a Line Lens and put timestamp on the x-axis, CPU usage on the y-a…

---

## [Beats upgrade from 7.10 to 8.x](https://discuss.elastic.co/t/beats-upgrade-from-7-10-to-8-x/325370)

<div class="topic-metadata">

**Author:** [@ShubhamKumarJena](https://discuss.elastic.co/u/ShubhamKumarJena)\
**Replies:** 1\
**Last updated:** [February 13, 2023, 4:49pm UTC](https://discuss.elastic.co/t/beats-upgrade-from-7-10-to-8-x/325370 "2023-02-13T16:49:23Z")

</div>

Hello Guys, We are planning to upgrade our BEATS from 7.10(already EOL) to 8.x soon. Can some body share their experience while they upgrdaed from 7.x to 8.x and give me some of their learnings. I am aware about the fil…

---

## [Problems with ssl apm java agent to elastic cloud](https://discuss.elastic.co/t/problems-with-ssl-apm-java-agent-to-elastic-cloud/323908)

<div class="topic-metadata">

**Author:** [@irivas95](https://discuss.elastic.co/u/irivas95)\
**Replies:** 16\
**Last updated:** [February 13, 2023, 4:24pm UTC](https://discuss.elastic.co/t/problems-with-ssl-apm-java-agent-to-elastic-cloud/323908 "2023-02-13T16:24:56Z")

</div>

HI, I am trying to deploy an application with an APM java agent in GKE that sends data to an APM integration in elastic cloud. I am using this Dockerfile # vi Dockerfile FROM adoptopenjdk:11-jre-hotspot RUN export RUN…

---

## [Elasticsearch Memory Optimization?](https://discuss.elastic.co/t/elasticsearch-memory-optimization/325335)

<div class="topic-metadata">

**Author:** [@Sheharyar\_Khalid](https://discuss.elastic.co/u/Sheharyar_Khalid)\
**Replies:** 5\
**Last updated:** [February 13, 2023, 4:23pm UTC](https://discuss.elastic.co/t/elasticsearch-memory-optimization/325335 "2023-02-13T16:23:13Z")

</div>

Hello, I have 64GB of RAM on my machine. I am trying to optimize the elasticsearch's performance by utilizing maximum possible hardware. I noticed that the elasticsearch is not utilizing as much RAM as allocated to it …

---

## [Elastic agents are failing to connect with elastic apm server](https://discuss.elastic.co/t/elastic-agents-are-failing-to-connect-with-elastic-apm-server/325380)

<div class="topic-metadata">

**Author:** [@rahul\_sirugudi](https://discuss.elastic.co/u/rahul_sirugudi)\
**Replies:** 6\
**Last updated:** [February 13, 2023, 4:12pm UTC](https://discuss.elastic.co/t/elastic-agents-are-failing-to-connect-with-elastic-apm-server/325380 "2023-02-13T16:12:46Z")

</div>

I Have configured Elastic APM on filebeat server. In Java\_OPTS configured jar file. How ever i am seeing 2 errors when the agent is trying to make POST calls. Feb 13 06:15:37 ip-10-0-1-5.us-west-2.compute.internal serve…

---

## [Logstash error: Failed to publish events](https://discuss.elastic.co/t/logstash-error-failed-to-publish-events/325400)

<div class="topic-metadata">

**Author:** [@Zack\_09](https://discuss.elastic.co/u/Zack_09)\
**Replies:** 3\
**Last updated:** [February 13, 2023, 4:11pm UTC](https://discuss.elastic.co/t/logstash-error-failed-to-publish-events/325400 "2023-02-13T16:11:57Z")

</div>

Hello all ,im new in elastic when I run logstash i get the following error Error: Cannot assign requested address desktop-logstash-1 | Exception: Java::JavaNet::BindException desktop-logstash-1 | Stack: sun…

---

## [Container logs are not injesting properly to elastic fleet agents](https://discuss.elastic.co/t/container-logs-are-not-injesting-properly-to-elastic-fleet-agents/321547)

<div class="topic-metadata">

**Author:** [@krishnaabylle](https://discuss.elastic.co/u/krishnaabylle)\
**Replies:** 1\
**Last updated:** [February 13, 2023, 4:08pm UTC](https://discuss.elastic.co/t/container-logs-are-not-injesting-properly-to-elastic-fleet-agents/321547 "2023-02-13T16:08:40Z")

</div>

HI, As we rolled out our elastic agents in new clusters through fleets, all logs are coming to Metrics-\* and Logs-\* from Kubernetes containers. As per documentation all the logs should come to Logs-\* and Metrics-\*. We …

---

## [Logstash to Elastic Multiple Connections](https://discuss.elastic.co/t/logstash-to-elastic-multiple-connections/325382)

<div class="topic-metadata">

**Author:** [@yago82](https://discuss.elastic.co/u/yago82)\
**Replies:** 1\
**Last updated:** [February 13, 2023, 3:01pm UTC](https://discuss.elastic.co/t/logstash-to-elastic-multiple-connections/325382 "2023-02-13T15:01:36Z")

</div>

Hello everyone, I was wandering if you can help in this particular matter: the actual situation is that we maintain a large Elastic Stack (15+ nodes) with an ingestion workflow composed by two Logstash server on VMs, wi…

---

## [Openshift 4 - Fleet and Elastic Agent permission denied](https://discuss.elastic.co/t/openshift-4-fleet-and-elastic-agent-permission-denied/325403)

<div class="topic-metadata">

**Author:** [@splitmessage88](https://discuss.elastic.co/u/splitmessage88)\
**Replies:** 0\
**Last updated:** [February 13, 2023, 3:26pm UTC](https://discuss.elastic.co/t/openshift-4-fleet-and-elastic-agent-permission-denied/325403 "2023-02-13T15:26:02Z")

</div>

Hi, I have been stuck with this issue for a couple of days and can't get it working. We are using Openshift 4.12 & argoCD with the elastic operator in Openshift. I followed the official eck k8s 2.6 documentation and c…

[Previous page](https://discuss.elastic.co/latest.md?page=783)

[Next page](https://discuss.elastic.co/latest.md?page=785)
