Splunk Search

How do you combine info from multiple events but for one customer in one table.

cspaid75
New Member

How do you combine info from multiple events but for one customer in one table or dashboard? For example:
Event1: Customer = 123456 State=”” Status=”200”

Event2: Customer = 123456 State=”NJ” Status=”500”
Event3: Customer = 123456 State field is missing Status=”400”
Dedup Customer
Where Status=”400”
Table Customer, State
Expected Result:
Customer State
123456 NJ

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try this.

index=foo | stats values(*) as * by Customer 
| where mvfind(Status, "400") | table Customer State
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...