Splunk Search

How do you list the pages visited for a particular session id?

qodeninja
Explorer

I'd like to get a list of sessions each with their page views and session durations like this:

Session12324 | Session Duration | /path/page/1 /path/page/2

Tags (2)
1 Solution

sdaniels
Splunk Employee
Splunk Employee

You should look at the transaction command. It will create a field for you call duration as well so you can see length of a particular session. Then create a table with specific fields you'd like to see.

http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/transaction

<your search> | transaction sessionID

View solution in original post

qodeninja
Explorer

sure, its log4j, looks like JSON, has RequestURI and SessionID as fields

0 Karma

dmaislin_splunk
Splunk Employee
Splunk Employee

I think based on the answers below that you should get what you need right?

0 Karma

kristian_kolb
Ultra Champion

please provide some more info about the log file format you have, otherwise it'll be harder to be of help.

0 Karma

sdaniels
Splunk Employee
Splunk Employee

You should look at the transaction command. It will create a field for you call duration as well so you can see length of a particular session. Then create a table with specific fields you'd like to see.

http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/transaction

<your search> | transaction sessionID

qodeninja
Explorer

yep transaction is what I needed, thank you!

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...