Question 1
Topic: Utilizing Transforming Commands for Visualizations
Skill tested: Selects timechart or chart to aggregate measurements for the required visualization.
A service-operations team reports response time events with fields `host`, `service`, `_time`, and `duration_ms`. Analysts need a line visualization showing the hourly average duration for each service over a selected time range. The report must preserve a time axis and support multiple service series; it does not need to compare a fixed set of non-time categories. Which search best produces the required result?
`timechart` is designed to aggregate measures into time-series buckets and retain time as the chart's horizontal axis. Setting `span=1h` gives the required hourly buckets, while `by service` creates a separate series per service. `chart` is intended for categorical pivots and does not provide the same time-series bucketing behavior. `stats` groups by service but discards the hourly time axis. The final chart pivots by service and host instead of producing hourly trends.