logs_facets
Count matching log lines by level, service, function, codebase, extension instance, and kind to identify where errors and warnings originate before reading them.
Instructions
Count the log lines matching a filter by level, service, function, codebase, extension instance and kind, to see where errors and warnings come from before reading them.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "logs_facets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Extra filter terms in the console's grammar, e.g. kind:rules.denied payload.orderId:o1 -level:debug | |
| to | No | Lines at or before, in the same forms | |
| from | No | Lines at or after: RFC 3339, YYYY-MM-DD, today, reload (since the last Functions reload) or relative like -15m | |
| text | No | Case-insensitive text the message or payload contains | |
| level | No | Only these levels (any of), e.g. ["warn","error"] | |
| service | No | Only these services (any of) | |
| function | No | Only this function's lines: its name or <region>-<name> id | |
| execution | No | Only one function call's lines: the call id from functions_list_calls |