# Latest

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

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

**Page:** 305

---

## [The num\_candidates parameter leads to some confusing query results](https://discuss.elastic.co/t/the-num-candidates-parameter-leads-to-some-confusing-query-results/359355)

<div class="topic-metadata">

**Author:** [@EricTowns](https://discuss.elastic.co/u/EricTowns)\
**Replies:** 7\
**Last updated:** [June 9, 2024, 12:17pm UTC](https://discuss.elastic.co/t/the-num-candidates-parameter-leads-to-some-confusing-query-results/359355 "2024-06-09T12:17:04Z")

</div>

Hi team! I have an index, only 1 primary shard, I insert documents and then knn searching. When I do a knn query with k=10 and num\_candidates=20, I get a batch of results. When k=10 and num\_candidates=25, I got some doc…

---

## [PHP agent: sampling-based profiler out of beta?](https://discuss.elastic.co/t/php-agent-sampling-based-profiler-out-of-beta/361098)

<div class="topic-metadata">

**Author:** [@NominaSumpta](https://discuss.elastic.co/u/NominaSumpta)\
**Replies:** 0\
**Last updated:** [June 9, 2024, 11:18am UTC](https://discuss.elastic.co/t/php-agent-sampling-based-profiler-out-of-beta/361098 "2024-06-09T11:18:55Z")

</div>

When is the sampling-based profiler (profiling\_inferred\_spans\_enabled) expected to be out of beta? Configuration reference | APM PHP Agent Reference \[1.x\] | Elastic says: This functionality is in technical preview and…

---

## [Elastic-agent does not send metrics to Logstash](https://discuss.elastic.co/t/elastic-agent-does-not-send-metrics-to-logstash/360824)

<div class="topic-metadata">

**Author:** [@Viktor\_Movita](https://discuss.elastic.co/u/Viktor_Movita)\
**Replies:** 3\
**Last updated:** [June 9, 2024, 8:12am UTC](https://discuss.elastic.co/t/elastic-agent-does-not-send-metrics-to-logstash/360824 "2024-06-09T08:12:33Z")

</div>

I recently installed a stand-alone Elastic Agent version 8.11.3. I configured the agent to send metrics to the Logstash server and to collect metrics from the server on which it is installed. However, I do not see any d…

---

## [Spring data Elasticsearch](https://discuss.elastic.co/t/spring-data-elasticsearch/361089)

<div class="topic-metadata">

**Author:** [@mmahmood](https://discuss.elastic.co/u/mmahmood)\
**Replies:** 1\
**Last updated:** [June 9, 2024, 5:35am UTC](https://discuss.elastic.co/t/spring-data-elasticsearch/361089 "2024-06-09T05:35:00Z")

</div>

Hi all I have added aggregation to elasticsearch query by using QueryBuilder class provided in spring boot elasticsearch library but it is not working as expected. I may be missing something. following is code snippet …

---

## [SocketTimeout Exception issue reported for Elasticsearch Node with moderate resource usage](https://discuss.elastic.co/t/sockettimeout-exception-issue-reported-for-elasticsearch-node-with-moderate-resource-usage/360984)

<div class="topic-metadata">

**Author:** [@lzz118](https://discuss.elastic.co/u/lzz118)\
**Replies:** 9\
**Last updated:** [June 9, 2024, 5:32am UTC](https://discuss.elastic.co/t/sockettimeout-exception-issue-reported-for-elasticsearch-node-with-moderate-resource-usage/360984 "2024-06-09T05:32:24Z")

</div>

The Elasticsearch Cluster with the reported issue includes 86 data nodes and 3 dedicated master nodes, each with 32 GB heap 64 to 128GB OS memory, and between 16 ~ 32 CPU cores per node. We have two ES clusters with sim…

---

## [Delay in office logs](https://discuss.elastic.co/t/delay-in-office-logs/360513)

<div class="topic-metadata">

**Author:** [@mrosendo](https://discuss.elastic.co/u/mrosendo)\
**Replies:** 3\
**Last updated:** [June 8, 2024, 9:54pm UTC](https://discuss.elastic.co/t/delay-in-office-logs/360513 "2024-06-08T21:54:21Z")

</div>

Hi everyone, We just integrated Office 365 and we followed the steps describen in the integration. The API is showing that requests from Azure are ok, but the logs in Kibana comes like with 7 days of delay, so we don't …

---

## [Elastic Agent - Parsing JSON file to fields](https://discuss.elastic.co/t/elastic-agent-parsing-json-file-to-fields/360319)

<div class="topic-metadata">

**Author:** [@idan\_amar](https://discuss.elastic.co/u/idan_amar)\
**Replies:** 1\
**Last updated:** [June 8, 2024, 2:20pm UTC](https://discuss.elastic.co/t/elastic-agent-parsing-json-file-to-fields/360319 "2024-06-08T14:20:13Z")

</div>

hello i use the custom logs for input mtr.json file { "report": { "mtr": { "src": "something.com", "dst": "something.else", "tos": 0, "tests": 10, …

---

## [Shard Allocation Awareness and .security-7 index](https://discuss.elastic.co/t/shard-allocation-awareness-and-security-7-index/361072)

<div class="topic-metadata">

**Author:** [@Sajad\_Soltanian](https://discuss.elastic.co/u/Sajad_Soltanian)\
**Replies:** 0\
**Last updated:** [June 8, 2024, 11:57am UTC](https://discuss.elastic.co/t/shard-allocation-awareness-and-security-7-index/361072 "2024-06-08T11:57:52Z")

</div>

We have recently added node attributes and update the cluster setting to allocate the shards based on this attribute. below is my cluster settings. "cluster" : { "routing" : { "allocation" : { …

---

## [Custom sorting](https://discuss.elastic.co/t/custom-sorting/360530)

<div class="topic-metadata">

**Author:** [@alexander.korkhov](https://discuss.elastic.co/u/alexander.korkhov)\
**Replies:** 1\
**Last updated:** [June 7, 2024, 10:56pm UTC](https://discuss.elastic.co/t/custom-sorting/360530 "2024-06-07T22:56:39Z")

</div>

Good afternoon! We need to do custom sorting in elastic. You need to give elastic a list of document IDs as input, according to which you need to sort the output. That is, we first sort by this list (to the top of the o…

---

## [Determine count of fields in a document](https://discuss.elastic.co/t/determine-count-of-fields-in-a-document/360946)

<div class="topic-metadata">

**Author:** [@lolabam](https://discuss.elastic.co/u/lolabam)\
**Replies:** 1\
**Last updated:** [June 7, 2024, 10:39pm UTC](https://discuss.elastic.co/t/determine-count-of-fields-in-a-document/360946 "2024-06-07T22:39:56Z")

</div>

I'm new to painless scripts. I'd like to create a runtime field that returns the count of fields in a document. Can anyone help with the right script to use?

---

## [Incomplete jdk.app in the installation package｜Unable to start Elasticsearch｜macOS x86\_64 | elasticsearch-8.13.2](https://discuss.elastic.co/t/incomplete-jdk-app-in-the-installation-package-unable-to-start-elasticsearch-macos-x86-64-elasticsearch-8-13-2/357275)

<div class="topic-metadata">

**Author:** [@Joanna\_Chang](https://discuss.elastic.co/u/Joanna_Chang)\
**Replies:** 4\
**Last updated:** [June 7, 2024, 10:19pm UTC](https://discuss.elastic.co/t/incomplete-jdk-app-in-the-installation-package-unable-to-start-elasticsearch-macos-x86-64-elasticsearch-8-13-2/357275 "2024-06-07T22:19:10Z")

</div>

Downloaded the installation package, elasticsearch-8.13.2, several times, but the system indicates that jdk.app is incomplete. Privacy and security settings are configured to allow open. Unable to start Elasticse…

---

## [Write to TSDS index via python](https://discuss.elastic.co/t/write-to-tsds-index-via-python/361001)

<div class="topic-metadata">

**Author:** [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Replies:** 9\
**Last updated:** [June 7, 2024, 7:53pm UTC](https://discuss.elastic.co/t/write-to-tsds-index-via-python/361001 "2024-06-07T19:53:42Z")

</div>

I create ILM/Template and Index when I try to write via python it errors but same record works via dev tool POST sachin\_test/\_doc { "@timestamp": "2024-06-06T19:21:15.000Z", --\> this part I did manually "system\_ty…

---

## [Filebeat 8.X slow "memory leak" from kubernetes watcher](https://discuss.elastic.co/t/filebeat-8-x-slow-memory-leak-from-kubernetes-watcher/361060)

<div class="topic-metadata">

**Author:** [@Marcos\_Toledo](https://discuss.elastic.co/u/Marcos_Toledo)\
**Replies:** 0\
**Last updated:** [June 7, 2024, 7:51pm UTC](https://discuss.elastic.co/t/filebeat-8-x-slow-memory-leak-from-kubernetes-watcher/361060 "2024-06-07T19:51:42Z")

</div>

Hi, After upgrading from filebeat 7 we've observed memory usage of certain daemons continuosly increasing until around 90% of the defined limits, and sometimes OOMing. After every restart the memory usage goes down to n…

---

## [Question about parsing log.file.path field](https://discuss.elastic.co/t/question-about-parsing-log-file-path-field/360872)

<div class="topic-metadata">

**Author:** [@Borja](https://discuss.elastic.co/u/Borja)\
**Replies:** 3\
**Last updated:** [June 7, 2024, 7:35pm UTC](https://discuss.elastic.co/t/question-about-parsing-log-file-path-field/360872 "2024-06-07T19:35:19Z")

</div>

Hi all, we are trying to ingest from filebeat some differents apache logs from diffent apps and different directories. So we have this input structure (this are the log.file.path fields ingested) /home/E879365/logs/ap…

---

## [\_dateparsefailure when trying to overwrite @timestamp](https://discuss.elastic.co/t/dateparsefailure-when-trying-to-overwrite-timestamp/360814)

<div class="topic-metadata">

**Author:** [@Cara410](https://discuss.elastic.co/u/Cara410)\
**Replies:** 8\
**Last updated:** [June 7, 2024, 7:05pm UTC](https://discuss.elastic.co/t/dateparsefailure-when-trying-to-overwrite-timestamp/360814 "2024-06-07T19:05:55Z")

</div>

Hello, I have been trying to get the timestamp to match the log entry and not the time it was ingested. I am using logstash 8.12.2 My log lines look like this: {"Timestamp":"2024-06-03 20:18:59.2251", "Message":"BLAH"}…

---

## [Filter Synthetics Tests for Synthetics Alert](https://discuss.elastic.co/t/filter-synthetics-tests-for-synthetics-alert/361054)

<div class="topic-metadata">

**Author:** [@DougR](https://discuss.elastic.co/u/DougR)\
**Replies:** 0\
**Last updated:** [June 7, 2024, 5:17pm UTC](https://discuss.elastic.co/t/filter-synthetics-tests-for-synthetics-alert/361054 "2024-06-07T17:17:18Z")

</div>

I updated our Elastic stack to 8.14.0 earlier this week when it became available. As I was working with our synthetics, I observed that it is now possible to create a new Synthetics alert rule in addition to the default …

---

## [Searching from keyword field in Logstash with query](https://discuss.elastic.co/t/searching-from-keyword-field-in-logstash-with-query/361048)

<div class="topic-metadata">

**Author:** [@Ma\_G](https://discuss.elastic.co/u/Ma_G)\
**Replies:** 0\
**Last updated:** [June 7, 2024, 3:20pm UTC](https://discuss.elastic.co/t/searching-from-keyword-field-in-logstash-with-query/361048 "2024-06-07T15:20:42Z")

</div>

I would like to filter out the string "Alert" in the message field of my index. The field is a keyword field. To achieve this, I have written the following: filter { mutate { add\_field =\> {"secret" =\> "\<my\_s…

---

## [Logstash output date, using timestamp of filebeat instead of server time](https://discuss.elastic.co/t/logstash-output-date-using-timestamp-of-filebeat-instead-of-server-time/360845)

<div class="topic-metadata">

**Author:** [@Mansoor\_Ur\_Rehman](https://discuss.elastic.co/u/Mansoor_Ur_Rehman)\
**Replies:** 13\
**Last updated:** [June 7, 2024, 3:51pm UTC](https://discuss.elastic.co/t/logstash-output-date-using-timestamp-of-filebeat-instead-of-server-time/360845 "2024-06-07T15:51:41Z")

</div>

I have setup a cluster filebeat -\> logstash -\> elasticsearch, i have a lifecycle policy that makes the indexes readonly after 7 days. i have out for logsatash index =\> "log-%{\[fields\]\[log\_name\]}-%{+YYYY.MM.dd}" …

---

## [Allow old conversations to be resurrected](https://discuss.elastic.co/t/allow-old-conversations-to-be-resurrected/361037)

<div class="topic-metadata">

**Author:** [@hughes](https://discuss.elastic.co/u/hughes)\
**Replies:** 4\
**Last updated:** [June 7, 2024, 2:41pm UTC](https://discuss.elastic.co/t/allow-old-conversations-to-be-resurrected/361037 "2024-06-07T14:41:05Z")

</div>

I'd like to suggest that old conversations/threads should only be closed when the original poster marks their question/topic as resolved and not after 28 days. To me, this seems like 28 days expiration is just a way for …

---

## [Filebeat not able to read logs from kubernetes pod](https://discuss.elastic.co/t/filebeat-not-able-to-read-logs-from-kubernetes-pod/360966)

<div class="topic-metadata">

**Author:** [@snappie](https://discuss.elastic.co/u/snappie)\
**Replies:** 0\
**Last updated:** [June 6, 2024, 12:57pm UTC](https://discuss.elastic.co/t/filebeat-not-able-to-read-logs-from-kubernetes-pod/360966 "2024-06-06T12:57:01Z")

</div>

I am trying to input logs from Azure file share, so I created a volume mount in the Beats yaml file and was able to get the logs mounted under "/mnt/smbshare/Logs/\*.log". But filebeat is not able to read those logs with…

---

## [Plesk - Docker Error](https://discuss.elastic.co/t/plesk-docker-error/360999)

<div class="topic-metadata">

**Author:** [@appuni](https://discuss.elastic.co/u/appuni)\
**Replies:** 1\
**Last updated:** [June 7, 2024, 1:32pm UTC](https://discuss.elastic.co/t/plesk-docker-error/360999 "2024-06-07T13:32:51Z")

</div>

Hi Community, I have a Plesk server with Docker and I'm trying to install version 7.4 and I'm getting this error on startup. ERROR: \[1\] bootstrap checks failed. You must address the points described in the following \[1…

---

## [Kibana upgrade failed with v8](https://discuss.elastic.co/t/kibana-upgrade-failed-with-v8/361034)

<div class="topic-metadata">

**Author:** [@padmavathi](https://discuss.elastic.co/u/padmavathi)\
**Replies:** 2\
**Last updated:** [June 7, 2024, 12:18pm UTC](https://discuss.elastic.co/t/kibana-upgrade-failed-with-v8/361034 "2024-06-07T12:18:59Z")

</div>

Hi, I have upgraded kibana v8 from 7.17.16. I am getting the below error . Error: \[config validation of \[elasticsearch\].preserveHost\]: definition for this key is missing could you please help me. Thanks.

---

## [Connect remote cluster between a cluster disabled TLS/SSL and a cluster enabled TLS/SSL](https://discuss.elastic.co/t/connect-remote-cluster-between-a-cluster-disabled-tls-ssl-and-a-cluster-enabled-tls-ssl/361005)

<div class="topic-metadata">

**Author:** [@Huy\_Nguyen](https://discuss.elastic.co/u/Huy_Nguyen)\
**Replies:** 5\
**Last updated:** [June 7, 2024, 12:18pm UTC](https://discuss.elastic.co/t/connect-remote-cluster-between-a-cluster-disabled-tls-ssl-and-a-cluster-enabled-tls-ssl/361005 "2024-06-07T12:18:00Z")

</div>

I have a task migrate Elasticsearch from v7 to v8. I'd like new cluster add old cluster as a remote cluster. A cluster Elasticsearch v8 require enable https ssl/tls, however a cluster Elasticsearch v7 in prod environment…

---

## [How can I display visualizations that are specific to each user?](https://discuss.elastic.co/t/how-can-i-display-visualizations-that-are-specific-to-each-user/360915)

<div class="topic-metadata">

**Author:** [@Anupama2262](https://discuss.elastic.co/u/Anupama2262)\
**Replies:** 2\
**Last updated:** [June 7, 2024, 11:11am UTC](https://discuss.elastic.co/t/how-can-i-display-visualizations-that-are-specific-to-each-user/360915 "2024-06-07T11:11:23Z")

</div>

I've integrated a dashboard in my application using an iframe. For user-specific visualizations upon user login, I've applied a query parameter like \_a=(query:(language:kuery,query:'user\_id:example\_user\_id')) in iframe e…

---

## [APM Rum error code 400, data decoding error: gzip: invalid header](https://discuss.elastic.co/t/apm-rum-error-code-400-data-decoding-error-gzip-invalid-header/360923)

<div class="topic-metadata">

**Author:** [@Casper\_Thrane](https://discuss.elastic.co/u/Casper_Thrane)\
**Replies:** 6\
**Last updated:** [June 7, 2024, 9:16am UTC](https://discuss.elastic.co/t/apm-rum-error-code-400-data-decoding-error-gzip-invalid-header/360923 "2024-06-07T09:16:00Z")

</div>

Hi We are getting "error code 400, data decoding error: gzip: invalid header" when using the Rum agent. We can see the request Content-type header is set to "gzip", but it is not a header we are setting. Are we missing …

---

## [Connection Timeout for AWS-S3 Repository](https://discuss.elastic.co/t/connection-timeout-for-aws-s3-repository/360952)

<div class="topic-metadata">

**Author:** [@Sasan\_Askari](https://discuss.elastic.co/u/Sasan_Askari)\
**Replies:** 1\
**Last updated:** [June 7, 2024, 8:28am UTC](https://discuss.elastic.co/t/connection-timeout-for-aws-s3-repository/360952 "2024-06-07T08:28:16Z")

</div>

Hi,I want to save my backups in AWS,below is my elastic for my docker compose that is run and up and work well and i add to enviornment into this configuration: version: '3' services: elasticsearch: image: focker.…

---

## [Filebeat 8.14 not sending data to Elasticsearch self-hosted](https://discuss.elastic.co/t/filebeat-8-14-not-sending-data-to-elasticsearch-self-hosted/360971)

<div class="topic-metadata">

**Author:** [@menzbua](https://discuss.elastic.co/u/menzbua)\
**Replies:** 4\
**Last updated:** [June 7, 2024, 8:26am UTC](https://discuss.elastic.co/t/filebeat-8-14-not-sending-data-to-elasticsearch-self-hosted/360971 "2024-06-07T08:26:45Z")

</div>

Problem I want to test our migration from Elastic-Stack 7 to 8. I have set up an elasticserch and kibana server. This is working fine. Now, I try to send docker container logs from a filebeat 8 instance to the elasticsea…

---

## [Impact of CVE-2023-32002,CVE-2023-32003,CVE-2023-32004,CVE-2023-32005,CVE-2023-32006,CVE-2023-32558,CVE-2023-32559 on Kibana v8.6.2](https://discuss.elastic.co/t/impact-of-cve-2023-32002-cve-2023-32003-cve-2023-32004-cve-2023-32005-cve-2023-32006-cve-2023-32558-cve-2023-32559-on-kibana-v8-6-2/360834)

<div class="topic-metadata">

**Author:** [@Ankita\_Pachauri](https://discuss.elastic.co/u/Ankita_Pachauri)\
**Replies:** 1\
**Last updated:** [June 7, 2024, 8:23am UTC](https://discuss.elastic.co/t/impact-of-cve-2023-32002-cve-2023-32003-cve-2023-32004-cve-2023-32005-cve-2023-32006-cve-2023-32558-cve-2023-32559-on-kibana-v8-6-2/360834 "2024-06-07T08:23:29Z")

</div>

This is regarding CVE-2023-32002,CVE-2023-32003,CVE-2023-32004,CVE-2023-32005,CVE-2023-32006,CVE-2023-32558,CVE-2023-32559 new vulnerabilities identified by our nessus scanner, we are seeking confirmation on Kibana 8.6.2…

---

## [Shema Registry not showing in APM Service Map](https://discuss.elastic.co/t/shema-registry-not-showing-in-apm-service-map/360988)

<div class="topic-metadata">

**Author:** [@FranM](https://discuss.elastic.co/u/FranM)\
**Replies:** 1\
**Last updated:** [June 7, 2024, 7:33am UTC](https://discuss.elastic.co/t/shema-registry-not-showing-in-apm-service-map/360988 "2024-06-07T07:33:36Z")

</div>

Hello, I am using a Spring Boot Microservice as kafka producer, and I was wondering why I am not able to see the connections to Schema Registry in Service Map part in kibana APM part. I am using co.elastic.apm:apm-agen…

---

## [Is correct way register a snapshot repository for security?](https://discuss.elastic.co/t/is-correct-way-register-a-snapshot-repository-for-security/361013)

<div class="topic-metadata">

**Author:** [@zmaxutbekov](https://discuss.elastic.co/u/zmaxutbekov)\
**Replies:** 2\
**Last updated:** [June 7, 2024, 6:39am UTC](https://discuss.elastic.co/t/is-correct-way-register-a-snapshot-repository-for-security/361013 "2024-06-07T06:39:32Z")

</div>

Hello everyone. I have an elastic cluster with version 7.16.2. A crontab script is run on one node, which makes a snapshot. Now, the situation is like this, it was decided to add a repository snapshot registration and de…

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

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