elasticstack 0.12.1 published on Thursday, Oct 23, 2025 by elastic
elasticstack.getElasticsearchIngestProcessorSplit
elasticstack 0.12.1 published on Thursday, Oct 23, 2025 by elastic
Helper data source which can be used to create the configuration for a split processor. This processor splits a field into an array using a separator character. See the split processor documentation for more details.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as elasticstack from "@pulumi/elasticstack";
const split = elasticstack.getElasticsearchIngestProcessorSplit({
field: "my_field",
separator: "\\s+",
});
const myIngestPipeline = new elasticstack.ElasticsearchIngestPipeline("myIngestPipeline", {processors: [split.then(split => split.json)]});
import pulumi
import pulumi_elasticstack as elasticstack
split = elasticstack.get_elasticsearch_ingest_processor_split(field="my_field",
separator="\\s+")
my_ingest_pipeline = elasticstack.ElasticsearchIngestPipeline("myIngestPipeline", processors=[split.json])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/elasticstack/elasticstack"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
split, err := elasticstack.GetElasticsearchIngestProcessorSplit(ctx, &elasticstack.GetElasticsearchIngestProcessorSplitArgs{
Field: "my_field",
Separator: "\\s+",
}, nil)
if err != nil {
return err
}
_, err = elasticstack.NewElasticsearchIngestPipeline(ctx, "myIngestPipeline", &elasticstack.ElasticsearchIngestPipelineArgs{
Processors: pulumi.StringArray{
pulumi.String(split.Json),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Elasticstack = Pulumi.Elasticstack;
return await Deployment.RunAsync(() =>
{
var split = Elasticstack.GetElasticsearchIngestProcessorSplit.Invoke(new()
{
Field = "my_field",
Separator = "\\s+",
});
var myIngestPipeline = new Elasticstack.ElasticsearchIngestPipeline("myIngestPipeline", new()
{
Processors = new[]
{
split.Apply(getElasticsearchIngestProcessorSplitResult => getElasticsearchIngestProcessorSplitResult.Json),
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.elasticstack.ElasticstackFunctions;
import com.pulumi.elasticstack.inputs.GetElasticsearchIngestProcessorSplitArgs;
import com.pulumi.elasticstack.ElasticsearchIngestPipeline;
import com.pulumi.elasticstack.ElasticsearchIngestPipelineArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var split = ElasticstackFunctions.getElasticsearchIngestProcessorSplit(GetElasticsearchIngestProcessorSplitArgs.builder()
.field("my_field")
.separator("\\s+")
.build());
var myIngestPipeline = new ElasticsearchIngestPipeline("myIngestPipeline", ElasticsearchIngestPipelineArgs.builder()
.processors(split.applyValue(getElasticsearchIngestProcessorSplitResult -> getElasticsearchIngestProcessorSplitResult.json()))
.build());
}
}
resources:
myIngestPipeline:
type: elasticstack:ElasticsearchIngestPipeline
properties:
processors:
- ${split.json}
variables:
split:
fn::invoke:
function: elasticstack:getElasticsearchIngestProcessorSplit
arguments:
field: my_field
separator: \s+
Using getElasticsearchIngestProcessorSplit
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getElasticsearchIngestProcessorSplit(args: GetElasticsearchIngestProcessorSplitArgs, opts?: InvokeOptions): Promise<GetElasticsearchIngestProcessorSplitResult>
function getElasticsearchIngestProcessorSplitOutput(args: GetElasticsearchIngestProcessorSplitOutputArgs, opts?: InvokeOptions): Output<GetElasticsearchIngestProcessorSplitResult>def get_elasticsearch_ingest_processor_split(description: Optional[str] = None,
field: Optional[str] = None,
if_: Optional[str] = None,
ignore_failure: Optional[bool] = None,
ignore_missing: Optional[bool] = None,
on_failures: Optional[Sequence[str]] = None,
preserve_trailing: Optional[bool] = None,
separator: Optional[str] = None,
tag: Optional[str] = None,
target_field: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetElasticsearchIngestProcessorSplitResult
def get_elasticsearch_ingest_processor_split_output(description: Optional[pulumi.Input[str]] = None,
field: Optional[pulumi.Input[str]] = None,
if_: Optional[pulumi.Input[str]] = None,
ignore_failure: Optional[pulumi.Input[bool]] = None,
ignore_missing: Optional[pulumi.Input[bool]] = None,
on_failures: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
preserve_trailing: Optional[pulumi.Input[bool]] = None,
separator: Optional[pulumi.Input[str]] = None,
tag: Optional[pulumi.Input[str]] = None,
target_field: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetElasticsearchIngestProcessorSplitResult]func GetElasticsearchIngestProcessorSplit(ctx *Context, args *GetElasticsearchIngestProcessorSplitArgs, opts ...InvokeOption) (*GetElasticsearchIngestProcessorSplitResult, error)
func GetElasticsearchIngestProcessorSplitOutput(ctx *Context, args *GetElasticsearchIngestProcessorSplitOutputArgs, opts ...InvokeOption) GetElasticsearchIngestProcessorSplitResultOutput> Note: This function is named GetElasticsearchIngestProcessorSplit in the Go SDK.
public static class GetElasticsearchIngestProcessorSplit
{
public static Task<GetElasticsearchIngestProcessorSplitResult> InvokeAsync(GetElasticsearchIngestProcessorSplitArgs args, InvokeOptions? opts = null)
public static Output<GetElasticsearchIngestProcessorSplitResult> Invoke(GetElasticsearchIngestProcessorSplitInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetElasticsearchIngestProcessorSplitResult> getElasticsearchIngestProcessorSplit(GetElasticsearchIngestProcessorSplitArgs args, InvokeOptions options)
public static Output<GetElasticsearchIngestProcessorSplitResult> getElasticsearchIngestProcessorSplit(GetElasticsearchIngestProcessorSplitArgs args, InvokeOptions options)
fn::invoke:
function: elasticstack:index/getElasticsearchIngestProcessorSplit:getElasticsearchIngestProcessorSplit
arguments:
# arguments dictionaryThe following arguments are supported:
- Field string
- The field to split
- Separator string
- A regex which matches the separator, eg
,or\s+ - Description string
- Description of the processor.
- If string
- Conditionally execute the processor
- Ignore
Failure bool - Ignore failures for the processor.
- Ignore
Missing bool - If
trueandfielddoes not exist or isnull, the processor quietly exits without modifying the document. - On
Failures List<string> - Handle failures for the processor.
- Preserve
Trailing bool - Preserves empty trailing fields, if any.
- Tag string
- Identifier for the processor.
- Target
Field string - The field to assign the converted value to, by default
fieldis updated in-place.
- Field string
- The field to split
- Separator string
- A regex which matches the separator, eg
,or\s+ - Description string
- Description of the processor.
- If string
- Conditionally execute the processor
- Ignore
Failure bool - Ignore failures for the processor.
- Ignore
Missing bool - If
trueandfielddoes not exist or isnull, the processor quietly exits without modifying the document. - On
Failures []string - Handle failures for the processor.
- Preserve
Trailing bool - Preserves empty trailing fields, if any.
- Tag string
- Identifier for the processor.
- Target
Field string - The field to assign the converted value to, by default
fieldis updated in-place.
- field String
- The field to split
- separator String
- A regex which matches the separator, eg
,or\s+ - description String
- Description of the processor.
- if_ String
- Conditionally execute the processor
- ignore
Failure Boolean - Ignore failures for the processor.
- ignore
Missing Boolean - If
trueandfielddoes not exist or isnull, the processor quietly exits without modifying the document. - on
Failures List<String> - Handle failures for the processor.
- preserve
Trailing Boolean - Preserves empty trailing fields, if any.
- tag String
- Identifier for the processor.
- target
Field String - The field to assign the converted value to, by default
fieldis updated in-place.
- field string
- The field to split
- separator string
- A regex which matches the separator, eg
,or\s+ - description string
- Description of the processor.
- if string
- Conditionally execute the processor
- ignore
Failure boolean - Ignore failures for the processor.
- ignore
Missing boolean - If
trueandfielddoes not exist or isnull, the processor quietly exits without modifying the document. - on
Failures string[] - Handle failures for the processor.
- preserve
Trailing boolean - Preserves empty trailing fields, if any.
- tag string
- Identifier for the processor.
- target
Field string - The field to assign the converted value to, by default
fieldis updated in-place.
- field str
- The field to split
- separator str
- A regex which matches the separator, eg
,or\s+ - description str
- Description of the processor.
- if_ str
- Conditionally execute the processor
- ignore_
failure bool - Ignore failures for the processor.
- ignore_
missing bool - If
trueandfielddoes not exist or isnull, the processor quietly exits without modifying the document. - on_
failures Sequence[str] - Handle failures for the processor.
- preserve_
trailing bool - Preserves empty trailing fields, if any.
- tag str
- Identifier for the processor.
- target_
field str - The field to assign the converted value to, by default
fieldis updated in-place.
- field String
- The field to split
- separator String
- A regex which matches the separator, eg
,or\s+ - description String
- Description of the processor.
- if String
- Conditionally execute the processor
- ignore
Failure Boolean - Ignore failures for the processor.
- ignore
Missing Boolean - If
trueandfielddoes not exist or isnull, the processor quietly exits without modifying the document. - on
Failures List<String> - Handle failures for the processor.
- preserve
Trailing Boolean - Preserves empty trailing fields, if any.
- tag String
- Identifier for the processor.
- target
Field String - The field to assign the converted value to, by default
fieldis updated in-place.
getElasticsearchIngestProcessorSplit Result
The following output properties are available:
- Field string
- The field to split
- Id string
- Internal identifier of the resource.
- Json string
- JSON representation of this data source.
- Separator string
- A regex which matches the separator, eg
,or\s+ - Description string
- Description of the processor.
- If string
- Conditionally execute the processor
- Ignore
Failure bool - Ignore failures for the processor.
- Ignore
Missing bool - If
trueandfielddoes not exist or isnull, the processor quietly exits without modifying the document. - On
Failures List<string> - Handle failures for the processor.
- Preserve
Trailing bool - Preserves empty trailing fields, if any.
- Tag string
- Identifier for the processor.
- Target
Field string - The field to assign the converted value to, by default
fieldis updated in-place.
- Field string
- The field to split
- Id string
- Internal identifier of the resource.
- Json string
- JSON representation of this data source.
- Separator string
- A regex which matches the separator, eg
,or\s+ - Description string
- Description of the processor.
- If string
- Conditionally execute the processor
- Ignore
Failure bool - Ignore failures for the processor.
- Ignore
Missing bool - If
trueandfielddoes not exist or isnull, the processor quietly exits without modifying the document. - On
Failures []string - Handle failures for the processor.
- Preserve
Trailing bool - Preserves empty trailing fields, if any.
- Tag string
- Identifier for the processor.
- Target
Field string - The field to assign the converted value to, by default
fieldis updated in-place.
- field String
- The field to split
- id String
- Internal identifier of the resource.
- json String
- JSON representation of this data source.
- separator String
- A regex which matches the separator, eg
,or\s+ - description String
- Description of the processor.
- if_ String
- Conditionally execute the processor
- ignore
Failure Boolean - Ignore failures for the processor.
- ignore
Missing Boolean - If
trueandfielddoes not exist or isnull, the processor quietly exits without modifying the document. - on
Failures List<String> - Handle failures for the processor.
- preserve
Trailing Boolean - Preserves empty trailing fields, if any.
- tag String
- Identifier for the processor.
- target
Field String - The field to assign the converted value to, by default
fieldis updated in-place.
- field string
- The field to split
- id string
- Internal identifier of the resource.
- json string
- JSON representation of this data source.
- separator string
- A regex which matches the separator, eg
,or\s+ - description string
- Description of the processor.
- if string
- Conditionally execute the processor
- ignore
Failure boolean - Ignore failures for the processor.
- ignore
Missing boolean - If
trueandfielddoes not exist or isnull, the processor quietly exits without modifying the document. - on
Failures string[] - Handle failures for the processor.
- preserve
Trailing boolean - Preserves empty trailing fields, if any.
- tag string
- Identifier for the processor.
- target
Field string - The field to assign the converted value to, by default
fieldis updated in-place.
- field str
- The field to split
- id str
- Internal identifier of the resource.
- json str
- JSON representation of this data source.
- separator str
- A regex which matches the separator, eg
,or\s+ - description str
- Description of the processor.
- if_ str
- Conditionally execute the processor
- ignore_
failure bool - Ignore failures for the processor.
- ignore_
missing bool - If
trueandfielddoes not exist or isnull, the processor quietly exits without modifying the document. - on_
failures Sequence[str] - Handle failures for the processor.
- preserve_
trailing bool - Preserves empty trailing fields, if any.
- tag str
- Identifier for the processor.
- target_
field str - The field to assign the converted value to, by default
fieldis updated in-place.
- field String
- The field to split
- id String
- Internal identifier of the resource.
- json String
- JSON representation of this data source.
- separator String
- A regex which matches the separator, eg
,or\s+ - description String
- Description of the processor.
- if String
- Conditionally execute the processor
- ignore
Failure Boolean - Ignore failures for the processor.
- ignore
Missing Boolean - If
trueandfielddoes not exist or isnull, the processor quietly exits without modifying the document. - on
Failures List<String> - Handle failures for the processor.
- preserve
Trailing Boolean - Preserves empty trailing fields, if any.
- tag String
- Identifier for the processor.
- target
Field String - The field to assign the converted value to, by default
fieldis updated in-place.
Package Details
- Repository
- elasticstack elastic/terraform-provider-elasticstack
- License
- Notes
- This Pulumi package is based on the
elasticstackTerraform Provider.
elasticstack 0.12.1 published on Thursday, Oct 23, 2025 by elastic
