splunk_natural_language_to_spl
Convert natural language questions or operational requirements into secure, optimized SPL queries for Splunk searches.
Instructions
Convert natural language questions or operational requirements into secure, optimized SPL.
Args: prompt: User's analytical goal (e.g. 'top 10 IP addresses by failed login count'). target_index: Optional target index hint (e.g. '_audit', 'main', 'firewall'). time_range: Intended time window (default '-24h@h').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| time_range | No | -24h@h | |
| target_index | No |
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 |