Hello @academo,
Thank you for your anwser.
I’ve added - GF_DATAPROXY_LOGGING=true in my docker compose file (I couldn’t use the volume in the docker compose file)
In my container logs I have now more details :
logger=datasource t=2024-01-31T12:44:03.478517713Z level=debug msg="Applying default URL parsing for this data source type" type=amf-elasticiotoffice-datasource url=
logger=datasource t=2024-01-31T12:44:03.478528674Z level=debug msg="Data source URL doesn't specify protocol, so prepending it with http:// in order to make it unambiguous" type=amf-elasticiotoffice-datasource url=
logger=data-proxy-log t=2024-01-31T12:44:03.525231726Z level=info msg="Proxying incoming request" userid=1 orgid=1 username=admin datasource=amf-elasticiotoffice-datasource uri=/api/datasources/proxy/uid/c64d34d0-f36d-49a7-9822-4674b7cb7820/elastic/ method=POST body="{\"query\":{\"bool\":{\"filter\":[{\"range\":{\"utcDateTime\":{\"gte\": <XXXX>,\"lte\":<XXXXX>,\"format\":\"epoch_millis\"}}},{\"query_string\":{\"analyze_wildcard\":false,\"query\":\"deviceId: <XXXXX>\"}}]}},\"docvalue_fields\":[{\"field\":\"utcDateTime\",\"format\":\"epoch_millis\"}],\"sort\":[{\"utcDateTime\":{\"order\":\"desc\",\"unmapped_type\":\"boolean\"}}],\"size\":500}"
logger=secrets.kvstore t=2024-01-31T12:44:03.525994875Z level=debug msg="got secret value" orgId=1 type=datasource namespace=Elasticiotoffice
logger=data-proxy-log t=2024-01-31T12:44:03.526177754Z level=debug msg=Requesting url=https://<my_company_website>/elastic/
logger=data-proxy-log userId=1 orgId=1 uname=admin path=/api/datasources/proxy/uid/c64d34d0-f36d-49a7-9822-4674b7cb7820/elastic/ remote_addr=172.20.0.1 referer="http://localhost:3000/d/f988b064-36b7-440f-ab53-fa9942d20c67/test?orgId=1" t=2024-01-31T12:44:03.592228345Z level=error msg="Proxy request failed" err="Bad Gateway"
logger=context userId=1 orgId=1 uname=admin t=2024-01-31T12:44:03.592396396Z level=error msg="Request Completed" method=POST path=/api/datasources/proxy/uid/c64d34d0-f36d-49a7-9822-4674b7cb7820/elastic/ status=502 remote_addr=172.20.0.1 time_ms=116 duration=116.343422ms size=0 referer="http://localhost:3000/d/f988b064-36b7-440f-ab53-fa9942d20c67/test?orgId=1" handler=/api/datasources/proxy/uid/:uid/*
The log talks about protocol : Data source URL doesn't specify protocol
My {{ .JsonData.elasticUrl }} in the plugin.json file uses HTTPS.
I think I miss a configuration but I don’t know where, could you help me ?
Thank you