Skip to content

Commit bc1abef

Browse files
Chris Choschmalliso
authored andcommitted
DOCSP-10135: add topics.regex example (#18)
1 parent 0959f6b commit bc1abef

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

source/kafka-sink-properties.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,20 @@ data to sink to MongoDB. For an example configuration file, see
4242
* - topics.regex
4343
- string
4444
- | A regular expression that matches the Kafka topics that the sink connector should watch.
45-
|
45+
46+
.. example::
47+
48+
| The following regex matches topics such as
49+
| "activity.landing.clicks" and "activity.support.clicks",
50+
| but not "activity.landing.views" or "activity.clicks":
51+
52+
.. code-block:: none
53+
54+
topics.regex=activity\\.\\w+\\.clicks$
55+
4656
| *Required*
4757
| **Note:** You can only define either ``topics`` or ``topics.regex``.
48-
| **Accepted Values**: A valid regular expression
58+
| **Accepted Values**: A valid regular expression match pattern using ``java.util.regex.Pattern``.
4959

5060
* - connection.uri
5161
- string

0 commit comments

Comments
 (0)