kcat icon indicating copy to clipboard operation
kcat copied to clipboard

Kcat does not show messages with -o beginning

Open purplefox opened this issue 2 years ago • 1 comments

Hi,

I want to use kcat to show all messages in a topic. I understand the kcat defaults to showing only new messages so I am using the -o beginning flag, however it only displays the fact that a non zero offset was reached but not the messages.

Here is my output

/usr/local/Cellar/kcat/1.7.0/bin/kcat -C -o beginning -b localhost:9092 -t testtopic
% Reached end of topic testtopic [0] at offset 532
% Reached end of topic testtopic [1] at offset 565
% Reached end of topic testtopic [2] at offset 569
% Reached end of topic testtopic [3] at offset 496
% Reached end of topic testtopic [4] at offset 463
% Reached end of topic testtopic [5] at offset 452
% Reached end of topic testtopic [6] at offset 556
% Reached end of topic testtopic [7] at offset 504
% Reached end of topic testtopic [8] at offset 465
% Reached end of topic testtopic [9] at offset 541
% Reached end of topic testtopic [10] at offset 435
% Reached end of topic testtopic [11] at offset 519
% Reached end of topic testtopic [12] at offset 427
% Reached end of topic testtopic [13] at offset 509
% Reached end of topic testtopic [14] at offset 425
% Reached end of topic testtopic [15] at offset 552
% Reached end of topic testtopic [16] at offset 566
% Reached end of topic testtopic [17] at offset 450
% Reached end of topic testtopic [18] at offset 496
% Reached end of topic testtopic [19] at offset 549
% Reached end of topic testtopic [20] at offset 493
% Reached end of topic testtopic [21] at offset 450
% Reached end of topic testtopic [22] at offset 420
% Reached end of topic testtopic [23] at offset 529
% Reached end of topic testtopic [24] at offset 537

purplefox avatar Aug 30 '21 13:08 purplefox

Is it possible that your topic is empty? I.e., the older messages have been deleted due to retention policies.

edenhill avatar Aug 30 '21 13:08 edenhill