Splunk Search

How can I edit my search to chart relationships between values for a certain field in my data?

jlkokko
Path Finder

I have a simple search parsing project activity logs to pull a list of projects and people working on those projects:

index="main" | dedup Author Proj_repo | stats list(Proj_repo) AS Project by Author

This successfully returns a list of Authors and list of their projects. What kind of function(s) could I use to chart the relationships between authors? Something showing the Authors and how they're linked to the other Authors across projects.

0 Karma

woodcock
Esteemed Legend

Here are some:

index="main" | rename Proj_repo AS Project
| eventstats count AS updates BY Author Project
| eval updatesThisAuthor  = Project . ":" . updates
| eval updatesThisProject = Author  . ":" . updates
| multireport
   [ stats values(Project) dc(Project) values(updatesThisAuthor)  BY Author ]
   [ stats values(Author)  dc(Author)  values(updatesThisProject) BY Project ]

jlkokko
Path Finder

Ty for the pointer - One step forward 🙂

Here's a sample of the output columns I get:

Author   Project   dc(Author)   dc(Project)   values(Author)   values(Project)

I get values under Author, dc(Project) and values(Project). All other columns are empty.

0 Karma

jlkokko
Path Finder

just noticed if I switch the stats func under mutli report I can get a value for dc(Author) so that gives me an additional value needed...

0 Karma

woodcock
Esteemed Legend

I had a typo and used count instead of updates. I edited the original answer to fix. Try it now.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...