Splunk Search

Correlate cs_uri and referer

dmdicki
New Member

Is there a way to correlate two or more events which share the same cs_uri and referer and occurring within a specified window of time?

For example,

event 1: referer = A cs_uri = B
event 2: referer = B cs_uri = C
event 3: referer = C cs_uri = D

resulting in...

meta-event 1: referer = A

cs_uri/referer = B

cs_uri/referer = C

cs_uri = D

Tags (2)
0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

I would first create a field alias in props.conf

[your_sourcetype]
FIELDALIAS-referer = cs_uri AS referer

Then in your search:

sourcetype=your_sourcetype | transaction referer maxspan=1m | do_stuff

So this is assigning the value of cs_uri to referer and doing a transaction to get the events with same referer.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...