Splunk Search

How does correlate command work?

emaccaferri
Communicator

Hi!

I would like to know how the correlation percentage between fields is obtained and so on.
Is it possible?
I know that I can read the Python script of some commend like X11, but I couldn't find Correlate.

Thank you,
Erica

0 Karma

jtrucks
Splunk Employee
Splunk Employee

The command seems imbedded in the splunkd binary, but the process is a mathematical construct. For some details on how that statistical approach can work, check out the Statistical Models for Co-occurrence Datapaper written by Hofmann and Puzicha in 1998. I am not sure if these methods are employed in that manner or if the command written by Splunk engineers employs other methods.

Also see the correlate command documentation, which is rather sparse to date.

--
Jesse Trucks
Minister of Magic
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...