Splunk Search

How to plot a chart or graph based on the number of 500 errors occured for services?

navd
New Member

I have extracted the 500 error as "server_error" and I want to count the total number of server_error by host and show the count and also show the trend of the server_error over time

example query :

index=abc |chart count(eval(status_error=500)) as internal_errors by host 
0 Karma
1 Solution

PowerPacked
Builder

Hi @navd

Am not sure, if i understood your question correctly,

index=abc | timechart span=5m count(server_error) by host.

change the span to needed like 1m,5m,10m,1h,1d.

Thanks

View solution in original post

0 Karma

PowerPacked
Builder

Hi @navd

Am not sure, if i understood your question correctly,

index=abc | timechart span=5m count(server_error) by host.

change the span to needed like 1m,5m,10m,1h,1d.

Thanks

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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