rpk connect echo

Parse a config file and echo back a normalized version. This command is useful for sanity checking a config if it isn’t behaving as expected, as it shows you a normalised version after environment variables have been resolved.

Examples:

rpk connect echo ./config.yaml | less
rpk connect echo --set 'input.generate.mapping=root.id = uuid_v4()'

Usage

rpk connect echo [flags]

Flags

Value Type Description

-s, --set

strings

set a field (identified by a dot path) in the main configuration file, for example, "metrics.type=prometheus".

-r, --resources

strings

pull in extra resources from a file, which can be referenced the same as resources defined in the main config, supports glob patterns (requires quotes).

-e, --env-file

strings

import environment variables from a dotenv file.

-t, --templates

strings

EXPERIMENTAL: import Redpanda Connect templates, supports glob patterns (requires quotes).

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.