Dashboards & Visualizations

How to Extract a field from raw data

aditsss
Motivator

How can I extract the below field from raw:

The Total Process Time to publish in Kafka topic is (milli-sec)=5

The Total Process Time(milli-sec)=1

I want to extarct 1 and 5.

How can I fetch someone can guide me?

Labels (2)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @aditsss,

please try this regex

| rex "The Total Process Time[^\=]+\=(?<time>\d+)"

that you can test at https://regex101.com/r/wDUp7E/1

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @aditsss,

please try this regex

| rex "The Total Process Time[^\=]+\=(?<time>\d+)"

that you can test at https://regex101.com/r/wDUp7E/1

Ciao.

Giuseppe

Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...