Session Counts
session-countsGroup and count network sessions by one or more fields over a time range, supporting nested drill-down buckets and optional Lucene query filtering.
Instructions
Aggregate session counts grouped by one or more fields over a time range. Multiple fields produce nested (drill-down) buckets.
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": {
"start_time": "<start_time>",
"end_time": "<end_time>",
"fields": "<fields>"
},
"name": "session-counts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Buckets per aggregation level, 1-100 (default: 10) | |
| query | No | Lucene query string to filter sessions | |
| scope | No | Data scope: workspace (default) or demo | |
| fields | Yes | Comma-separated fields to aggregate on (e.g. source.ip,destination.port) | |
| end_time | Yes | End time, ISO 8601 (e.g. 2025-01-07T23:59:59Z) | |
| start_time | Yes | Start time, ISO 8601 (e.g. 2025-01-01T00:00:00Z) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| total | No | ||
| request_metadata | No |