Creating an OpenSearch Pipeline
Create an OpenSearch pipeline to ingest log data into an OpenSearch cluster with Data Prepper.
OpenSearch index names must follow these rules:
- All letters must be lowercase.
- Names can't begin with an underscore ( _ ) or hyphen (-).
- Names can't contain spaces, commas, or any of the following characters: :, ", *, +, /, \, |, ?, #, >, <
- The index name can contain a data prepper expression.
After you create a data ingestion pipeline within an OpenSearch cluster, you can only delete the cluster if you have first deleted all its data ingestion pipelines.
Use the oci opensearch pipeline create command and required parameters to create a pipeline:
oci opensearch pipeline create --compartment-id compartment_id --data-prepper-configuration-body yaml --display-name display_name --subnet-id subnet_id --memory-gb memory_gb --node-count node_count --ocpu-count ocpu_count --pipeline-configuration-body yaml [OPTIONS]
data-prepper-configuration-body
is the data prepper configuration in YAML format. The command accepts the data prepper configuration as a string or within a.yaml
file. If you provide the configuration as a string, each new line must be escaped with ".".pipeline-configuration-body
is the pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a.yaml
file. If you provide the configuration as a string, each new line must be escaped with ".".For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateOpensearchClusterPipeline operation to create a pipeline.