What you will learn in this TP
- Create a scheduled alert through the REST API
- Tune threshold, window and throttling
- Trigger and track an alert
- Build a lean Studio dashboard with ds.chain
- Troubleshoot the scheduler
All steps and instructions are shown. Recommended for this lab: autonomous
Introduction #
Context. The shop goes to production. The team wants to be warned when payments fail and to have a shared dashboard, all created by script so it can be replayed on every environment.
Prerequisites: a machine with Docker (4 GB free memory), curl, jq and Python 3, the Lab 1 Splunk container and HEC token · Estimated time: 50 min
Atp_paiement_5xx alert triggered and tracked, and a boutique_tp Studio dashboard running a single base search.Setup #
Guided steps, with their solution.
1. Create the alert
Why? Created through the API, the alert can be versioned and replayed identically in staging and production.
Createtp_paiement_5xx: every 2 minutes over the last 3 minutes, triggering above 10 5xx errors on/api/paiement, tracking on, 10-minute throttle and a Log event action.2. Justify the settings
Why? Window, frequency and throttling decide noise and detection delay: you must be able to explain them.
Why a 3-minute window for a run every 2 minutes? What would happen without throttling? Why a scheduled alert rather than real-time?3. Trigger the alert
Why? An alert never triggered in testing is an alert nobody knows works.
Send 40 payment errors now via HEC, wait 2 to 4 minutes, then find the triggered alert, the scheduler run and the event written by the action.4. Create the dashboard
Why? A base search shared by chains runs only one search for three visualizations: the platform thanks you.
Write the Studio definition (oneds.searchsource, threeds.chain, a single value, a line chart, a table), wrap it in a<dashboard version="2">and create theboutique_tpview through the API.5. Check and clean up
Why? Checking that scheduled searches are not skipped is part of going live; cleaning up frees the machine.
Check that no alert run is skipped, open the dashboard, then delete the alert, the view and the containers.
Validate your work
Check that each goal above is reached and that you get the result described in the introduction.
Difficulty level : ●●●●○ (4/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Sources, destinations and routes in Cribl Stream
Receiving and sending data with Cribl Stream: push, pull, collector and internal sources, event b...
Advanced SPL and knowledge objects
Going further with Splunk: CSV and KV store lookups, eventstats and streamstats, transaction vers...
Security and observability with Splunk
Splunk solutions beyond search: Enterprise Security (detections, findings, risk-based alerting, a...
Grafana dashboards with the Zabbix data source
Display Zabbix in Grafana: install the plugin, create a user and an API token, configure and prov...
Alerts and pipelines in OpenObserve
Create a template, a destination and an alert, avoid the SSRF webhook block and process data with...
Prometheus: visualizing your metrics (UI, Grafana and dashboards)
Visualize Prometheus data: the web interface, PromQL graphs, connecting to Grafana, RED and USE d...
Installing Splunk and ingesting data
Installing Splunk Enterprise (package or Docker), understanding $SPLUNK_HOME and configuration fi...
Grafana provisioning: automate the management of your dashboards and data sources
Learn how to use Grafana provisioning to manage your configuration (dashboards, data sources, not...
Kibana and Elastic Observability best practices
Checklist for running Kibana in production: versions, security, spaces and roles, versioned dashb...