58,317 questions
3
votes
1
answer
34
views
Elastic search replacing scroll for migration
old scroll stuff doesn't work since migrating. Heres the old code
private RestHighLevelClient client;
response = client.searchScroll(new SearchScrollRequest(response.getScrollId()).scroll(TimeValue....
2
votes
1
answer
54
views
Migrating Elasticsearch no subAggregation anymore
I am migrating Elasticsearch to version 7.17.29 getting rid of RestHighLevelClient
But I've encountered an issue since subAggregation is no longer present.
This is the code I am trying to migrate.
...
Best practices
1
vote
1
replies
46
views
Azure Load Balancer vs Application Gateway for Elasticsearch
After deploying the DEMAND ES Azure Web App in PaaS, we started seeing:
Slow responses from ElasticSearch.
ElasticSearch node overload.
Search thread pool queue saturation.
429 errors and ...
Advice
0
votes
0
replies
25
views
How to apply multi-tenancy pre-filters to all Spring Data Elasticsearch repository queries (including findById and custom @Query)?
I am trying to implement multi-tenancy in a Spring Boot application using Spring Data Elasticsearch.
My goal is:
Automatically inject a tenantId filter into all Elasticsearch queries
This must apply ...
0
votes
1
answer
124
views
How to fetch data from two different dataview using LOOKUP JOIN in Elastic?
I am trying to get data from two different dataviews in Elastic (8.17.3) based on common field value using ES|QL but getting parsing error. Below is my query
FROM k8s-ss-*
| LOOKUP JOIN akamai ON k8s-...
Advice
0
votes
5
replies
51
views
Checking if documents have been refreshed in Elasticsearch
My application has an in-memory cache that caches all documents that were recently written (i.e. create or replace) to an index on a multi-sharded replicated Elasticsearch. The index operations are ...
0
votes
0
answers
26
views
Elasticsearch JVM Native Memory Tracking Shows Lower Usage Than RSS
I need some help understanding the memory behaviour of our Elasticsearch data nodes.
Elasticsearch version is 9.0.0.
We have 8 data nodes in production. Each node has 16 GB of RAM, and the JVM options ...
0
votes
0
answers
63
views
C# ELastic.Clients.Elasticsearch 9.2.1 - how to protect sensitive fields?
As far as I know, there's a way to put fields into Elasticsearch which can be used for searching, but won't be returned on results. My use case is a collection of integer values paired with a customer ...
0
votes
0
answers
50
views
Spring Data Elasticsearch adds new Date field as text in existing index mapping
I'm using Kotlin + Spring Boot 3.4.1 with spring-boot-starter-data-elasticsearch and Elasticsearch 8.12.2.
Existing document:
@Document(indexName = "crashes_summary")
data class CrashSummary(...
0
votes
2
answers
69
views
We do not use Scroll Query or PIT, What caused our ElasticSearch Cluster big OpenContexts Spike
We experienced OpenContexts spikes in our ElasticSearch 6.8 environment. Since we’re not using Scroll Queries or Point in Time (PIT), I’d like to understand:
What could be causing these OpenContexts ...
0
votes
0
answers
28
views
How to validate a raw Elasticsearch DSL query string with Elastic.Clients.Elasticsearch v8?
I am using the Elastic.Clients.Elasticsearch v8.19.11 client to connect to Elasticsearch. I want to validate a DSL query provided as a raw JSON string.
I'm not looking for simple JSON validation. ...
0
votes
1
answer
89
views
Elasticsearch range query on date field with epoch milliseconds returns 0 hits
I'm trying to query documents in Elasticsearch by a date field stored as epoch milliseconds. The mapping for my index looks like this:
"createdAt": {
"type": "date",
&...
1
vote
1
answer
98
views
Logs not showing in Kibana
I'm unable to see the logs in Kibana. I have installed Filebeat on Kali and Elasticsearch,Logstash and Kibana on Ubuntu. I want that Filebeat should pass logs to Logstash, then Logstash should pass to ...
0
votes
1
answer
78
views
ElasticSearch stopped logging
I have an ELK database with the ElasticSearch logstash and Kibana each set up on a different docker container on the same host.
The problem I am having is that the ElasticSearch server stopped logging ...
0
votes
1
answer
82
views
Elasticsearch bucket_path keep getting Validation Failed: 1: No aggregation found for path
POST huawei-monitor-logs-*/_search
{
"size": 0,
"query": {
"term": {
"event.original": "down"
}
},
"aggs": {
"...