oscerd commented on issue #1347:
URL: 
https://github.com/apache/camel-kafka-connector/issues/1347#issuecomment-1074748477


   You could do something like:
   
   
camel.sink.endpoint.keyName=topics/${headers.customerName}/${date:now:yyyy}${date:now:MM}//${headers.interval}/{headers.name}
   
   And with each of the record you're sending you'll need to set two headers
   
   echo "hello there" | ./kafkacat -b localhost:9092 -H 
"CamelHeader.customerName=customer" -H "CamelHeader.interval=01-02" -t mytopic
   
   I didn't test this stuff, but it should be a solution


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to