Splunk Search

Tracking user activity on website

jtworzydlo
Path Finder

Hey,
I have problem to determine the urls which lead a customer to a certain url "x". I have an apache-log in which I can determine what urls the customer visited thanks to JSESSIONID. What I don't know is how to determine the first previous url he visited before going to url "x".
Can anyone help me?

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Something like this?

... | reverse | streamstats current=f last(uri) as last_uri by JSESSIONID | search uri="x" | ...

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

Something like this?

... | reverse | streamstats current=f last(uri) as last_uri by JSESSIONID | search uri="x" | ...

jtworzydlo
Path Finder

Thanks a lot! That helped!

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...