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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...