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!

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 ...