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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...