Splunk Search

Why doesn't my base search query work?


I wrote this base search query:

host=NETWEBA* sourcetype="WinEventLog:Application" AND ApplicationSource="/jpw*" AND "ErrorGUID" | fields OuterExceptionType

And I extended this query to get the top 5 exceptions

stats count by OuterExceptionType  AS "Outer_Exception_Type"| sort - "Outer_Exception_Type"

But it returns no results whereas if I don't use a base search it works fine?

0 Karma



Not sure about field name changing but can you please try this?

stats count by OuterExceptionType  | sort - OuterExceptionType  


stats count by OuterExceptionType  | sort - OuterExceptionType  | rename OuterExceptionType as  "Outer_Exception_Type"
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...