Home / Companies / New Relic / Blog / Post Details
Content Deep Dive

Extract URL values using regex capture to improve your NRQL results

Blog post from New Relic

Post Details
Company
Date Published
Author
Ashton Hunger, Senior Software Engineer
Word Count
1,196
Language
English
Hacker News Points
-
Summary

New Relic has introduced a new regex capture feature to enhance querying capabilities within the New Relic Query Language (NRQL), addressing challenges associated with extracting data from URLs and other string attributes. Previously, querying such data required specific instrumentation, but the new capture function allows users to employ regular expressions to extract specific data points, such as account IDs within URL paths, facilitating more nuanced data analysis. Regular expressions in NRQL are based on Re2 syntax, enabling users to define capture groups to extract focused data segments. This functionality simplifies the process of discovering valuable insights by allowing users to facet, filter, and count unique occurrences within their telemetry data, such as identifying accounts with the highest usage or those experiencing performance issues. The tool aims to improve data analysis by making it easier to find patterns and extract meaningful information from complex datasets.