scalyr_count
Count log events matching a filter to gauge data volume before querying full logs; numericQuery text matching may yield slightly higher counts than exact field matching.
Instructions
Count log events matching a filter. Fast way to check data volume before querying full logs.
Note: uses Scalyr's numericQuery which does text matching, so counts may be slightly higher than exact field matching. For precise counts, use scalyr_power_query.
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>",
"startTime": "<startTime>"
},
"name": "scalyr_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | Yes | Scalyr filter expression | |
| endTime | No | End of time range. Defaults to now | |
| startTime | Yes | Start of time range. Relative (e.g. '60m', '24h', '7d') or absolute timestamp |