I have a bit of a mysterious issue: I have a lambda function which transports data from S3 bucket to AWS ES cluster. My lambda function runs correctly and reports the following:
All 6 log records added to ES
However added documents do not appear in AWS ElasticSearch index /_cat/indices?v
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open logs 3N2O9CqhSwCP6sj1QK5EQw 5 1 0 0 1.2kb 1.2kb
I'm using this lambda function https://github.com/aws-samples/amazon-elasticsearch-lambda-samples/blob/master/src/s3_lambda_es.js Lambda function's role has full permissions to ES cluster and S3 bucket. It can access S3 bucket because I can print out contents to Lambda's console log
Any ideas for further debugging are much appreciated!
Cheers
esDomaincorrectly? i.e. are you sure you're checking the same cluster (in the same region) you're sending the documents to? - Valbodyis when the request ends. There might be some useful info in there. Also why going through the trouble of reimplementing an ES client when you could simplyrequirethe official JS client and leverage it? - Valtype":"illegal_argument_exception","reason":"unknown setting [index.remote_addr] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"}]I suspect that lambda function was written for older version. Also request type is incorrect because for ES 6.3 it should be PUT instead of POST. Thank you! - thepolina