c-scale-community / use-case-aquamonitor

Apache License 2.0
2 stars 1 forks source link

Job log retrieval #35

Open cesarpferreira opened 1 year ago

cesarpferreira commented 1 year ago

With our current deployment configuration, when we try to retrieve job logs, it tries to contact vito's elasticsearch cluster by default, can we configure it to contact an elastic search deployed in our cluster?

jdries commented 1 year ago

fix committed, to be tested when we have a new image Setting can be done via env var: LOGGING_ES_HOSTS=https://your_host LOGGING_ES_INDEX_PATTERN="openeo--index-1m"

cesarpferreira commented 7 months ago

Hi @jdries , We tried to configure logging for our endpoint looking for more information to help us debugging this problem. We configured the env vars as you described and we got the following error:

Printing logs:
[{'id': '', 'code': 'Internal', 'level': 'error', 'message': "Log collection for job j-24020549db7f49e0a944c3fd522d2292 failed. (req_id: r-2402052bea1745068bcde4d88500b1fc) UnsupportedProductError('The client noticed that the server is not Elasticsearch and we do not support this unknown product')"}]

We are using Opensearch (the open source version) instead of Elasticsearch, which looks like it is not supported. Any idea of what we could do to solve this problem?