Splunk Search

Hello experts, I would like to calculate the pearson correlation between all my fields ?

faisal_alazem
New Member

I visited the documentation and I see that we can only compute the pearson correlation between two fields at a time with command |score pearsonr field_a against field_b . How can I computer the pearson correlation between all the fields in my data ? Assuming I have a dataset with 5 columns, my output should give me 32 pairs of pearson correlations.

In a programming language this can be easily coded with a double for loop. I am wondering how to do this in splunk.

Thank you

Tags (2)
0 Karma

jraso
Explorer

Hi Faisal,

I managed to do that yesterday following these steps from the MLTK documentation:

https://docs.splunk.com/Documentation/MLApp/5.1.0/API/CorrelationMatrix

Hope it helps!

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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