New Relic Logs API

API respond with 403 error.

Sharing logs from Kubernetes cluster (Using newrelic-logging chart from https://helm-charts.newrelic.com, version: 1.1.4):
[ERROR] Error making an HTTP request. Got status code: 403

Also trying to use curl command:
curl -H ‘Content-Type:application/json’ -H ‘X-License-Key:XXX’ -d ‘{“message”:“sent from curl”,“key2”:“val2”}’ https://log-api.eu.newrelic.com/log/v1 -v

Got:
< HTTP/1.1 403 Forbidden

But we have another old cluster, and logs are working on the old cluster.

Hi @peya - Happy to help here! That 403 is generally an indication of an incorrect license key or an incorrect endpoint. For example you are using log-api.eu.newrelic.com in your example so you would want to ensure you are using a license key from an EU account. Alternatively you could use log-api.newrelic.com/log/v1 for a non-EU account.

Could you double-check those values and let us know how it goes? If that still fails then we can definitely open a ticket to dig in a little deeper.

I’ve double checked. I’ve tried both API endpoints, so I see the same 403 error code for both endpoints.
Let’s open a ticket and check our account.

Hi @peya
I’ve sent you a DM here :smiley: