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_pctNotes
- 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
perc95andperc99for latency SLIs rather than averages (which hide tail latency) - The
healthfield enables color-coding in dashboards via conditional formatting - Set up alerts when
budget_consumed_pctexceeds 80% to prevent SLO violations