Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Juniper Paragon Automation User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

request paragon debug kafka

date_range 18-Jun-24

Syntax

content_copy zoom_out_map
request paragon debug kafka options "query" output-file "file-name"
content_copy zoom_out_map
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: -C -t topic-name -o s@start-time -o e@end-time -e

For example, to query a topic name from a particular start time, use -C -t netconf-resp-dev -o s@1713321079000 -e

output-file "file-name"

Name of the file where Kafka messages are stored.

time period duration

Duration for which kafkacat needs to run.

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"

content_copy zoom_out_map
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

content_copy zoom_out_map
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 Paragon Automation Release 2.0.0.

footer-navigation