Authenticating Opensearch server for custom logging

Hi all,

I have my meteor app running on Galaxy and would like to save logs for more than a week. I checked this page - Logs | Galaxy Support - and setup my server at AWS. However, how do I provide galaxy with credentials to the Elasticsearch server?

I tried this:
USER_LOG_DESTINATION: https://username:password@my-opensearch-server.com

But I got this error
Error parsing USER_LOG_DESTINATION URL: parse “https://username:password”: invalid port “:example-password” after host

Do I provide credentials via other env variables? I certainly would not like to have my server open to the public internet without credentials.

Thanks,
Arjun

I made some progress here. Looks like the port needs to be set explicitly, so I set it like so and that error went away.

USER_LOG_DESTINATION: https://username:password@my-opensearch-server.com:443

However, so sign of any logs on my Opensearch server. I have managed to send dummy logs with curl like this

curl -X POST “https://username:password@my-opensearch-server.com:443/app_logs/_doc” -H “Content-Type: application/json” -d @test-log.json

And those logs get sent and are visible in Opensearch. But no galaxy logs yet.

Hello @arjunkamath

Were you able to create the OpenSearch template to receive the logs from Galaxy? I checked, and our support team responded to you via chat this morning. Were you able to complete the procedure?

I’ll ask our support team to give you special attention and assist you in testing this setup.

Hey Philip

Thanks for the offer, I would really appreciate some support.

I followed the instructions from here and it seems to have succeeded

However the logs are not yet visible in Opensearch.

Hi @arjunkamath , I replied to you via chat this morning.

It looks like a few details might be missing to make this work. I believe the issue could be related to your OpenSearch version.