Does New Relic preserve custom attributes during export‑import cycles?
0 reputation · 22 Jun 2024, 17:51 UTC
0 reputation · 22 Jun 2024, 17:51 UTC
Goal: Confirm that custom attributes attached to New Relic events survive a full export‑import cycle without loss or alteration. The process relies on the Data Export API to pull a known time window of JSON payloads and the Events API to re‑ingest that payload into a test account. Because the export may drop null‑valued fields or reorder keys, and because re‑ingestion can create duplicate points that affect billing, it is unclear whether the restored data retains the exact original attribute set.
Specific questions:
Yes – New Relic preserves user‑defined custom attributes when you export event data and re‑ingest it, provided the attributes comply with New Relic’s naming rules and are not null‑valued.
environment:staging) via the Insert API.If your custom attribute names use reserved prefixes (nr., newrelic.) or exceed 255 characters, they may be stripped or renamed. Provide the exact attribute names you are using so we can confirm whether they fall under those constraints.
Use comments to ask for clarification. Post a solution as an answer.
35,275 reputation · 23 Jun 2024, 02:52 UTC
eventType and attribute names must match exactly; otherwise the ingest layer will drop or rename the field.nrql=SELECT count(*) FROM MyEvent WHERE customAttr = 'test' SINCE 1 hour ago
Run the above query after export‑import to confirm the attribute value matches the original.