jqlog

    jqlog command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.10
    License
    Apache-2.0
    Last updated
    3 days ago
    Downloads
    260

    #jqlog

    Filter JSON log lines through MoonX.

    #Usage

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

    Apply the filter to each valid JSON line and emit compact JSON. Read stdin by default; -f selects a file and a second positional operand is literal input text.

    #Common options

    OptionDescription
    -f VALUE, --file VALUERead log input from a file.
    -h, --helpShow help.
    --versionShow the version.

    #Notes

    Build from source with the MoonBit 1.0 RC1 toolchain.

    • Invalid JSON lines are skipped. A failed filter emits no results for that line, preserves earlier successful output and exits 2.
    • Module loading and input/inputs are unavailable. Filters use jq's shared value-filter engine.

    See the compatibility guide for the supported profile.

    Source Files