Hello,
I have this issue, when I am able to generate a kafka topic that has date stamp in the name, but when I try to read from it, it fails to.
verified that topic created, and i can read from it. Snipped bellow
kafkacat -C -b "broker-0..consul:7000" -t f5-logs-wc1-2016.04.07 -p 0 -e | more
<189>Apr 6 17:57:01 blah-LB1 notice syslog-ng: Duplicate stats counter; counter='udp((null):514)'
<45>Apr 6 17:57:01 Blah-LB1 notice syslog-ng[23098]: syslog-ng starting up; version='2.1.4'
<189>Apr 6 17:57:01Blah-LB1 notice syslog-ng: syslog-ng startup succeeded
This is my kafka output
kafka {
bootstrap_servers => "broker-0.consul:7000"
topic_id => "f5-logs-wc1%{+YYYY.MM.dd}"
#topic_id => "f5-logs-wc1"
codec => plain {
format => "%{message}"
charset => "CP1252"
}
Here is my kafka input
kafka {
zk_connect => "blah.com:2181"
topic_id => "f5-logs-wc1%{+YYYY.MM.dd}"
#topic_id => "f5-logs-wc1"
codec => plain
auto_offset_reset => "smallest"
reset_beginning => true
}
But if I switch topic_id name in both input and output configuration to a simple string name (please see commented) then it can read. Anything I am doing wrong in my kafka input? Maybe that's not how I need to append the date stamp to prefix string?