[ 
https://issues.apache.org/jira/browse/KAFKA-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13816805#comment-13816805
 ] 

Jason Rosenberg commented on KAFKA-1122:
----------------------------------------

[~guozhang] I understand that point, but these are actually human readable log 
files, that we like to scroll through or tail, to make sure things look good 
during deploys, etc.

Can you not have one greppable log line that gives enough reference info, that 
allows you then to pull all the corresponding log lines that go with it.  E.g. 
in the example above, you can have one log line:

"Handling LeaderAndIsr request 123456"
and
"LeaderAndIsr for request 123456: 
Name:LeaderAndIsrRequest;Version:0;Controller:11;ControllerEpoch:220;CorrelationId:5;ClientId:id_11-host_null-port_27330;PartitionState:(mytopic,0)
 -> 
(LeaderAndIsrInfo:(Leader:11,ISR:11,LeaderEpoch:43,ControllerEpoch:219),ReplicationFactor:2)"
<repeat 700 times>

Jason

> Kafka can log giant log lines
> -----------------------------
>
>                 Key: KAFKA-1122
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1122
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Jason Rosenberg
>            Priority: Minor
>
> There are a number of log lines that the kafka server, and high-level 
> consumer, can log, that can end up becoming a giant log line.  This can be 
> cumbersome to deal with in a log file.
> This happens in my case as I have have a large number of topics (on the order 
> of 500-700 topics).  Typically, these giant log lines will say something 
> separately about every topic on the broker.  An example:
> 2013-11-04 23:28:11,148  INFO [kafka-request-handler-0] server.ReplicaManager 
> - [Replica Manager on Broker 10]: Handling LeaderAndIsr request 
> Name:LeaderAndIsrRequest;Version:0;Controller:11;ControllerEpoch:220;CorrelationId:5;ClientId:id_11-host_null-port_27330;PartitionState:(mytopic,0)
>  -> 
> (LeaderAndIsrInfo:(Leader:11,ISR:11,LeaderEpoch:43,ControllerEpoch:219),ReplicationFactor:2),.....
> Imagine that line going on with a separate entry for 700 topics.  There are 
> many other examples of this phenomenon in the server, and high-level consumer.
> I'd think these log lines could be separated into a single line per topic.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to