Log sources
Each entry in the Logs tab is a log source, declared in the module’s definition. A module can have several sources — for example,rvn-aurora shows one per enabled CloudWatch log export type (postgresql for PostgreSQL, or audit, error, general, and slowquery for MySQL).
Where standard-library modules send their logs:
Log retention is controlled by the module where applicable — for example,
rvn-lambda has a log retention days input.
Shipping logs elsewhere
The Logs tab doesn’t replace a dedicated log platform — it has no full-text indexing or long-term analytics. ECS modules support FireLens log routing to send app logs to destinations such as Datadog, Splunk, Firehose, OpenSearch, or S3 through a Fluent Bit sidecar. Keep the CloudWatch output enabled alongside external destinations so the Logs tab and Ravion runtime logs continue to work.Querying logs from the CLI
With CLI version 1.26.0 or later, use the module ID rather than looking up AWS stream names. Authenticate with Ravion; you do not need separate AWS credentials.module log-sources shows the resolved log configuration, including the CloudWatch log group and stream prefix. module logs selects the module’s only source automatically. If there are several, choose an ID from log-sources:
Machine-readable logs
Without--tail, --json returns one JSON array of batches. Each batch contains an events array and batch metadata. A successful response with no batches is []; empty batches can also occur. Read every batch rather than assuming there is only one:
--jsonl: each line is a complete, compact JSON batch. Newlines within messages are escaped, so you can parse one line at a time.
--json and --jsonl are mutually exclusive. --tail --json is rejected; use --tail --jsonl instead. These formats also apply to logs cloudwatch, logs eks-loki, and logs pipeline-step. Check the command’s exit status: a failed stream can leave incomplete JSON output.
Find the underlying stack outputs
The module’s resolvedui.logs is the source of truth for log retrieval. You can inspect it with ravion module get <module-id> --json. To inspect infrastructure outputs, get the module’s stackId and run:
log_group_name, log_group_arn, log_stream_prefix, and region in the stack’s output object. Other module types may expose different outputs; use module log-sources rather than assuming an ECS prefix such as app/.
Query CloudWatch directly
The lower-levelravion logs cloudwatch command remains useful when you already know the log group. It requires either --log-stream-prefix or --log-stream-names. Pass an empty prefix explicitly to read all streams in the group:
--tail switches to live tail mode after fetching historical logs.
Build and pipeline logs are separate. A build is a pipeline step, not a module log source — use
ravion logs pipeline-step <step-execution-id> to stream those.For module authors
Declare log sources in theui.logs array of your module definition. Each entry has a stable id, a display name, and a typed source. For CloudWatch, provide the AWS account, region, and log group, plus an optional log stream prefix and filter pattern. Every field is templateable, so sources typically reference stack outputs like the created log group name. Expose the log group and stream prefix as stack outputs and reference those outputs in ui.logs so the dashboard and CLI use the same configuration.
See UILog in the definition schema.