jqlog

    jqlog command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.8
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    175

    #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

    • 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