Skip to content

Commit 7b08fcb

Browse files
authored
Merge pull request #18326 from eugenp/BAEL-9007-move
BAEL-9007 move code from ops repo
2 parents 4d7088c + f09c8c3 commit 7b08fcb

9 files changed

+153
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "avro-elasticsearch-sink",
3+
"config": {
4+
"connector.class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
5+
"tasks.max": "1",
6+
"topics": "avro_logs",
7+
"connection.url": "http://elasticsearch:9200",
8+
"key.ignore": "true",
9+
"schema.ignore": "false",
10+
"value.converter": "io.confluent.connect.avro.AvroConverter",
11+
"value.converter.schema.registry.url": "http://schema-registry:8081"
12+
}
13+
}
14+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "dlq-elasticsearch-sink",
3+
"config": {
4+
"connector.class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
5+
"tasks.max": "1",
6+
"topics": "failing-topic",
7+
"connection.url": "http://elasticsearch:9200",
8+
"key.ignore": "true",
9+
"schema.ignore": "true",
10+
11+
"behavior.on.malformed.documents": "ignore",
12+
"errors.tolerance": "all",
13+
"errors.log.enable": "true",
14+
"errors.log.include.messages": "true",
15+
16+
"errors.deadletterqueue.topic.name": "dlq-logs",
17+
"errors.deadletterqueue.topic.replication.factor": "1",
18+
"errors.deadletterqueue.context.headers.enable": "true"
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "error-handling-elasticsearch-sink",
3+
"config": {
4+
"connector.class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
5+
"tasks.max": "1",
6+
"topics": "test-error-handling",
7+
"connection.url": "http://elasticsearch:9200",
8+
"key.ignore": "true",
9+
"schema.ignore": "true",
10+
"behavior.on.malformed.documents": "warn",
11+
"behavior.on.error": "LOG",
12+
"errors.tolerance": "all",
13+
"errors.log.enable": "true",
14+
"errors.log.include.messages": "true"
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "flush-optimization-sink",
3+
"config": {
4+
"connector.class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
5+
"tasks.max": "1",
6+
"topics": "logs",
7+
"connection.url": "http://elasticsearch:9200",
8+
"key.ignore": "true",
9+
"schema.ignore": "true",
10+
11+
"flush.size": "500",
12+
"linger.ms": "1000",
13+
"batch.size": "200",
14+
"max.buffered.records": "10000",
15+
"max.retries": "10",
16+
"retry.backoff.ms": "500",
17+
"max.in.flight.requests": "10",
18+
"behavior.on.malformed.documents": "warn",
19+
"write.method": "bulk",
20+
"request.timeout.ms": "30000",
21+
"connection.timeout.ms": "10000"
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "message-id-elasticsearch-sink",
3+
"config": {
4+
"connector.class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
5+
"tasks.max": "1",
6+
"topics": "message_id_logs",
7+
"connection.url": "http://elasticsearch:9200",
8+
"key.ignore": "false",
9+
"schema.ignore": "true",
10+
"value.converter": "org.apache.kafka.connect.json.JsonConverter",
11+
"value.converter.schemas.enable": "false",
12+
"transforms": "InsertKey,ExtractId",
13+
"transforms.InsertKey.type": "org.apache.kafka.connect.transforms.ValueToKey",
14+
"transforms.InsertKey.fields": "user_id",
15+
"transforms.ExtractId.type": "org.apache.kafka.connect.transforms.ExtractField$Key",
16+
"transforms.ExtractId.field": "user_id"
17+
}
18+
}
19+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "partition-key-elasticsearch-sink",
3+
"config": {
4+
"connector.class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
5+
"tasks.max": "1",
6+
"topics": "partition_key_logs",
7+
"connection.url": "http://elasticsearch:9200",
8+
"key.ignore": "false",
9+
"schema.ignore": "true",
10+
"key.converter": "org.apache.kafka.connect.storage.StringConverter"
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "elasticsearch-sink-connector-test",
3+
"config": {
4+
"connector.class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
5+
"tasks.max": "1",
6+
"topics": "logs",
7+
"connection.url": "http://elasticsearch:9200",
8+
"type.name": "_doc",
9+
"key.ignore": "true",
10+
"schema.ignore": "true"
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "timestamp-index-sink",
3+
"config": {
4+
"connector.class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
5+
"tasks.max": "1",
6+
"topics": "test",
7+
"connection.url": "http://elasticsearch:9200",
8+
"key.ignore": "true",
9+
"schema.ignore": "true",
10+
"transforms": "TimestampConverter, TimestampRouter",
11+
"transforms.TimestampConverter.type": "org.apache.kafka.connect.transforms.TimestampConverter$Value",
12+
"transforms.TimestampConverter.field": "timestamp",
13+
"transforms.TimestampConverter.target.type": "string",
14+
"transforms.TimestampConverter.format": "yyyy-MM-dd'T'HH:mm:ssX",
15+
"transforms.TimestampRouter.type": "org.apache.kafka.connect.transforms.TimestampRouter",
16+
"transforms.TimestampRouter.topic.format": "${topic}-${timestamp}",
17+
"transforms.TimestampRouter.timestamp.format": "yyyy-MM-dd",
18+
"flush.synchronously": "true"
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "timestamp-transform-sink",
3+
"config": {
4+
"connector.class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
5+
"tasks.max": "1",
6+
"topics": "epoch_logs",
7+
"connection.url": "http://elasticsearch:9200",
8+
"key.ignore": "true",
9+
"schema.ignore": "true",
10+
"transforms": "TimestampConverter",
11+
"transforms.TimestampConverter.type": "org.apache.kafka.connect.transforms.TimestampConverter$Value",
12+
"transforms.TimestampConverter.field": "timestamp",
13+
"transforms.TimestampConverter.target.type": "string",
14+
"transforms.TimestampConverter.format": "yyyy-MM-dd'T'HH:mm:ssZ"
15+
}
16+
}
17+

0 commit comments

Comments
 (0)