jqlog

    jqlog command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.5
    License
    Apache-2.0
    Last updated
    4 days ago
    Downloads
    117

    #jqlog

    Filter JSON log lines for MoonX.

    moonx cli/jqlog@0.2.5 [options] <query> [input]

    #Supported scope

    Apply a jq-compatible filter to each valid JSON line and emit compact JSON. Read stdin by default, or pass raw input as the second operand.

    #Options

    OptionDescription
    -f, --file PATHRead log input from a file.
    FILTER [TEXT]Select a filter and optional literal input; - means stdin.
    --End options before a filter beginning with -.
    --help / --versionShow help / package version.

    #Limitations

    • Invalid JSON lines are skipped. Filter errors return failure and preserve earlier results.
    • Supports the same bounded filter language as jq; not the full jq CLI.
    • The shared adapter preserves complete grouping/sorting key streams and stable ties. Exact numeric ordering at or above 2^53 remains outside the verified key domain.

    #Examples

    moonx cli/jqlog@0.2.5 -f logs.ndjson '.message' printf '%s\n' '{"level":"info"}' | moonx cli/jqlog@0.2.5 '.level'

    Source Files