access_log_aggregate
Aggregates access logs into top-k counts for a chosen field over a specified time window to help identify traffic patterns, status-code spikes, or high-volume source IPs.
Instructions
Top-k counts of an access-log field over a time window.
field (UPPERCASE): AUTHORITY, RSP_CODE, RSP_CODE_CLASS, RSP_CODE_DETAILS, SRC_IP,
REQ_PATH, METHOD, COUNTRY, ASN, VH_NAME.
query: label selector, e.g. {vh_name="ves-io-http-loadbalancer-",rsp_code="429"}.
Window: last minutes, or explicit start_time/end_time as YYYY-MM-DDTHH:MM:SSZ (UTC).
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": {
"field": "<field>"
},
"name": "access_log_aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topk | No | ||
| field | Yes | ||
| query | No | {} | |
| minutes | No | ||
| end_time | No | ||
| namespace | No | ||
| start_time | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |