public abstract static class SplunkIO.Write extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<SplunkEvent>,org.apache.beam.sdk.values.PCollection<SplunkWriteError>>
SplunkIO.Write provides a PTransform that allows writing SplunkEvent
records into a Splunk HTTP Event Collector end-point using HTTP POST requests.
In the event of an error, a PCollection<SplunkWriteError> is
returned for further processing or storing into a dead-letter sink.
| Constructor and Description |
|---|
Write() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.values.PCollection<SplunkWriteError> |
expand(org.apache.beam.sdk.values.PCollection<SplunkEvent> input) |
SplunkIO.Write |
withBatchCount(java.lang.Integer batchCount)
Sets batchCount for sending multiple events in a single request to the HEC.
|
SplunkIO.Write |
withBatchCount(org.apache.beam.sdk.options.ValueProvider<java.lang.Integer> batchCount)
Same as
withBatchCount(Integer) but with ValueProvider. |
SplunkIO.Write |
withDisableCertificateValidation(java.lang.Boolean disableCertificateValidation)
Disables ssl certificate validation.
|
SplunkIO.Write |
withDisableCertificateValidation(org.apache.beam.sdk.options.ValueProvider<java.lang.Boolean> disableCertificateValidation)
Same as
withDisableCertificateValidation(Boolean) but with ValueProvider. |
SplunkIO.Write |
withEnableBatchLogs(java.lang.Boolean enableBatchLogs)
Method to enable batch logs.
|
SplunkIO.Write |
withEnableBatchLogs(org.apache.beam.sdk.options.ValueProvider<java.lang.Boolean> enableBatchLogs)
Same as
Builder#withEnableBatchLogs(ValueProvider) but without a ValueProvider. |
SplunkIO.Write |
withEnableGzipHttpCompression(java.lang.Boolean enableGzipHttpCompression)
Method to specify if HTTP requests sent to Splunk should be GZIP encoded.
|
SplunkIO.Write |
withEnableGzipHttpCompression(org.apache.beam.sdk.options.ValueProvider<java.lang.Boolean> enableGzipHttpCompression)
Same as
Builder#withEnableGzipHttpCompression(ValueProvider) but without a ValueProvider. |
SplunkIO.Write |
withParallelism(java.lang.Integer parallelism)
Sets the number of parallel http client connections to the HEC.
|
SplunkIO.Write |
withParallelism(org.apache.beam.sdk.options.ValueProvider<java.lang.Integer> parallelism)
Same as
withBatchCount(Integer) but with ValueProvider. |
SplunkIO.Write |
withRootCaCertificatePath(java.lang.String rootCaCertificatePath)
Method to set the root CA certificate.
|
SplunkIO.Write |
withRootCaCertificatePath(org.apache.beam.sdk.options.ValueProvider<java.lang.String> rootCaCertificatePath)
Same as
Builder#withRootCaCertificatePath(ValueProvider) but without a ValueProvider. |
public org.apache.beam.sdk.values.PCollection<SplunkWriteError> expand(org.apache.beam.sdk.values.PCollection<SplunkEvent> input)
expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<SplunkEvent>,org.apache.beam.sdk.values.PCollection<SplunkWriteError>>public SplunkIO.Write withBatchCount(org.apache.beam.sdk.options.ValueProvider<java.lang.Integer> batchCount)
withBatchCount(Integer) but with ValueProvider.batchCount - for batching requestspublic SplunkIO.Write withBatchCount(java.lang.Integer batchCount)
batchCount - for batching requestspublic SplunkIO.Write withParallelism(org.apache.beam.sdk.options.ValueProvider<java.lang.Integer> parallelism)
withBatchCount(Integer) but with ValueProvider.parallelism - for controlling the number of concurrent http client connectionspublic SplunkIO.Write withParallelism(java.lang.Integer parallelism)
parallelism - controlling the number of http client connectionsBuilderpublic SplunkIO.Write withDisableCertificateValidation(org.apache.beam.sdk.options.ValueProvider<java.lang.Boolean> disableCertificateValidation)
withDisableCertificateValidation(Boolean) but with ValueProvider.disableCertificateValidation - for disabling certificate validationBuilderpublic SplunkIO.Write withDisableCertificateValidation(java.lang.Boolean disableCertificateValidation)
disableCertificateValidation - for disabling certificate validationpublic SplunkIO.Write withRootCaCertificatePath(org.apache.beam.sdk.options.ValueProvider<java.lang.String> rootCaCertificatePath)
Builder#withRootCaCertificatePath(ValueProvider) but without a ValueProvider.rootCaCertificatePath - Path to root CA certificateBuilderpublic SplunkIO.Write withRootCaCertificatePath(java.lang.String rootCaCertificatePath)
rootCaCertificatePath - Path to root CA certificateBuilderpublic SplunkIO.Write withEnableBatchLogs(org.apache.beam.sdk.options.ValueProvider<java.lang.Boolean> enableBatchLogs)
Builder#withEnableBatchLogs(ValueProvider) but without a ValueProvider.enableBatchLogs - whether to enable Gzip encoding.Builderpublic SplunkIO.Write withEnableBatchLogs(java.lang.Boolean enableBatchLogs)
enableBatchLogs - whether to enable Gzip encoding.Builderpublic SplunkIO.Write withEnableGzipHttpCompression(org.apache.beam.sdk.options.ValueProvider<java.lang.Boolean> enableGzipHttpCompression)
Builder#withEnableGzipHttpCompression(ValueProvider) but without a ValueProvider.enableGzipHttpCompression - whether to enable Gzip encoding.Builderpublic SplunkIO.Write withEnableGzipHttpCompression(java.lang.Boolean enableGzipHttpCompression)
enableGzipHttpCompression - whether to enable Gzip encoding.Builder