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!

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