Splunk Search

query to find the last 5 searches ran by user

kteng2024
Path Finder

hi,

Is there any query to find out last five queries ran by a user. We can do it by using history command.

0 Karma

woodcock
Esteemed Legend

Like this:

|rest /services/search/jobs | streamstats count BY author | search count<=5
0 Karma
Get Updates on the Splunk Community!

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Community Content Calendar, October Edition

Welcome to the October edition of our Community Spotlight! The Splunk Community is a treasure trove of ...