amazon-elasticsearch

How to store date range data in elastic search (aws) and search for a range?

戏子无情 提交于 2021-02-05 20:38:31
问题 I am trying to store hotel room availability in elasticsearch. And then I need to search rooms those are available from a date till another date. I have come up with two ways to store data for availability, and they are as follows: Here availability dictionary store all dates and value of each date key is true of false, representing its available on that day or not. { "_id": "khg2uo47tyhgjwebu7624787", "room_type": "garden view", "hotel_name": "Cool hotel", "hotel_id": "jytu64r982u0299023",

Connecting to Elasticsearch - Amazon Elasticsearch service - IAM user

坚强是说给别人听的谎言 提交于 2020-04-14 08:08:56
问题 I have selected "Allow access to one or more AWS accounts or IAM users" My access policy { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::12345678910:user/elastic" }, "Action": "es:*", "Resource": "arn:aws:es:eu-west-1:123456789:domain/elastic-cluster/*" } ] } I have created an IAM profile - user - elastic password -hisdfdsfds Access key Id - sdsfdssdfdsfdsfdsfsdfsd Secret Access Key - sdsfdsfdsfsdfdsfds when I try to connect $params = array()

Connecting to Elasticsearch - Amazon Elasticsearch service - IAM user

泪湿孤枕 提交于 2020-04-14 08:08:30
问题 I have selected "Allow access to one or more AWS accounts or IAM users" My access policy { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::12345678910:user/elastic" }, "Action": "es:*", "Resource": "arn:aws:es:eu-west-1:123456789:domain/elastic-cluster/*" } ] } I have created an IAM profile - user - elastic password -hisdfdsfds Access key Id - sdsfdssdfdsfdsfdsfsdfsd Secret Access Key - sdsfdsfdsfsdfdsfds when I try to connect $params = array()

Why do I get 403 forbidden error while posting a json to elasticsearch endpoint on AWS?

北战南征 提交于 2020-01-03 05:45:09
问题 I am posting a json to AWS elasticsearch,using a java lambda function. public Object handleRequest(DynamodbEvent dynamodbEvent, Context context) { //code to general the json document AmazonDynamoDBClient amazonDynamoDBClient = new AmazonDynamoDBClient(); List<DynamodbEvent.DynamodbStreamRecord> dynamodbStreamRecordlist = dynamodbEvent.getRecords(); if (!dynamodbStreamRecordlist.isEmpty()) { DynamodbEvent.DynamodbStreamRecord record = dynamodbStreamRecordlist.get(0); if(record.getEventSource()

Can I install plugin on Amazon Elasticsearch Service?

跟風遠走 提交于 2019-12-23 06:56:59
问题 How to install elasticsearch-river-mongodb plugin to Amazon Elasticsearch Service? 回答1: From Amazon ES limits Custom plugins The service does not support custom plugins. However, the service does support several standard plugins, including Kibana, ICU, and Kuromoji. There are few (necessary) plugins that are installed by deafult but you cannot install your own 来源: https://stackoverflow.com/questions/36403945/can-i-install-plugin-on-amazon-elasticsearch-service

How to access Kibana from Amazon elasticsearch service?

谁说胖子不能爱 提交于 2019-12-17 23:22:36
问题 I created Amazon elasticsearch service and populated data into it using logstash, which has been installed on an EC2 instance. On the Amazon elasticservice console page, there will be a link to access Kibana. search-cluster_name-XXXXXXXXXXXXXXXXXXX.region_name.es.amazonaws.com/_plugin/kibana/ when I click the link, browser is throwing the following error. {"Message":"User: anonymous is not authorized to perform: es:ESHttpGet on resource: arn:aws:es:region_name:account_id:domain/cluster_name/

Indexing on Amazon Elasticsearch Service - Bulk Insert

坚强是说给别人听的谎言 提交于 2019-12-12 14:15:03
问题 I have an Amazon Elasticsearch instance which is active, and I'm able to connect and execute statements through 'Sense' from Chrome. But when I try to do bulk inserts, it shows 'timeout' error. I've been trying through both Python (bulk helper) and logstash module, getting the same error both ways. Below is the code used import psycopg2 from elasticsearch import Elasticsearch, helpers import time connection = psycopg2.connect(database='dbname', user='username', password='password', host='abc

How to secure access to AWS Elasticsearch from a mobile application

柔情痞子 提交于 2019-12-11 15:40:01
问题 I'm building a mobile app that requires access to an AWS Elasticsearch (ES) cluster and would like to make sure only the app can make queries. Assuming I'm not going to distribute AWS user credentials with my mobile application, what would be a secure way to allow read access to an AWS Elasticsearch cluster? Reading this AWS post I gathered that I can setup a reverse proxy to sign my requests to Elasticsearch. If I follow this route, how would I secure access to the EC2 instance port where