diagnose-record
Command Info
Section titled “Command Info”This tool is used to view specific details about a record at a specific offset. This includes timestamp, header, key, and value information.
Command Usage
Section titled “Command Usage”Usage of diagnose-record: -bootstrap-host string kafka bootstrap host (default "localhost") -bootstrap-port int kafka bootstrap port (default 9092) -client-id string client-id to pass along to kafka (default "warpstream-cli") -enable-tls dial with TLS or not -kafka-log-level string the log level to set on the kafka client, accepted values are DEBUG, INFO, WARN, ERROR (default "WARN") -key-format string The format to print the message key in, valid values are hex or string (default "hex") -offset int the offset to consume (default -1) -partition int the partition to consume on -print-message-key Enable printing the message key -print-message-value Enable printing the message value -sasl-password string password for SASL authentication -sasl-scram uses sasl scram authentication (sasl plain by default) -sasl-username string username for SASL authentication -tls-client-cert-file string path to the X.509 certificate file in PEM format for the client -tls-client-key-file string path to the X.509 private key file in PEM format for the client -tls-disable-hostname-verification whether to disable hostname verification or not -tls-server-ca-cert-file string path to the X.509 certificate file in PEM format for the server certificate authority. If not specified, the host's root certificate pool will be used for server certificate verification. -topic string the topic to consume on -value-format string The format to print the message value in, valid values are hex or string (default "hex")Example
Section titled “Example”$ warpstream cli diagnose-record -topic foo -partition 0 -offset 3 -print-message-key -print-message-value
Key: HEX:Value: HEX: 6973Headers: nilTimestamp: 1747146651Topic: fooPartition: 0Attrs: Timestamp Type: 0 Compression Type: 3 Is Transactional: false Is Control: falseProducer Epoch: 0Producer ID: 0Leader Epoch: 0Offset: 3