request paragon debug kafka
Syntax
request paragon debug kafka options "query" output-file "file-name"
request paragon debug kafka options "query" output-file "file-name" time period duration
Description
Generate an output file of the Kafka messages for a topic, and for a specified period of time.
Options
options "query" |
Add a Kafka query. Format: For example, to query a topic name from a particular start time,
use |
output-file "file-name" |
Name of the file where Kafka messages are stored. |
time period duration |
Duration for which Format: Specify integer followed by s/m/h/d/w/y (seconds/minutes/hours/days/weeks/years). For example, 2s. |
Required Privilege Level
view
Output Fields
When you enter this command, an output file of the Kafka messages is created for the specified period of time.
Sample Output
- request paragon debug kafka options "-C -t pf-cfg-topology -o s@1701705745000 -o e@1702569745000 -e -JB" output-file "file"
- request paragon debug kafka options "-C -t netconf-resp-dev -o s@1713321079000 -e" output-file test-netconf-resp-dev time-period 60s
request paragon debug kafka options "-C -t pf-cfg-topology -o s@1701705745000 -o e@1702569745000 -e -JB" output-file "file"
user@node> request paragon debug kafka options "-C -t pf-cfg-topology -o s@1701705745000 -o e@1702569745000 -e -JB" output-file "file" Writing kafka output at: /root/troubleshooting/kafka/file
request paragon debug kafka options "-C -t netconf-resp-dev -o s@1713321079000 -e" output-file test-netconf-resp-dev time-period 60s
user @node> request paragon debug kafka options "-C -t netconf-resp-dev -o s@1713321079000 -e" output-file test-netconf-resp-dev time-period 60s kubectl --kubeconfig /etc/kubernetes/admin.conf exec common-utils-dd49dd8d6-5ksks -n common -- /bin/bash -c 'kcat -b $KAFKA_BROKER_ADDRESS -C -t netconf-resp-dev -o s@1713321079000 -e' > /root/troubleshooting/kafka/test-netconf-resp-dev Writing kafka output at: /root/troubleshooting/kafka/test-netconf-resp-dev
Release Information
Command introduced in Juniper Paragon Automation Release 2.0.0.