Splunk Search

Report to get conversion path from apache logs

opticsplanet
Path Finder

I need to build conversion paths for customers based on apache logs, and not sure if I can accomplish this with Splunk.

When customer buys something (visits confirmation page uri), I need to collect all previously visited pages, up until another order was placed (confirmation page), or more than 3 weeks of inactivity (identifying customer by IP address).

Is this even possible with Splunk? How can I build 2-tier reports like that? Would appreciate if anyone can point me in the right direction to read up on this matter.

1 Solution

opticsplanet
Path Finder

Some digging around landed me at the use of appended search to accomplish this. Some post processing required to satisfy additional requirements (like "since last confirmation page" and others) but still close enough:

eventtype="web-traffic-external" (uri_path=/*.html OR uri_path=/checkout/*) [search eventtype="web-traffic-external" uri_path=/checkout/confirmation earliest=-1h | dedup clientip | fields clientip] | sort clientip, _time | fields clientip, uri_path

View solution in original post

opticsplanet
Path Finder

Some digging around landed me at the use of appended search to accomplish this. Some post processing required to satisfy additional requirements (like "since last confirmation page" and others) but still close enough:

eventtype="web-traffic-external" (uri_path=/*.html OR uri_path=/checkout/*) [search eventtype="web-traffic-external" uri_path=/checkout/confirmation earliest=-1h | dedup clientip | fields clientip] | sort clientip, _time | fields clientip, uri_path
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...