snow app events¶
Fetches observability data from the Application Service. Use --type to select one of three telemetry streams:
- log (default): Live container log tail, sized with
--last(default 500 lines, capped at 100 KB). Supplying--sinceor--untilswitches to historical logs from the event table, which covers data after a suspend and has a short ingestion lag. - metric: CPU, memory, and network telemetry from the event table. Use
--metricto filter by a specific metric, and--rawto get unconverted values. - lifecycle: Service and container status changes from the event table.
The metric and lifecycle streams are always historical and default to the last hour when no time window is given.
Syntax¶
Arguments¶
None
Options¶
--since TEXTFetch events newer than this time. For Snowflake App Runtime projects: a relative shorthand (30m, 6h, 2d) or an absolute UTC timestamp (for example,
2026-07-16 18:00:00). Supplying a value switches log output to the historical event table. For Native App projects: a time ago in Snowflake interval syntax.--until TEXTFetch events older than this time. For Snowflake App Runtime projects: a relative shorthand (30m, 6h, 2d) or an absolute UTC timestamp (for example,
2026-07-16 23:59:59). For Native App projects: a time ago in Snowflake interval syntax.--type [log|span|span_event|metric|lifecycle]Selects the telemetry stream to return. For Snowflake App Runtime projects:
log(default),metric, orlifecycle. For Native App projects: one or more oflog,span,span_event(repeatable). Default: [].--scope TEXT(Native App only) Restrict results to a specific scope name. Can be specified multiple times. Default: [].
--consumer-org TEXT(Native App only) The name of the consumer organization.
--consumer-account TEXT(Native App only) The name of the consumer account in the organization.
--consumer-app-hash TEXT(Native App only) The SHA-1 hash of the consumer application name.
--first INTEGER(Native App only) Fetch only the first N events. Can’t be used with
--last. Default: -1.--last INTEGERMaximum number of events to fetch. For Snowflake App Runtime projects: number of log lines to retrieve (default: 500, capped at 100 KB). For Native App projects: can’t be used with
--first. Default: -1.--follow, -f(Native App only) Continue polling for events. Implies
--last 20unless overridden or--sinceis used. Default: False.--follow-interval INTEGER(Native App only) Polling interval in seconds when using
--follow. Default: 10.--metric TEXT(Snowflake App Runtime only) With
--type metric, return only this metric subset:cpu,memory, ornetwork. Omit to return all metrics.--raw(Snowflake App Runtime only) With
--type metric, emit raw metric values (bytes, cores) instead of human-readable conversions. Default: False.--package-entity-id TEXT(Native App only) The ID of the package entity on which to operate when the definition_version is 2 or higher.
--app-entity-id TEXT(Native App only) The ID of the application entity on which to operate when the definition_version is 2 or higher.
--entity-id TEXT(Snowflake App Runtime only) The ID of the snowflake-app entity on which to operate. Required if multiple snowflake-app entities exist.
-p, --project TEXTPath where the Snowflake project is stored. Defaults to the current working directory.
--env TEXTString in the format key=value. Overrides variables from the env section used for templates. Default: [].
--connection, -c, --environment TEXTName of the connection, as defined in your
config.tomlfile. Default:default.--host TEXTHost address for the connection. Overrides the value specified for the connection.
--port INTEGERPort for the connection. Overrides the value specified for the connection.
--protocol TEXTProtocol to use for the connection, for example
https. Overrides the value specified for the connection.--account, --accountname TEXTName assigned to your Snowflake account. Overrides the value specified for the connection.
--user, --username TEXTUsername to connect to Snowflake. Overrides the value specified for the connection.
--password TEXTSnowflake password. Overrides the value specified for the connection.
--authenticator TEXTSnowflake authenticator. Overrides the value specified for the connection.
--workload-identity-provider TEXTWorkload identity provider (AWS, AZURE, GCP, OIDC). Overrides the value specified for the connection.
--private-key-file, --private-key-path TEXTSnowflake private key file path. Overrides the value specified for the connection.
--token TEXTOAuth token to use when connecting to Snowflake.
--token-file-path TEXTPath to file with an OAuth token to use when connecting to Snowflake.
--database, --dbname TEXTDatabase to use. Overrides the value specified for the connection.
--schema, --schemaname TEXTDatabase schema to use. Overrides the value specified for the connection.
--role, --rolename TEXTRole to use. Overrides the value specified for the connection.
--warehouse TEXTWarehouse to use. Overrides the value specified for the connection.
--temporary-connection, -xUses a connection defined with command-line parameters, instead of one defined in config. Default: False.
--mfa-passcode TEXTToken to use for multi-factor authentication (MFA).
--enable-diagWhether to generate a connection diagnostic report. Default: False.
--diag-log-path TEXTPath for the generated report. Defaults to system temporary directory. Default: <system_temporary_directory>.
--diag-allowlist-path TEXTPath to a JSON file that contains allowlist parameters.
--oauth-client-id TEXTValue of client id provided by the Identity Provider for Snowflake integration.
--oauth-client-secret TEXTValue of the client secret provided by the Identity Provider for Snowflake integration.
--oauth-authorization-url TEXTIdentity Provider endpoint supplying the authorization code to the driver.
--oauth-token-request-url TEXTIdentity Provider endpoint supplying the access tokens to the driver.
--oauth-redirect-uri TEXTURI to use for authorization code redirection.
--oauth-scope TEXTScope requested in the Identity Provider authorization request.
--oauth-disable-pkceDisables Proof Key for Code Exchange (PKCE). Default:
False.--oauth-enable-refresh-tokensEnables a silent re-authentication when the actual access token becomes outdated. Default:
False.--oauth-enable-single-use-refresh-tokensWhether to opt-in to single-use refresh token semantics. Default:
False.--client-store-temporary-credentialStore the temporary credential.
--secondary-roles TEXTSecondary roles mode applied when the session starts. Supported values are
ALLandNONE; passNONEto run the session only with the primary role.--server-session-keep-aliveKeep the session active indefinitely, even if there is no activity from the user.
--format [TABLE|JSON|JSON_EXT|CSV]Specifies the output format. Default: TABLE.
--verbose, -vDisplays log entries for log levels
infoand higher. Default: False.--debugDisplays log entries for log levels
debugand higher; debug logs contain additional information. Default: False.--silentTurns off intermediate output to console. Default: False.
--enhanced-exit-codesDifferentiate exit error codes based on failure type. Default: False.
--decimal-precision INTEGERNumber of decimal places to display for decimal values. Uses Python’s default precision if not specified. [env var: SNOWFLAKE_DECIMAL_PRECISION].
--helpDisplays the help text for this command.
Usage notes¶
The active role needs the MONITOR privilege on the target Application Service to retrieve logs.
Live log output (--type log without --since/--until) is capped at 100 KB regardless of the --last value.
When you supply --since or --until, log output switches to the historical event table. There’s a short ingestion lag, and historical logs are available even after the service is suspended.
The metric and lifecycle streams read from the event table only and default to the last hour when no time window is given.
Examples¶
-
Fetch the default 500 lines of container logs:
-
Fetch the last 100 lines:
-
Fetch logs since a relative time window:
-
Fetch logs between two absolute timestamps:
-
Fetch CPU and memory metrics:
-
Fetch only CPU metrics with raw values:
-
Fetch lifecycle events from the last 2 days: