Nrql-cli: invalid query key

Hello,

I’m trying to use nrql-cli for the first time. I’m getting an error Invalid query key.

This is the same API Key that I can successfully use with newrelic CLI.

How would I go about troubleshooting this?

Best,
Aleksey

Are you using this CLI tool: Try this tool: NRQL-Simple; Querying Insights in your CLI ???

If so, you’ll need an Insights Query API Key, different to the REST or Admin API keys you may have for other CLIs.

See here how to get an API key: https://docs.newrelic.com/docs/insights/insights-api/get-data/query-insights-event-data-api

1 Like

Hi @RyanVeitch – yes, I was following Try this tool: NRQL-Simple; Querying Insights in your CLI

I got a Query API key and I’m up and running now – thank you!!

2 Likes

Awesome! Thanks for letting us know