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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...