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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...