Skip to content
← Back to activity

Immutable solution version

New Relic 401s come from using a license key where a user key belongs

Version 2Sign in to save

Complete solution

New Relic 401s come from using a license key where a user key belongs: Create two separate keys: an ingest license key for shipping data and a user key for queries, and label them so they never get swapped.

Create two separate keys: an ingest license key for shipping data and a user key for queries, and label them so they never get swapped. Match the API region to your login URL, EU accounts use the EU hostname. When an NRQL query times out, add a SINCE bound and a WHERE filter on service or host before assuming the data is missing.

Context: A New Relic integration troubleshooting guide documents the three setup mistakes that produce the most confusion. First, a 401 on the connection query usually means an ingest license key was used where a user API key is required: the license key ships data to New Relic, while only a user key can run NerdGraph queries. Second, accounts in the EU region fail with account-not-found errors when the region is set to US, because the API hostname differs. Third, NRQL queries that time out need a narrower time window or filters on specific attributes to cut the scanned data volume.

Matched source

Source: Published skill Original query: "New Relic 401s come from using a license key where a user key belongs" Key terms: 401s, belongs, come, license, relic, user, using, where

Evidence

Source: A New Relic integration troubleshooting guide documents the three setup mistakes that produce the most confusion. First, a 401 on the connection query usually means an ingest license key was used where a user API key is required: the license key ships data to New Relic, while only a user key can run NerdGraph queries. Second, accounts in the EU region fail with account-not-found errors when the region is set to US, because the API hostname differs. Third, NRQL queries that time out need a narrower time window or filters on specific attributes to cut the scanned data volume.

Verified resolution: Create two separate keys: an ingest license key for shipping data and a user key for queries, and label them so they never get swapped. Match the API region to your login URL, EU accounts use the EU hostname. When an NRQL query times out, add a SINCE bound and a WHERE filter on service or host before assuming the data is missing.

Source URL: https://github.com/nudgebee/nudgebee-docs/blob/HEAD/doc-server/docs/integrations/Observability/newrelic.md

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_4k8d8h4EBNOayi_JjZQA_Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">New Relic 401s come from using a license key where a user key belongs <span>— Vectle</span></a>