---
title: "Prerequisites"
url: "https://axoflow.com/docs/axosyslog-core/4.28/chapter-destinations/configuring-destinations-elasticsearch2/destination-elasticsearch2-prerequisites/"
last_modified: "2023-06-27T21:05:00+02:00"
---

> For the complete documentation index, see [llms.txt](https://axoflow.com/docs/axosyslog-core/4.28/llms.txt).

# Prerequisites

To send messages from AxoSyslog to Elasticsearch, complete the following steps.

## Steps:

1. Download and install the Java Runtime Environment (JRE), 2.x (or newer). The AxoSyslog`elasticsearch2` destination is tested and supported when using the Oracle implementation of Java. Other implementations are untested and unsupported, they may or may not work as expected.
2. > **Note:**
   > This step is only required if you use the `elasticsearch2` destination in node mode or transport mode.

   Download the Elasticsearch libraries (version 2.x or newer from the 2.x line) from <https://www.elastic.co/downloads/elasticsearch>.
3. > **Note:**
   > This step is only required if you use the `elasticsearch2` destination in node mode or transport mode.

   Extract the Elasticsearch libraries into a temporary directory, then collect the various `.jar` files into a single directory (for example, `/opt/elasticsearch/lib/`) where AxoSyslog can access them. You must specify this directory in the AxoSyslog configuration file. The files are located in the `lib` directory and its subdirectories of the Elasticsearch release package.

Last modified June 27, 2023: [Moves content/docs to content/ to shorten output url (a5fcf1ed)](https://github.com/axoflow/axosyslog-core-docs/commit/a5fcf1ed4956f586bc12af2b775e10aa75c1e630)
