This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kafka: Add
topic_prefix
and escape topic names
These are especially useful when paired with `topic_variable`. Since the variable is being extracted from a field, we can't guarantee that the characters being used for the topic name are valid, so we implement a slightly modified version of stdlib's `QueryEncode` which sanitizes the name to the range of valid topic chars. Example: ```toml [KafkaOutput] topic_prefix = "heka-" topic_variable = "Fields[ContainerName]" ```
- Loading branch information
1 parent
32cadf8
commit 8a015b6
Showing
1 changed file
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters