Skip to content

Commit 5ca8906

Browse files
author
timKrijger
committed
1 parent bdb2865 commit 5ca8906

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

vagrant/roles/role_kafka_sink_ElasticSearch/templates/kafka-connect-elastic-sink.json.j2

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,15 @@
77

88
"_comment": "Which topic to stream data from into Elasticsearch",
99
"topics": "bulk-logs",
10-
{#
11-
"transforms": "routeTS",
12-
"transforms.routeTS.type": "org.apache.kafka.connect.transforms.TimestampRouter",
13-
#}
10+
1411
"transforms": "dropPrefix,routeTS",
1512
"transforms.dropPrefix.type": "org.apache.kafka.connect.transforms.RegexRouter",
1613
"transforms.dropPrefix.regex": "bulk-(.*)",
1714
"transforms.dropPrefix.replacement": "$1",
1815
"transforms.routeTS.type": "org.apache.kafka.connect.transforms.TimestampRouter",
1916
"transforms.routeTS.topic.format": "kafka-${topic}-${timestamp}",
2017
"transforms.routeTS.timestamp.format": "YYYYMMdd",
21-
18+
"log.message.timestamp.type": "LogAppendTime"
2219
"replication.factor": 3,
2320

2421
"_comment": "--- Elasticsearch-specific config ---",

0 commit comments

Comments
 (0)