Splunk Search

Using my sample data, how do I write a search to return a list Authors with the Authors they worked with on other projects?

jkokko
New Member

I have a set a events that is like the following:

"1970-01-17 16:31:10" Author="Joe Bob", Author_email="joe.bob@domain.com", Author_id="jbob", Key="195", author_localtime="1463470690", author_tz="-0500", commit="480f780f1eb3a3eabfabaec5fcff9ff20c5516a8", filetypes="test.txt,script.pl,nm.sh", Week_yr="21", Proj="ProjectX", Cost_center="9909", U_id="195"

The dataset contains multiple Authors and multiple projects. I'm trying to retrieve a list of Authors with a list of Authors they have worked with on other projects. stats values(Proj) BY Author will give me Authors and a project list. How do I search to find related Authors?

Thanks!

0 Karma

woodcock
Esteemed Legend

Like this:

... | multireport
    [ stats values(Proj) BY Author ]
    [ stats values(Author) BY Proj ]

Or like this:

... | eventstats values(Author) AS Authors BY Proj | nomv Authors | dedup Author Proj Authors | stats list(Proj) list(Authors) BY Author
0 Karma
Get Updates on the Splunk Community!

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

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