Skip to content

Commit 791749c

Browse files
committed
Gets the logs into Kafka all right, but you can only delimit on single chars so records look ugly
1 parent cc96a67 commit 791749c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

addon-logs/logs-kube-kafka.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,19 @@ spec:
1717
command:
1818
- sh
1919
- -ec
20-
- 'tail -f /dev/null'
20+
- >
21+
tail
22+
-n 0
23+
-f
24+
/var/log/containers/*.log
25+
|
26+
kafkacat
27+
-b kafka-0.broker.kafka.svc.cluster.local:9092,kafka-1.broker.kafka.svc.cluster.local:9092,kafka-2.broker.kafka.svc.cluster.local:9092
28+
-t ops-kube-logs-raw-001
29+
-P
30+
-D '\n\n==> '
31+
-K ' <==\n'
32+
#-z snappy
2133
resources:
2234
limits:
2335
memory: 100Mi

0 commit comments

Comments
 (0)