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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

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 ...