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!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...