rpk connect blobl

Execute Bloblang mappings from the command line. Provides a convenient tool for mapping JSON documents.

Usage

rpk connect blobl [flags]

Examples

This section provides examples of how to use rpk connect blobl.

Map JSON documents from stdin.

cat documents.jsonl | rpk connect blobl 'foo.bar.map_each(this.uppercase())'

Use a mapping file.

echo '{"foo":"bar"}' | rpk connect blobl -f ./mapping.blobl

Process input from a file.

rpk connect blobl -i input.jsonl -f ./mapping.blobl

Subcommands

Command Description

rpk connect blobl server

Run a web server that provides an interactive application for writing and testing Bloblang mappings.

Flags

Value Type Description

-t, --threads

string

the number of processing threads to use, when >1 ordering is no longer guaranteed.

-r, --raw

bool

consume raw strings.

-p, --pretty

bool

pretty-print output.

-f, --file

string

execute a mapping from a file.

-i, --input

string

read input from a file instead of stdin.

--max-token-length

string

Set the buffer size for document lines.

-e, --env-file

strings

import environment variables from a dotenv file.

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.

Suggested reading