confluent local log


View a snapshot or tail the log of a service.


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>


You must include a double dash (--) between the topic name and your flag. For more information, see this post.



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>
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.


  • 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


    Type man tail to get more information about the available options.