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!

Enterprise Security Content Update (ESCU) | New Releases

In January, the Splunk Threat Research Team had one release of new security content via the Splunk ES Content ...

Expert Tips from Splunk Professional Services, Ensuring Compliance, and More New ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Observability Release Update: AI Assistant, AppD + Observability Cloud Integrations & ...

This month’s releases across the Splunk Observability portfolio deliver earlier detection and faster ...