Splunk Search

Converting regular query to tstats?

leagawa
New Member

I want to convert this query to tstats for faster searching 
can you help me convert it 

index=win-security host=srv001 user IN ("*adminuser")
[ search index=paloalto sourcetype=pan:threat]

Labels (1)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

You can only use tstats on indexed fields, so unless the 'user' field is indexed, you cannot use tstats in the first parts of the search.

It's not entirely clear what you're trying to do with your subsearch. What are you trying to do there?

 

 

0 Karma
Get Updates on the Splunk Community!

Application management with Targeted Application Install for Victoria Experience

  Experience a new era of flexibility in managing your Splunk Cloud Platform apps! With Targeted Application ...

Index This | What goes up and never comes down?

January 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Splunkers, Pack Your Bags: Why Cisco Live EMEA is Your Next Big Destination

The Power of Two: Splunk + Cisco at "Ludicrous Scale"   You know Splunk. You know Cisco. But have you seen ...