Hi team,


In KIP-449[1], we introduced a "connector context" that allows us to get worker 
context in the logs such as "[my-connector|task-0|offsets]" 



Are you aware of any built-in mechanism to extract only the connector name from 
these logs? 



In an ideal world, I would like to build a log that contains just the connector 
name excluding any task or offset information. ie: connector=my-connector-name. 
The final goal is to get stats per connector name where the task or offset 
information is not that important. The additional metadata gets in the way as 
it pollutes the log entry



I imagine that I can write a regular expression to do this, but I do wish to 
reinvent the wheel if there are better options. 



Thank you! 



[1] 
https://cwiki.apache.org/confluence/display/KAFKA/KIP-449%3A+Add+connector+contexts+to+Connect+worker+logs

Reply via email to