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

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Guided Onboarding with Auto-schema Is Now Generally Available

  We are excited to announce the General Availability of Guided Onboarding with Auto-Schematization ...

ATTENTION: We’re Moving! (AGAIN!)

The Splunk Community Slack is undergoing a system migration to keep our workspace secure and ...

Deep Dive: Optimizing Telemetry Pipelines in Splunk Observability Cloud

In this session, we will peel back the layers of Splunk Observability Cloud’s cost-optimization features. ...