Splunk Search

Rex help need to capture two values returned by query as fields

irishmanjb
Path Finder

Hello Splunkers
I have a query that returns two possible values

11/06/19 16:50:59.54-06:00 [104348] Special Finance: Customer Accepted Terms
11/05/19 17:03:36.71-05:00 [506779] Special Finance: Customer Qualified

What I want to do is capture "Customer Accepted" and "Customer Qualified" as two separate fields so I can present them with some metrics.

Ultimately I want to have a report like this

Host Customer Qualified Customer Accepted adoption rate
Location 1 10 5 50%

thanks in advance

Tags (1)
0 Karma
1 Solution

mayurr98
Super Champion

try this:

index=<your_index>|  rex "(?<field1>Customer Accepted)"|  rex "(?<field2>Customer Qualified)"

View solution in original post

0 Karma

irishmanjb
Path Finder

great info thanks

0 Karma

mayurr98
Super Champion

try this:

index=<your_index>|  rex "(?<field1>Customer Accepted)"|  rex "(?<field2>Customer Qualified)"
0 Karma
Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...