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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...