Group by property
group_by_propertyCount log entries by a structured property's value to identify frequent errors and analyze distributions. Defaults to error/fatal entries; supports level, source, and fingerprint pseudo-properties.
Instructions
Count log entries by the value of a structured property (e.g. Application, StatusCode, user.id). Use level, source or fingerprint as pseudo-properties. Defaults to error/fatal entries only.
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": {
"property": "<property>"
},
"name": "group_by_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | Number of groups to return (default 20) | |
| level | No | Restrict to a single level | |
| source | No | Only include entries whose source name contains this text | |
| endDate | No | End of time range (ISO 8601, e.g. 2026-02-10T08:00:00Z) | |
| property | Yes | Property name or dotted path, or one of: level, source, fingerprint | |
| startDate | No | Start of time range (ISO 8601, e.g. 2026-02-10T08:00:00Z) | |
| errorsOnly | No | Only count error/fatal entries (default true, ignored when level is set) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| groups | Yes | ||
| missing | Yes | Entries without a value for the property | |
| property | Yes | ||
| truncated | Yes |