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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...