query

The query subcommand executes a SQL-like query against transaction logs and joins the results with per-transaction statistics, outputting to CSV.

circle-exclamation

Usage

rumi tools txnstats query [options]

Options

Option
Description

-l, --log <file>

(Required) Path to the main recovery transaction log

-q, --query <sql>

(Required) SQL-like query to execute

-o, --output <file>

Output CSV file (default: txnstats.csv)

-m, --include-message-logs

Include inbound/outbound message logs in query (default: true)

Prerequisites

The query command expects these related log files in the same directory as the main log:

File
Description

<name>.log

Main recovery transaction log

<name>.txnstats.log

Per-transaction statistics log

<name>.in.log

Inbound message log (optional)

<name>.out.log

Outbound message log (optional)

Example

The output CSV will contain:

  • Fields selected in the query

  • Transaction timing statistics joined by transaction ID

  • Inbound and outbound message timing details (when applicable)

Compatibility

circle-info

3.x Compatibility: For logs created with Rumi 3.x, use the --3x flag before the command:

See Also

Last updated