Important
You are viewing documentation for an older version of Confluent Platform. For the latest, click here.
confluent local log¶
Description¶
View a snapshot or tail the log of a service.
Important
The confluent local commands are intended for a single-node development environment and are not suitable for a production environment. The data that are produced are transient and are intended to be temporary. For production-ready workflows, see Install and Upgrade Confluent Platform.
confluent local log <service> -- [<argument>] --path <path-to-confluent>
Caution
You must include a double dash (--
) between the topic name and your flag. For more information,
see this post.
Flags¶
Tip
You must either specify the path for each Confluent CLI confluent local
command invocation, export the
path as an environment variable for each terminal session, or set the path to your Confluent Platform installation in your
shell profile. For example:
cat ~/.bash_profile
export CONFLUENT_HOME=<path-to-confluent>
export PATH="${CONFLUENT_HOME}/bin:$PATH"
Name, shorthand | Description |
---|---|
--path <path-to-confluent> |
Path to Confluent Platform install directory. |
-h, --help |
Print command information. |
Positional arguments¶
Name, shorthand | Default | Description |
---|---|---|
<service> |
The service name. | |
<argument> |
Snapshot | Optional: Specify a
tail
argument. If no arguments are given, a snapshot of
the log is opened using the less command viewer. |
Examples¶
View a snapshot of the Connect log with the
less
viewer.confluent local log connect
Tail the Apache Kafka® log and wait to print additional output until the log command is interrupted.
confluent local log kafka -- -f
Tip
Type
man tail
to get more information about the available options.