After implementing ingest pipelines to parse your data, youmight decide that you want to take advantage of the richer transformationcapabilities in Logstash. For example, you may need to use Logstash instead ofingest pipelines if you want to:
To make it easier for you to migrate your configurations, Logstash provides aningest pipeline conversion tool. The conversion tool takes the ingest pipelinedefinition as input and, when possible, creates the equivalent Logstashconfiguration as output.
See Limitations for a full list of tool limitations.
You’ll find the conversion tool in the bin
directory of your Logstashinstallation. See Logstash Directory Layout to find the location of bin
on your system.
To run the conversion tool, use the following command:
bin/ingest-convert.sh --input INPUT_FILE_URI --output OUTPUT_FILE_URI [--append-stdio]
Where:
INPUT_FILE_URI
is a file URI that specifies the full path to the JSON filethat defines the ingest node pipeline.OUTPUT_FILE_URI
is the file URI of the Logstash DSL file that will begenerated by the tool.--append-stdio
is an optional flag that adds stdin and stdout sections tothe config instead of adding the default Elasticsearch output.This command expects a file URI, so make sure you use forward slashes andspecify the full path to the file.
For example:
bin/ingest-convert.sh --input file:///tmp/ingest/apache.json --output file:///tmp/ingest/apache.conf