Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› New Relic Query Language (NRQL)
Cyber Security

New Relic Query Language (NRQL)

← Back to Glossary
By NHI Mgmt Group Updated November 3, 2026 Domain: Cyber Security

NRQL is a query language for retrieving, filtering, aggregating and visualising telemetry data stored in New Relic. It is used to search event, metric and trace data with functions, clauses and faceting, so teams can analyse application and infrastructure behaviour and build dashboards or alerts.

What NRQL is for

NRQL is the querying layer that turns New Relic telemetry into answers. It lets practitioners search events, metrics, and traces, then filter, aggregate, and facet the results so they can spot behaviour patterns, compare services, and drive dashboards or alerts from observability data rather than raw streams.

Because NRQL sits on top of operational telemetry, its value is less about syntax alone and more about the decisions it supports. A well-built query can show latency spikes, error concentration, deployment effects, or infrastructure drift quickly enough to influence incident triage and day-to-day performance review.

How NRQL works with telemetry data

NRQL is designed around the object model of observability data. Users typically query named event types, metric sets, or trace records, then narrow the result set with predicates and reshape it with aggregation functions. That makes the language useful for both point-in-time investigation and ongoing trend analysis.

Its practical strength is that it can condense high-volume telemetry into a small number of operational signals. Faceting helps break results into dimensions such as host, service, region, endpoint, or transaction type, while time-based comparisons make it easier to distinguish transient noise from sustained change.

For teams building dashboards, NRQL also acts as the logic layer behind the chart. The same underlying query that powers a visualisation can usually be adapted into an alert condition, which is why query design affects both what people see and what the platform can notify on.

Common NRQL usage patterns

Most NRQL use falls into three patterns: exploratory queries during troubleshooting, repeated dashboard queries for operational monitoring, and alert-oriented queries that express a threshold or anomaly in telemetry terms. The same language therefore serves both analysis and automation, but the intent changes how strict or broad the query should be.

Practitioners often use narrower filters when they want to isolate a single workload or release window, then broaden the query when they want service-wide or fleet-wide context. That balance matters because overly specific filters can hide a systemic issue, while overly broad queries can bury the signal in unrelated activity.

NRQL also encourages a measurement mindset. Instead of asking only whether something failed, teams can ask how often it failed, where it failed, how the distribution changed, and whether the change correlates with deploys, traffic shifts, or resource saturation.

Why query design matters in observability

NRQL is only as useful as the telemetry it is pointed at and the questions it is asked to answer. If events are inconsistent, labels are missing, or metrics are high-cardinality in the wrong places, the query can still run but the insight may be misleading or incomplete.

That is why good observability practice treats query design as part of analysis quality, not just report writing. Clear naming, consistent dimensions, and disciplined use of time windows make it much easier to compare services, interpret anomalies, and build repeatable operational views.

In mature environments, NRQL becomes a shared language between operations, engineering, and incident response. It translates platform telemetry into a form that can be reviewed, tuned, and acted on without leaving the observability workflow.

Risk and Threat Considerations

NRQL itself is not the primary security control, but it can expose operational blind spots if teams assume the query layer is telling the whole story. Poorly scoped queries, missing telemetry, or weak dashboard logic can mask failures, delay response, or understate the blast radius of an incident.

Failure mechanism: Incomplete data, over-narrow filters, or weak alert logic can produce false confidence, especially when a dashboard only reflects a subset of services, accounts, or time ranges.

Impact: Investigators may miss active degradation, security-relevant anomalies, or the early signs of abuse, which increases dwell time and makes post-incident analysis less reliable.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while NIST CSF 2.0, CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0DE.CM-01 — Monitoring for Unauthorized Personnel, Connections, Devices, and SoftwareNRQL is used to monitor telemetry and surface anomalous service behaviour.
DE.AE-02 — Analysis of Detected EventsNRQL helps analysts aggregate and compare events during investigation.
Recommendation — Use monitored telemetry queries to detect abnormal behaviour and support continuous monitoring. Use query results to analyze anomalies, trends, and incident signals quickly.
CIS Controls v8CIS-8 — Audit Log ManagementNRQL queries are commonly built on logs, traces, and event telemetry for investigation and alerting.
Recommendation — Centralize telemetry and query it consistently to support detection and incident review.
OWASP API Security Top 10API9 — Improper Inventory ManagementNRQL depends on accurate telemetry sources and service inventory to produce meaningful results.
Recommendation — Maintain accurate service and telemetry inventory so queries cover the assets you intend to monitor.
NIST SP 800-53 Rev 5AU-6 — Audit Record Review, Analysis, and ReportingNRQL supports review and analysis of recorded operational events and traces.
Recommendation — Use query-driven analysis to review audit and telemetry records for security and operations.

Practitioner Guidance

Why practitioners should care: Treat NRQL queries as part of the control plane for observability, because the quality of the question directly shapes the quality of the answer. A useful query is one that is stable enough for routine monitoring but specific enough to surface the behaviour you actually need to see.

Common misunderstanding: A working query is not automatically a good query. Teams sometimes optimise for convenience or visual appeal, then later discover the query omits a critical dimension, hides low-volume failures, or is too brittle to reuse during an incident.

Practitioner takeaway: Review dashboard and alert queries as operational artefacts, not one-off analyses, and keep them aligned to the telemetry signals that matter most to service health.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org