# Need to send data from .log file to AWS opensearch

**URL:** <https://discuss.elastic.co/t/need-to-send-data-from-log-file-to-aws-opensearch/348555>\
**Category:** Logstash\
**Created:** [December 4, 2023, 12:15pm UTC](https://discuss.elastic.co/t/need-to-send-data-from-log-file-to-aws-opensearch/348555 "2023-12-04T12:15:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anupvtr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anupvtr/32/128607_2.png) [@anupvtr](https://discuss.elastic.co/u/anupvtr)\
**Post date:** [December 4, 2023, 12:15pm UTC](https://discuss.elastic.co/t/need-to-send-data-from-log-file-to-aws-opensearch/348555/1 "2023-12-04T12:15:13Z")

</div>

Hello all,

Could you please help me on this.

I am quite new to the Elasticsearch ocean.

My requirement is, I need to send data from .log file to AWS opensearch. Whether the below option will work for me.

- Download the Logstash 7.16.3 from official elasticsearch site ([Download Logstash Free | Get Started Now | Elastic](https://www.elastic.co/downloads/logstash))and install on RHEL server.

- Use the following command to install the plugin:

Or i have to forcefully choose the follwing option download "Logstash OSS with OpenSearch Output Plugin" from the website ([Opensearch 2.11.1 · OpenSearch](https://opensearch.org/downloads.html)).  
which have a pre loaded opensearch output plugin.

What is the maximum Logstash version supports for opensearch for below two conditions.

1. Logstash downloaded from official elasticsearch site ([Download Logstash Free | Get Started Now | Elastic](https://www.elastic.co/downloads/logstash))

2. Logstash OSS with OpenSearch Output Plugin" from the website ([Opensearch 2.11.1 · OpenSearch](https://opensearch.org/downloads.html))

In the opensearch document its mentioned like below

Install Logstash  
To install Logstash on OpenSearch, first install Logstash on your cluster, then the OpenSearch Logstash plugin, as described in the following steps.

Tarball

\*Make sure you have Java Development Kit (JDK) version 8 or 11 installed.

\*Download the Logstash tarball from Logstash downloads([Download Logstash Free | Get Started Now | Elastic](https://www.elastic.co/downloads/logstash)).

\*Navigate to the downloaded folder in the terminal and extract the files. Make sure that your version of Logstash and platform matches the one downloaded:

tar -zxvf logstash-8.8.2-linux-x86\_64.tar.gz  
\*Navigate to the logstash-8.8.2 directory.

\*Use the following command to install the plugin:

bin/logstash-plugin install logstash-output-opensearch

Thanks & Regards,  
Anu

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 4, 2023, 12:15pm UTC](https://discuss.elastic.co/t/need-to-send-data-from-log-file-to-aws-opensearch/348555/2 "2023-12-04T12:15:14Z")

</div>

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<div class="post-metadata">

**Author:** ![anupvtr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anupvtr/32/128607_2.png) [@anupvtr](https://discuss.elastic.co/u/anupvtr)\
**Post date:** [December 4, 2023, 12:25pm UTC](https://discuss.elastic.co/t/need-to-send-data-from-log-file-to-aws-opensearch/348555/3 "2023-12-04T12:25:58Z")

</div>

I am aware that opensearch is AWS product. But i am checking if any suggestions can be provided from the experts over here.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [December 4, 2023, 12:49pm UTC](https://discuss.elastic.co/t/need-to-send-data-from-log-file-to-aws-opensearch/348555/4 "2023-12-04T12:49:20Z")

</div>

Your LS host should have the internet connection. I have installed the opensearch plugin without problems.

1. Install the pluging:  
logstash-plugin install logstash-output-opensearch

```auto
Validating logstash-output-opensearch
Resolving mixin dependencies
Updating mixin dependencies logstash-mixin-ecs_compatibility_support
Bundler attempted to update logstash-mixin-ecs_compatibility_support but its version stayed the same
Installing logstash-output-opensearch
Installation successful

```

1. Check does the plugin exit:  
`logstash-plugin.bat list`

2. Make LS .conf file to process your data.  
You need input, filter, output. Is your log in a file, syslog or how do you receive?  
The filter section give you ability to transform data by grok, json or similar plugin.

3. Run LS, and monitor

4. Validate data in OS.

---

<div class="post-metadata">

**Author:** ![anupvtr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anupvtr/32/128607_2.png) [@anupvtr](https://discuss.elastic.co/u/anupvtr)\
**Post date:** [December 4, 2023, 1:30pm UTC](https://discuss.elastic.co/t/need-to-send-data-from-log-file-to-aws-opensearch/348555/5 "2023-12-04T13:30:13Z")

</div>

Thanks for the quick response. As per the OpenSearch document i need to install Java Development Kit (JDK) version 8 or 11.

If i am using Logstash 8.2 or later version is it mandatory to install the Java. From which version we don't want to install the Java. Please help me.

Did you installed Java separately. Which version of Logstash you are using.

Thanks & regards,  
Anu

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [December 4, 2023, 2:43pm UTC](https://discuss.elastic.co/t/need-to-send-data-from-log-file-to-aws-opensearch/348555/6 "2023-12-04T14:43:32Z")

</div>

AFAIK LS will work without installed Java because JDK is included. When you run it, 1st sentence is:  
_"Using bundled JDK: /path/logstash/jdk/bin/java.exe"_

> Which version of Logstash you are using

The latest 8.11.1. AFAIK 8.x and 7.something both have JDK included.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 1, 2024, 2:43pm UTC](https://discuss.elastic.co/t/need-to-send-data-from-log-file-to-aws-opensearch/348555/7 "2024-01-01T14:43:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
