Questions tagged [amazon-opensearch]

242 questions
0
votes
1 answer

Python OpenSearch retrieve records based on element in a list

So I need to retrieve records based on a field called "cash_transfer_ids" which is a python list. I want to retrieve all records whose cash_transfer_ids contain a specific id value (a string). What should the query be look like? Should I use match…
Chong Sun
  • 67
  • 5
0
votes
0 answers

Opensearch with term query returns no aggregations

I am trying to query data using the term aggregation in AWS OpenSearch to get the group by the result using 1 field. The query below working in their Dev tools successfully as expected. Attaching a screenshot below. But when I try to do this same…
0
votes
0 answers

Access Policy-Getting Error "User:anonymous is not authorized to perform:es:ESHttpGet because no resource-based policy allows the es:ESHttpGet action"

I am trying to avoid having to implement fine-grained ElasticSearch policy until we absolutely need it since it is irreversible. So, I am implementing a Domain JSON defined access policy with the conditions noting the IpAddress allowed or denied. …
0
votes
0 answers

Opensearch bulk upsert

Has anyone been able to implement the bulk upsert using AWS Opensearch javascript SDK? I have implemented the older version on Elasticsearch but that code doesn't seem to work on the new SDK.
Chris
  • 13
  • 5
0
votes
0 answers

SSH Tunnel/Forwarding not working for OpenSearch in VPC from EC2

I have created a OpenSearch cluster in AWS VPC with fine grained access. To login to OpenSearch Dashboard URL I created a bastion host(EC2) in public subnet of the same VPC. I have added security group to EC2 which has outbound rule to access…
0
votes
1 answer

Opensearch deleted documents not freeing up disk space and search performance getting degraded

We are using opensearch having elasticsearch v7.10.2 and we have a large index where we index data regularly and delete the data(which gets a month old) regularly as well but over a period of time now we are experiencing a degradation in search…
0
votes
1 answer

How to rename an OpenSearch domain (Elasticsearch cluster on AWS)?

The Amazon OpenSearch Service web console provides the option to Edit Cluster configuration, but there is no explicit way of changing a domain's name. Is there an alternative way (such as CLI or a classic web console hidden feature?
Ricardo
  • 3,696
  • 5
  • 36
  • 50
0
votes
1 answer

Sorting aggregated data in elastic search

I am doing a search that is doing an aggregation by xyz field and getting the latest version. Now I need to sort the aggregated data based on created field. Let me know how we can do that. { "query": { "query_string": { …
Puneet Dewan
  • 55
  • 2
  • 8
0
votes
0 answers

OpenSearch error Rejecting request because cold storage is not enabled on the domain

I have an AWS OpenSearch domain with ultrawarm/cold storage disabled. My application/error log is spammed (new entries every 2-5 minutes) with the following error [2022-09-05T09:29:13,909][ERROR][o.o.b.OpenSearchUncaughtExceptionHandler]…
0
votes
0 answers

How to enable CORS in Amazon OpenSearch / Elasticsearch via a REST API?

We are getting started with Amazon OpenSeach / Elasticsearch. We have built a 7.10 cluster and need to enable CORS in it: http.cors.enabled : true http.cors.allow-origin: "*" http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT,…
Eugene Goldberg
  • 14,286
  • 20
  • 94
  • 167
0
votes
1 answer

Is it possible to port-forward Opensearch cluster deployed on AWS to local

I am new to AWS and trying to find a way with which i can port-forward a opensearch cluster deployed on AWS. Looking at aws opensearch help i am not able to find any command that can do port-forwarding. Is there anyway to port-forward without ssh…
Jon Abraham
  • 851
  • 3
  • 14
  • 27
0
votes
0 answers

Prevent CDK from creating a new OpenSearch domain

I modified some parameters of our OpenSearch domain and did a new CDK deploy. Turns out that CDK decided to create a new cluster and redirect both the lambda that performs search and the Fargate task that indexes new documents to this new cluster.…
Knut Hellan
  • 71
  • 1
  • 8
0
votes
1 answer

AWS OpenSearch - this action would add [10] total shards, but this cluster currently has [3996]/[4000] maximum shards open

I have an OpenSearch cluster on AWS and it has some data. The data are ingested from the Kinesis Firehose, but I am getting the following…
Jananath Banuka
  • 2,951
  • 8
  • 57
  • 105
0
votes
1 answer

Why I have AWS OpenSearch indices with 0 shards

I have an aws opensearch cluster and there are some indices. When I try to get the indices, I see some indices have 0 shards. What does that mean? index shard prirep state docs store ip …
Jananath Banuka
  • 2,951
  • 8
  • 57
  • 105
0
votes
1 answer

Missing rollover_alias index setting in OpenSearch

I am trying to setup index rollover in OpenSearch with simple min_doc_count condition, but I am getting "message": "Missing rollover_alias index setting [index=app_logs-000002]" error. I have a rollover alias called app_logs, and also have the…
Michal Drozd
  • 1,311
  • 5
  • 13
  • 26