Question 1
Topic: Using Transforming Commands for Visualizations
Skill tested: Builds a timechart that reports event counts by status over a rolling 24-hour period.
A service operations team needs a dashboard panel showing how many request events of each status occurred during the preceding 24 hours. The events are indexed in `main`, have a numeric `_time` field, and contain a `status` field. The panel must use hourly time buckets and show each status as a separate series; it should not include events older than the rolling period. Which SPL search best meets the requirement?
The `earliest=-24h` search-time constraint limits the input to the preceding 24 hours, and `timechart span=1h count by status` creates hourly time buckets with a separate series for each status value. The `chart` command in B is not the appropriate time-series transforming command and does not use `span` that way. C filters after transforming the results and may not preserve the intended event-level window reliably; the time constraint belongs in the base search. D aggregates only by status and discards the time axis.