Splunksplunkmonitoringdashboardsliproduction-ready

Service Health Dashboard

SPL queries for monitoring service health including uptime, error rates, response times, and availability SLI calculations.


title: "Service Health Dashboard" description: "SPL queries for monitoring service health including uptime, error rates, response times, and availability SLI calculations." category: "Splunk" language: "spl" tags: ["splunk", "monitoring", "dashboard", "sli", "production-ready"] createdAt: "2025-01-25" updatedAt: "2025-02-15"

Overview

SPL queries for building a service health dashboard that tracks availability SLIs, error budgets, and latency percentiles. These queries power real-time dashboards that show at a glance whether services are meeting their SLOs.

Code

index=application sourcetype=access_combined
| eval is_success=if(status<500, 1, 0)
| timechart span=1h sum(is_success)/count as availability_pct

Notes

  • Availability SLI counts any non-5xx response as successful (4xx are client errors, not service failures)
  • Error budget shows how much of your allowed downtime has been consumed in the SLO window
  • Use perc95 and perc99 for latency SLIs rather than averages (which hide tail latency)
  • The health field enables color-coding in dashboards via conditional formatting
  • Set up alerts when budget_consumed_pct exceeds 80% to prevent SLO violations