splunk_sample_events
Retrieve representative raw event samples from a Splunk index without full table scans, optionally filtering by sourcetype and limiting the sample count.
Instructions
Retrieve representative raw event samples without full table scans.
Args: index: Target index. sourcetype: Optional sourcetype filter. count: Number of sample events (default 10, max 100).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"index": "<index>"
},
"name": "splunk_sample_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| index | Yes | ||
| sourcetype | 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 |