diagnose-record
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
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-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
$ warpstream cli-beta diagnose-record -topic foo -partition 0 -offset 3 -print-message-key -print-message-value
Key:
HEX:
Value:
HEX: 6973
Headers: nil
Timestamp: 1747146651
Topic: foo
Partition: 0
Attrs:
Timestamp Type: 0
Compression Type: 3
Is Transactional: false
Is Control: false
Producer Epoch: 0
Producer ID: 0
Leader Epoch: 0
Offset: 3
Last updated
Was this helpful?