Splunk Search

How to relate two different events in two different indexes based on related fields?

svercelli
Path Finder

So what I have are two different types of events. However, both have an key field that connect the two events together. (One event type has a keynum field that has its unique ID number, and the other has a relatedkeynum field that connects these events to the first. Is there a way to run a search on the first event types and bring up only events from the second type based on their matching keynum's?

0 Karma
1 Solution

szabados
Communicator

index=otherindex [search index= | rename relatedkeynum as keynum | return $keynum ]

View solution in original post

0 Karma

szabados
Communicator

index=otherindex [search index= | rename relatedkeynum as keynum | return $keynum ]

0 Karma

pradeepkumarg
Influencer
0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...