You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Weichu Liu (Jira)" <ji...@apache.org> on 2020/03/17 04:22:00 UTC

[jira] [Created] (KAFKA-9728) kafka-dump-log.sh to support dumping only head or tail part

Weichu Liu created KAFKA-9728:
---------------------------------

             Summary: kafka-dump-log.sh to support dumping only head or tail part
                 Key: KAFKA-9728
                 URL: https://issues.apache.org/jira/browse/KAFKA-9728
             Project: Kafka
          Issue Type: New Feature
          Components: tools
            Reporter: Weichu Liu


When I use {{kafka-dump-log.sh}} to dump a .log file, its behavior is to traverse through the whole file which is quite heavy.

Even with {{| head}}, the tool will still read through the whole file.

In many cases I just want to inspect the first several messages or last several messages of a log file.

It will be great to have {{kafka-dump-log.sh}} to add options support partial reading.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)