Splunk Search

Creating a dashboard with stacked bar chart of top values

cpenkert
Path Finder

I am creating a dashboard with one panel displaying 404 errors. I am able to get this working fine with the following inline search, but I want to modify this so I only see the top 10 hosts as otherwise the majority of each bar ends up being "other".

"HTTP Status 404" OR "HTTP Status code: 404" minutesago=30 | timechart count AS Exceptions by host

When I try to modify it with a | top limit=10 host at the end of the inline search, I get no results.

Thanks

Tags (1)
0 Karma
1 Solution

thall79
Communicator

Have you tried:

"HTTP Status 404" OR "HTTP Status code: 404" minutesago=30 | timechart count AS Exceptions by limit=10 host useother=f

More information about timechart here:

http://www.splunk.com/base/Documentation/latest/SearchReference/Timechart

Travis.

View solution in original post

0 Karma

thall79
Communicator

Have you tried:

"HTTP Status 404" OR "HTTP Status code: 404" minutesago=30 | timechart count AS Exceptions by limit=10 host useother=f

More information about timechart here:

http://www.splunk.com/base/Documentation/latest/SearchReference/Timechart

Travis.

0 Karma

cpenkert
Path Finder

perfect! Thanks for the quick help. I guess I need to go read up on exactly what "useother" does.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...