The Scenario
Support ticket #4821: “I was working on the Q3 Budget Report and it just vanished. I didn’t delete it. Please recover it ASAP.” Reporter: Lisa Wang (user_4f2a8c), submitted at 2026-03-27 10:15 AM.
Step 1: Find the User’s Recent Sessions
Query the user’s recent events to identify session IDs:- JavaScript
- Python
- cURL
Step 2: Query the Specific Session
Filter events by the session that was active around the time of the incident:- JavaScript
- Python
- cURL
Step 3: Read the Timeline
The query returns the full session timeline:This is not a bug — it’s user error. The session timeline provides clear evidence of the exact sequence of actions, eliminating guesswork and saving hours of investigation time.
Step 4: Examine the Specific Events
Look at the metadata for the critical events to understand the full context:- JavaScript
- Python
- cURL
Step 5: Respond to the Customer
With this evidence, you can provide a clear, factual response:Hi Lisa, I investigated ticket #4821. Our audit logs show that during your session on March 27th at 9:53 AM, the Q3 Budget Report was moved to the trash from the Finance Team folder, and the trash was emptied 7 seconds later. Both actions came from your IP address in Portland. This appears to have been accidental. I’ve restored the document from our backup — you should see it in your Finance Team folder now.
Making Session Tracking Work
For session debugging to be effective, you need consistent session IDs across all events. Here’s how to set them up:- JavaScript
- Python
- Laravel
What’s Next
Session Tracking
Full guide to implementing session tracking.
Debugging Sessions Guide
More debugging workflows and techniques.
Events API
API reference for querying events by session.
Geolocation
IP enrichment adds location context to every event.