vduseev / opensearch-logger

Python Opensearch handler for the standard python logging framework
https://pypi.org/pypi/opensearch-logger
Other
24 stars 3 forks source link

Doesn't work after upgrading to OpenSearch 2.11 #13

Open alexey2baranov opened 5 months ago

alexey2baranov commented 5 months ago

Not sure this is a bug, but anywhay. Suddenly I get 403 error after upgrading to current OpenSearch v2.11. Don't you know why ?

[]: opensearch (base.py:281) - WARNING - POST https://search-your-opensearch-domain-gudntas4y3f2ut4xbdl7opf4aq.us-east-1.es.amazonaws.com:443/_bulk [status:403 request:0.958s]

vduseev commented 5 months ago

Hey Alexey, thanks for reporting it.

I don't currently have the time to check it. Looks like you are using AWS version of OpenSearch. I'll be sure to test the package against 2.11 in AWS, when I get to it.

alexey2baranov commented 5 months ago

@vduseev thanks for helping. Yeah you are right we are using AWS OpenSearch

tuky commented 1 month ago

Are you using serverless or not? Have you tried sending data to your opensearch service manually via https://opensearch.org/docs/latest/clients/python-low-level/#connecting-to-amazon-opensearch-service / https://opensearch.org/docs/latest/clients/python-low-level/#connecting-to-amazon-opensearch-serverless?

This here seems to be working for us:

image

-> service aoss for serverless and different auth class (AWSV4SignerAuth instead of AWS4Auth).