logs_facets
Count log lines by level, service, function, codebase, extension instance, or kind to locate error and warning sources before reading full logs.
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.
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 |