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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...