-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(site): fix quickstart and update examples
- Loading branch information
1 parent
1988cc8
commit cfabaa5
Showing
5 changed files
with
85 additions
and
97 deletions.
There are no files selected for viewing
49 changes: 23 additions & 26 deletions
49
examples/connect-file-pulse-example-override-topic-and-key.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
{ | ||
"config": { | ||
"connector.class": "io.streamthoughts.kafka.connect.filepulse.source.FilePulseSourceConnector", | ||
"filters": "ParseDelimitedRow, SetTopic, SetKey", | ||
"filters.SetTopic.value": "replace_all(lowercase($.type), '\\s','-')", | ||
"filters.SetTopic.field": "$topic", | ||
"filters.SetTopic.type": "io.streamthoughts.kafka.connect.filepulse.filter.AppendFilter", | ||
"filters.SetKey.value": "{{ lowercase($.artist) }}-{{ lowercase($.title) }}", | ||
"filters.SetKey.field": "$key", | ||
"filters.SetKey.type": "io.streamthoughts.kafka.connect.filepulse.filter.AppendFilter", | ||
"filters.ParseDelimitedRow.extractColumnName": "headers", | ||
"filters.ParseDelimitedRow.trimColumn": "true", | ||
"filters.ParseDelimitedRow.type": "io.streamthoughts.kafka.connect.filepulse.filter.DelimitedRowFilter", | ||
"fs.cleanup.policy.class": "io.streamthoughts.kafka.connect.filepulse.clean.LogCleanupPolicy", | ||
"fs.listing.class": "io.streamthoughts.kafka.connect.filepulse.fs.LocalFSDirectoryListing", | ||
"fs.listing.directory.path": "/tmp/kafka-connect/examples/", | ||
"fs.listing.interval.ms": "10000", | ||
"internal.kafka.reporter.bootstrap.servers": "broker:29092", | ||
"internal.kafka.reporter.topic": "connect-file-pulse-status", | ||
"offset.attributes.string": "name+hash", | ||
"skip.headers": "1", | ||
"topic": "connect-file-pulse-quickstart-csv", | ||
"tasks.reader.class": "io.streamthoughts.kafka.connect.filepulse.fs.reader.LocalRowFileInputReader", | ||
"tasks.max": 1 | ||
}, | ||
"name": "connect-file-pulse-quickstart-csv" | ||
} | ||
"connector.class": "io.streamthoughts.kafka.connect.filepulse.source.FilePulseSourceConnector", | ||
"filters": "ParseDelimitedRow, SetTopic, SetKey", | ||
"filters.SetTopic.value": "replace_all(lowercase($.type), '\\s','-')", | ||
"filters.SetTopic.field": "$topic", | ||
"filters.SetTopic.type": "io.streamthoughts.kafka.connect.filepulse.filter.AppendFilter", | ||
"filters.SetKey.value": "{{ lowercase($.artist) }}-{{ lowercase($.title) }}", | ||
"filters.SetKey.field": "$key", | ||
"filters.SetKey.type": "io.streamthoughts.kafka.connect.filepulse.filter.AppendFilter", | ||
"filters.ParseDelimitedRow.extractColumnName": "headers", | ||
"filters.ParseDelimitedRow.trimColumn": "true", | ||
"filters.ParseDelimitedRow.type": "io.streamthoughts.kafka.connect.filepulse.filter.DelimitedRowFilter", | ||
"fs.cleanup.policy.class": "io.streamthoughts.kafka.connect.filepulse.clean.LogCleanupPolicy", | ||
"fs.listing.class": "io.streamthoughts.kafka.connect.filepulse.fs.LocalFSDirectoryListing", | ||
"fs.listing.directory.path": "/tmp/kafka-connect/examples/", | ||
"fs.listing.interval.ms": "10000", | ||
"internal.kafka.reporter.bootstrap.servers": "broker:29092", | ||
"internal.kafka.reporter.topic": "connect-file-pulse-status", | ||
"offset.attributes.string": "name+hash", | ||
"skip.headers": "1", | ||
"topic": "connect-file-pulse-quickstart-csv", | ||
"tasks.reader.class": "io.streamthoughts.kafka.connect.filepulse.fs.reader.LocalRowFileInputReader", | ||
"tasks.max": 1 | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
{ | ||
"config": { | ||
"connector.class": "io.streamthoughts.kafka.connect.filepulse.source.FilePulseSourceConnector", | ||
"fs.cleanup.policy.class": "io.streamthoughts.kafka.connect.filepulse.clean.LogCleanupPolicy", | ||
"fs.listing.class" : "io.streamthoughts.kafka.connect.filepulse.fs.LocalFSDirectoryListing", | ||
"fs.listing.directory.path":"/tmp/kafka-connect/examples/", | ||
"fs.listing.interval.ms": "10000", | ||
"internal.kafka.reporter.bootstrap.servers": "broker:29092", | ||
"internal.kafka.reporter.topic": "connect-file-pulse-status", | ||
"offset.attributes.string": "name", | ||
"read.max.wait.ms": "5000", | ||
"topic": "connect-file-pulse-quickstart-avro", | ||
"tasks.reader.class": "io.streamthoughts.kafka.connect.filepulse.fs.reader.LocalAvroFileInputReader", | ||
"tasks.max": 1 | ||
}, | ||
"name": "connect-file-pulse-quickstart-avro" | ||
"connector.class": "io.streamthoughts.kafka.connect.filepulse.source.FilePulseSourceConnector", | ||
"fs.cleanup.policy.class": "io.streamthoughts.kafka.connect.filepulse.clean.LogCleanupPolicy", | ||
"fs.listing.class" : "io.streamthoughts.kafka.connect.filepulse.fs.LocalFSDirectoryListing", | ||
"fs.listing.directory.path":"/tmp/kafka-connect/examples/", | ||
"fs.listing.interval.ms": "10000", | ||
"internal.kafka.reporter.bootstrap.servers": "broker:29092", | ||
"internal.kafka.reporter.topic": "connect-file-pulse-status", | ||
"offset.attributes.string": "name", | ||
"read.max.wait.ms": "5000", | ||
"topic": "connect-file-pulse-quickstart-avro", | ||
"tasks.reader.class": "io.streamthoughts.kafka.connect.filepulse.fs.reader.LocalAvroFileInputReader", | ||
"tasks.max": 1 | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,23 @@ | ||
{ | ||
"config": { | ||
"connector.class": "io.streamthoughts.kafka.connect.filepulse.source.FilePulseSourceConnector", | ||
"filters": "ParseDelimitedRow, Drop", | ||
"filters.Drop.if": "{{ equals($value.artist, 'U2') }}", | ||
"filters.Drop.invert": "true", | ||
"filters.Drop.type": "io.streamthoughts.kafka.connect.filepulse.filter.DropFilter", | ||
"filters.ParseDelimitedRow.extractColumnName": "headers", | ||
"filters.ParseDelimitedRow.trimColumn": "true", | ||
"filters.ParseDelimitedRow.type": "io.streamthoughts.kafka.connect.filepulse.filter.DelimitedRowFilter", | ||
"fs.cleanup.policy.class": "io.streamthoughts.kafka.connect.filepulse.clean.LogCleanupPolicy", | ||
"fs.listing.class": "io.streamthoughts.kafka.connect.filepulse.fs.LocalFSDirectoryListing", | ||
"fs.listing.directory.path":"/tmp/kafka-connect/examples/", | ||
"fs.listing.filters":"io.streamthoughts.kafka.connect.filepulse.fs.filter.RegexFileListFilter", | ||
"fs.listing.interval.ms": "10000", | ||
"file.filter.regex.pattern":".*\\.csv$", | ||
"internal.kafka.reporter.bootstrap.servers": "broker:29092", | ||
"internal.kafka.reporter.topic": "connect-file-pulse-status", | ||
"offset.attributes.string": "name+hash", | ||
"skip.headers": "1", | ||
"topic": "connect-file-pulse-quickstart-csv", | ||
"tasks.reader.class": "io.streamthoughts.kafka.connect.filepulse.fs.reader.LocalRowFileInputReader", | ||
"tasks.max": 1 | ||
}, | ||
"name": "connect-file-pulse-quickstart-csv" | ||
} | ||
"connector.class": "io.streamthoughts.kafka.connect.filepulse.source.FilePulseSourceConnector", | ||
"filters": "ParseDelimitedRow, Drop", | ||
"filters.Drop.if": "{{ equals($value.artist, 'U2') }}", | ||
"filters.Drop.invert": "true", | ||
"filters.Drop.type": "io.streamthoughts.kafka.connect.filepulse.filter.DropFilter", | ||
"filters.ParseDelimitedRow.extractColumnName": "headers", | ||
"filters.ParseDelimitedRow.trimColumn": "true", | ||
"filters.ParseDelimitedRow.type": "io.streamthoughts.kafka.connect.filepulse.filter.DelimitedRowFilter", | ||
"fs.cleanup.policy.class": "io.streamthoughts.kafka.connect.filepulse.clean.LogCleanupPolicy", | ||
"fs.listing.class": "io.streamthoughts.kafka.connect.filepulse.fs.LocalFSDirectoryListing", | ||
"fs.listing.directory.path":"/tmp/kafka-connect/examples/", | ||
"fs.listing.filters":"io.streamthoughts.kafka.connect.filepulse.fs.filter.RegexFileListFilter", | ||
"fs.listing.interval.ms": "10000", | ||
"file.filter.regex.pattern":".*\\.csv$", | ||
"internal.kafka.reporter.bootstrap.servers": "broker:29092", | ||
"internal.kafka.reporter.topic": "connect-file-pulse-status", | ||
"offset.attributes.string": "name+hash", | ||
"skip.headers": "1", | ||
"topic": "connect-file-pulse-quickstart-csv", | ||
"tasks.reader.class": "io.streamthoughts.kafka.connect.filepulse.fs.reader.LocalRowFileInputReader", | ||
"tasks.max": 1 | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
{ | ||
"config": { | ||
"connector.class": "io.streamthoughts.kafka.connect.filepulse.source.FilePulseSourceConnector", | ||
"filters": "GroupMultilineException, ParseLog4jLog", | ||
"filters.GroupMultilineException.negate": "false", | ||
"filters.GroupMultilineException.pattern": "^[\\t]", | ||
"filters.GroupMultilineException.type": "io.streamthoughts.kafka.connect.filepulse.filter.MultiRowFilter", | ||
"filters.ParseLog4jLog.match": "%{TIMESTAMP_ISO8601:logdate} %{LOGLEVEL:loglevel} %{GREEDYDATA:message}", | ||
"filters.ParseLog4jLog.overwrite": "message", | ||
"filters.ParseLog4jLog.source": "message", | ||
"filters.ParseLog4jLog.type": "io.streamthoughts.kafka.connect.filepulse.filter.GrokFilter", | ||
"filters.ParseLog4jLog.ignoreFailure": "true", | ||
"fs.cleanup.policy.class": "io.streamthoughts.kafka.connect.filepulse.clean.LogCleanupPolicy", | ||
"fs.listing.class": "io.streamthoughts.kafka.connect.filepulse.fs.LocalFSDirectoryListing", | ||
"fs.listing.directory.path": "/tmp/kafka-connect/examples/", | ||
"fs.listing.filters": "io.streamthoughts.kafka.connect.filepulse.fs.filter.RegexFileListFilter", | ||
"fs.listing.interval.ms": "10000", | ||
"file.filter.regex.pattern":".*\\.log$", | ||
"internal.kafka.reporter.bootstrap.servers": "broker:29092", | ||
"internal.kafka.reporter.topic": "connect-file-pulse-status", | ||
"offset.attributes.string": "name", | ||
"read.max.wait.ms": "5000", | ||
"topic": "connect-file-pulse-quickstart-log4j", | ||
"tasks.reader.class": "io.streamthoughts.kafka.connect.filepulse.fs.reader.LocalRowFileInputReader", | ||
"tasks.max": 1 | ||
}, | ||
"name": "connect-file-pulse-quickstart-log4j" | ||
"connector.class": "io.streamthoughts.kafka.connect.filepulse.source.FilePulseSourceConnector", | ||
"filters": "GroupMultilineException, ParseLog4jLog", | ||
"filters.GroupMultilineException.negate": "false", | ||
"filters.GroupMultilineException.pattern": "^[\\t]", | ||
"filters.GroupMultilineException.type": "io.streamthoughts.kafka.connect.filepulse.filter.MultiRowFilter", | ||
"filters.ParseLog4jLog.pattern": "%{TIMESTAMP_ISO8601:logdate} %{LOGLEVEL:loglevel} %{GREEDYDATA:message}", | ||
"filters.ParseLog4jLog.overwrite": "message", | ||
"filters.ParseLog4jLog.source": "message", | ||
"filters.ParseLog4jLog.type": "io.streamthoughts.kafka.connect.filepulse.filter.GrokFilter", | ||
"filters.ParseLog4jLog.ignoreFailure": "true", | ||
"fs.cleanup.policy.class": "io.streamthoughts.kafka.connect.filepulse.clean.LogCleanupPolicy", | ||
"fs.listing.class": "io.streamthoughts.kafka.connect.filepulse.fs.LocalFSDirectoryListing", | ||
"fs.listing.directory.path": "/var/log/kafka/", | ||
"fs.listing.filters": "io.streamthoughts.kafka.connect.filepulse.fs.filter.RegexFileListFilter", | ||
"fs.listing.interval.ms": "10000", | ||
"file.filter.regex.pattern":".*\\.log$", | ||
"internal.kafka.reporter.bootstrap.servers": "broker:29092", | ||
"internal.kafka.reporter.topic": "connect-file-pulse-status", | ||
"offset.attributes.string": "name", | ||
"read.max.wait.ms": "5000", | ||
"topic": "connect-file-pulse-quickstart-log4j", | ||
"tasks.reader.class": "io.streamthoughts.kafka.connect.filepulse.fs.reader.LocalRowFileInputReader", | ||
"tasks.max": 1 | ||
} |
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