splunk_compare_time_periods
Compare event volume or metric values across two time periods to identify increases, decreases, and trends in Splunk search results.
Instructions
Compare event volume or metric values between two distinct time periods.
Args: metric_spl: Search query ending in stats count or metric. period1_earliest: Current period start. period1_latest: Current period end. period2_earliest: Comparison period start. period2_latest: Comparison period end.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric_spl | Yes | ||
| period1_latest | No | now | |
| period2_latest | No | -24h@h | |
| period1_earliest | No | -24h@h | |
| period2_earliest | No | -48h@h |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Output payload or results | |
| error | No | Error message if execution failed | |
| success | No | Whether the tool execution succeeded | |
| metadata | No | Execution timing, pagination and environment details | |
| warnings | No | Operational warnings or notices | |
| request_id | No | Correlation ID for audit trail and observability |