-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logstash migration guide #1487
Logstash migration guide #1487
Changes from all commits
e896071
12edb4a
0790bbf
09870b4
8622d56
53bcbfa
e210d4c
9c81f7f
cad2334
94501cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
layout: default | ||
title: Configure Logstash for Data Prepper | ||
parent: Data Prepper | ||
nav_order: 2 | ||
--- | ||
# Configure Logstash for Data Prepper | ||
You can run Data Prepper with a Logstash configuration. | ||
|
||
As mentioned in the [Getting Started]({{site.url}}{{site.baseurl}}/opensearch/clients/data-prepper/getting-started) guide, you'll need to configure Data Prepper with a pipeline using a `pipelines.yaml` file. | ||
|
||
Alternatively, if you have a Logstash configuration `logstash.conf` to configure Data Prepper instead of `pipelines.yaml`. | ||
carolxob marked this conversation as resolved.
Show resolved
Hide resolved
carolxob marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Supported plugins | ||
|
||
As of the Data Prepper 1.2 release, the following plugins from the Logstash configuration are supported: | ||
* HTTP Input plugin | ||
* Grok Filter plugin | ||
* Elasticsearch Output plugin | ||
* Amazon Elasticsearch Output plugin | ||
|
||
## Limitations | ||
* Apart from the supported plugins, all other plugins from the Logstash configuration will throw an `Exception` and fail to run. | ||
* Conditionals in the Logstash configuration are not supported as of the Data Prepper 1.2 release. | ||
|
||
## Running Data Prepper with a Logstash configuration | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we have an intro paragraph here? Like To run Data Prepper with a Logstash configuration, do the following. |
||
|
||
1. To install Data Prepper's Docker image, see the _Installation_ section in the [Getting Started]({{site.url}}{{site.baseurl}}/opensearch/clients/data-prepper/getting_started) guide. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we need a command here, like "Install the Data Prepper Docker image. For instructions, see .... Remove "guide". |
||
|
||
2. Run the Docker image installed in Step 1 by supplying your `logstash.conf` configuration. | ||
|
||
``` | ||
docker run --name data-prepper -p 4900:4900 -v ${PWD}/logstash.conf:/usr/share/data-prepper/pipelines.conf opensearchproject/data-prepper:latest pipelines.conf | ||
``` | ||
|
||
The `logstash.conf` file is converted to `logstash.yaml` by mapping the plugins and attributes in the Logstash configuration to the corresponding plugins and attributes in Data Prepper. | ||
You can find the converted `logstash.yaml` file in the same directory where you stored `logstash.conf`. | ||
|
||
|
||
The following output in your terminal indicates that Data Prepper is running correctly: | ||
|
||
``` | ||
INFO org.opensearch.dataprepper.pipeline.ProcessWorker - log-pipeline Worker: No records received from buffer | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting Started guide --> Getting Started section?