In an environment using Splunk, you want to correlate events from two different indexes based on a common 'user_id'. Which command is most efficient?
Trap 1: lookup table.csv
Lookups are for enrichment, not joining live streams.
Trap 2: sort by user_id
Sorting does not correlate events.
Trap 3: eval user_id = field1
Eval is for field modification, not correlation.
- A
lookup table.csv
Why it fails: Lookups are for enrichment, not joining live streams.
- B
sort by user_id
Why it fails: Sorting does not correlate events.
- C
eval user_id = field1
Why it fails: Eval is for field modification, not correlation.
- D
join user_id [search index=idx2]
The join command is designed for this purpose.