scalyr_facets
Shows the value distribution for a chosen field across matching logs, helping you understand log contents before querying details.
Instructions
Get the value distribution for a field across matching logs. Great first step to understand what's in your logs before querying details.
Example: use field "level" to see how many ERROR vs INFO vs WARNING events exist, or "$serverHost" to see which servers are logging.
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": {
"filter": "<filter>",
"field": "<field>",
"startTime": "<startTime>"
},
"name": "scalyr_facets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Field name, e.g. 'level', 'status', '$serverHost', '$logfile' | |
| filter | Yes | Scalyr filter expression | |
| endTime | No | End of time range. Defaults to now | |
| maxCount | No | Maximum distinct values to return (default 50) | |
| startTime | Yes | Start of time range. Relative (e.g. '60m', '24h', '7d') or absolute timestamp |