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!

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