rpk connect blobl
Execute Bloblang mappings from the command line. Provides a convenient tool for mapping JSON documents.
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 |
|---|---|
Run a web server that provides an interactive application for writing and testing Bloblang mappings. |
Flags
| Value | Type | Description |
|---|---|---|
|
string |
the number of processing threads to use, when >1 ordering is no longer guaranteed. |
|
bool |
consume raw strings. |
|
bool |
pretty-print output. |
|
string |
execute a mapping from a file. |
|
string |
read input from a file instead of stdin. |
|
string |
Set the buffer size for document lines. |
|
strings |
import environment variables from a dotenv file. |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |