---
updatedAt: 2026-09-23T12:07:34.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/quick-deploy-apps/llms.txt
---

# Elastic Stack (cluster)

Deploy Elastic Stack, a unified observability platform for collecting, indexing, searching, and visualizing logs and operational data. It combines Elasticsearch, Logstash, and Kibana to ingest, analyze, and visualize operational data for monitoring, troubleshooting, and security analysis.

The app deploys a multi-node Elastic Stack cluster using an automated deployment script configured by Akamai.

## 1. Deploy Elastic Stack

<div class="aligned">
   <img src="https://techdocs.akamai.com/terraform-images/img/clock.png" alt="" height="25" width="25" />
   <span class="span-header">&nbsp;Estimated deployment time:</span><span>&nbsp;5–10 minutes for a cluster of 5 nodes.<br />&nbsp;Larger clusters may take longer to provision.</span>
</div>

<div><p></p></div>

Follow the [deployment instructions](https://techdocs.akamai.com/quick-deploy-apps/docs/get-started) from the **Get started** section to configure the app, deploy it, and verify software installation.

For information on the app-specific configurations, see the [Configuration options](#configuration-options) section.

### Base distribution

* **Supported distribution:** Ubuntu 24.04 LTS

### Configuration options

Configure the required options to deploy your instance. For additional customization, add advanced options.

The table maps the Cloud Manager UI fields to their corresponding API/CLI keys (`stackscript_data`) required for automated deployments.

**StackScript ID:** `1966222`

<table>
    <thead>
        <tr>
            <th>UI field</th>
            <th>API/CLI key</th>
            <th>Description</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td colspan="3">Required options</td>
        </tr>
        <tr>
            <td><b>Linode API token</b></td>
            <td><code>token_password</code></td>
            <td><i>Applies to a custom domain.</i> The Linode API token if you want to use Linode's <a href="https://techdocs.akamai.com/cloud-computing/docs/dns-manager">DNS Manager</a> to manage DNS records for your custom domain. It's also required to deploy additional Linode instances as part of this cluster. Follow <a href="https://techdocs.akamai.com/cloud-computing/docs/manage-personal-access-tokens">Manage personal access tokens</a> to get your token on your account with <code>Read/Write</code> access to <code>Domains</code> and <code>Linodes</code>.
                <ul>
                    <li>If you provide the token along with the subdomain and domain, the installation attempts to create DNS records via the Linode API.</li>
                    <li>If you don't provide the token, you need to manually configure your DNS records through your DNS provider and point them to the IP address of the new instance.</li>
                </ul>
            </td>
        </tr>
        <tr>
            <td><b>Email address (for the Let's Encrypt SSL certificate)</b></td>
            <td><code>soa_email_address</code></td>
            <td>The email used to receive notifications about the renewal of the Let's Encrypt SSL certificate.</td>
        </tr>
        <tr>
            <td><b>Limited sudo user</b></td>
            <td><code>user_name</code></td>
            <td>Your preferred username for the limited sudo user, entered without any capital letters, spaces, or special characters.<br /> When adding a limited sudo user, the user is created with a strong generated password for your new Linode instance, and the account is assigned to the <code>sudo</code> group, which provides elevated permissions when running commands with the <code>sudo</code> prefix.
                <blockquote>
                    <b>Note:</b> For easier and more secure access with the sudo user, add an <a href="https://techdocs.akamai.com/cloud-computing/docs/manage-ssh-keys">account SSH key</a> for the Cloud Manager user during deployment and select that user as an <code>authorized_user</code>. Their SSH pubkey will be assigned to both the root and limited sudo users.
                </blockquote>
            </td>
        </tr>
        <tr>
            <td><b>SSL Information</b></td>
            <td><code>sslheader</code></td>
            <td>Set to <i>Yes</i> by default. This requires providing details for a self-signed TLS/SSL certificate, like country, town, organization, and email address.</td>
        </tr>
        <tr>
            <td><b>Country or region</b></td>
            <td><code>country_name</code></td>
            <td><i>Applies to a TLS/SSL certificate.</i> The country or region for you or your organization. When using the API/CLI, specify it as a two-letter ISO country or region code.</td>
        </tr>
            <tr>
            <td><b>State or province </b></td>
            <td><code>state_or_province_name</code></td>
            <td><i>Applies to a TLS/SSL certificate.</i> The state or province for you or your organization.</td>
        </tr>
            <tr>
            <td><b>Locality</b></td>
            <td><code>locality_name</code></td>
            <td><i>Applies to a TLS/SSL certificate.</i> The town or other locality for you or your organization.</td>
        </tr>
            <tr>
            <td><b>Organization</b></td>
            <td><code>organization_name</code></td>
            <td><i>Applies to a TLS/SSL certificate.</i> The name of your organization.</td>
        </tr>
            <tr>
            <td><b>Email address</b></td>
            <td><code>email_address</code></td>
            <td><i>Applies to a TLS/SSL certificate.</i> The email address you want to use for your certificate file. This email address may receive notifications about the state of your certificate, including when it's expired.</td>
        </tr>
        <tr>
            <td><b>CA Common Name</b></td>
            <td><code>ca_common_name</code></td>
            <td><i>Applies to a TLS/SSL certificate.</i> The common name for the self-signed Certificate Authority (CA).</td>
        </tr>
        <tr>
            <td colspan="3">Advanced options</td>
        </tr>
        <tr>
            <td><b>Disable root access over SSH</b></td>
            <td><code>disable_root</code></td>
            <td><i>Applies to a limited sudo user.</i> To block the root user from logging in over SSH, select <i>Yes</i>. Defaults to <i>No</i>. <br />
                <blockquote>
                    <b>Note:</b> When you disable the root user from logging in over SSH and don't provide a valid Account SSH Key assigned to the <code>authorized_user</code>, you can still switch to the root user. To do that, log in as root via the <a href="https://techdocs.akamai.com/cloud-computing/docs/access-your-system-console-using-lish">Lish console</a> and run <code>cat /home/$USERNAME/.credentials</code> to view the generated password for the limited sudo user.
                </blockquote>
            </td>
        </tr>
        <tr>
            <td><b>Subdomain</b></td>
            <td><code>subdomain</code></td>
            <td><i>Applies to a custom domain.</i> The subdomain you want to use, like <code>blog</code> for <code>blog.example.com</code>. Use it only if you specify a <i>Domain</i>.</td>
        </tr>
        <tr>
            <td><b>Domain</b></td>
            <td><code>domain</code></td>
            <td><i>Applies to a custom domain.</i> The domain name you want to use, like <code>example.com</code>. Use it only if you specify a <i>Linode API token</i>.</td>
        </tr>
        <tr>
            <td><b>Cluster Settings</b></td>
            <td><code>clusterheader</code></td>
            <td>Set to <i>Yes</i> by default. This is to provide details for your cluster settings, like its name, size, and more.</td>
        </tr>
        <tr>
            <td><b>Cluster Name</b></td>
            <td><code>cluster_name</code></td>
            <td><i>Applies to cluster settings</i>. A descriptive name for your cluster.</td>
        </tr>
        <tr>
            <td><b>Kibana Size</b></td>
            <td><code>cluster_size</code></td>
            <td><i>Applies to cluster settings</i>. A single Kibana instance created with Let’s Encrypt certificates. Defaults to <i>1</i>. It can't be changed. <blockquote><strong>Note:</strong> To choose the Kibana instance, you first need to select a deployment <a href="https://techdocs.akamai.com/cloud-computing/docs/create-a-compute-instance#choose-a-linode-type-and-plan">region and then a plan</a> for your Linode instance.</blockquote>
            </td>
        </tr>
        <tr>
            <td><b>Elasticsearch Cluster Size</b></td>
            <td><code>elasticsearch_cluster_size</code></td>
            <td><i>Applies to cluster settings</i>. The total number of nodes in your Elasticsearch cluster. Possible values are:
                <ul>
                    <li><i>2</i> (default)</li>
                    <li><i>4</i></li>
                    <li><i>6</i></li>
                    <li><i>8</i></li>
                    <li><i>10</i></li>
                    <li><i>12</i></li>
                    <li><i>14</i></li>
                </ul>
            </td>
        </tr>
        <tr>
            <td><b>Logstash Cluster Size</b></td>
            <td><code>logstash_cluster_size</code></td>
            <td><i>Applies to cluster settings</i>. The total number of nodes in your Logstash cluster. Possible values are:
                <ul>
                    <li><i>2</i> (default)</li>
                    <li><i>4</i></li>
                    <li><i>6</i></li>
                    <li><i>8</i></li>
                    <li><i>10</i></li>
                    <li><i>12</i></li>
                    <li><i>14</i></li>
                </ul>
            </td>
        </tr>
        <tr>
            <td><b>Elasticsearch Instance Type</b></td>
            <td><code>elasticsearch_cluster_type</code></td>
            <td><i>Applies to cluster settings</i>. The plan type for your Elasticsearch cluster. Possible values are:
                <ul>
                    <li><i>Dedicated 4GB</i> (default)</li>
                    <li><i>Dedicated 8GB</i></li>
                    <li><i>Dedicated 16GB</i></li>
                    <li><i>Dedicated 32GB</i></li>
                    <li><i>Dedicated 64GB</i></li>
                    <li><i>Dedicated 96GB</i></li>
                    <li><i>Dedicated 128GB</i></li>
                    <li><i>Dedicated 256GB</i></li>
                </ul>
            </td>
        </tr>
        <tr>
            <td><b>Logstash Instance Type</b></td>
            <td><code>logstash_cluster_type</code></td>
            <td><i>Applies to cluster settings</i>. The plan type for your Logstash cluster. Possible values are:
                <ul>
                    <li><i>Dedicated 4GB</i> (default)</li>
                    <li><i>Dedicated 8GB</i></li>
                    <li><i>Dedicated 16GB</i></li>
                    <li><i>Dedicated 32GB</i></li>
                    <li><i>Dedicated 64GB</i></li>
                    <li><i>Dedicated 96GB</i></li>
                    <li><i>Dedicated 128GB</i></li>
                    <li><i>Dedicated 256GB</i></li>
                </ul>
            </td>
        </tr>
        <tr>
            <td><b>Filebeat IP addresses</b></td>
            <td><code>beats_allow</code></td>
            <td><i>Applies to cluster settings</i>. Filebeat IP addresses allowed to access Logstash. If you have Filebeat agents already installed, you can provide their IP addresses for an allowlist. The IP addresses must be comma-separated.</td>
        </tr>
        <tr>
            <td><b>Logstash username</b></td>
            <td><code>logstash_ingest_username</code></td>
            <td><i>Applies to cluster settings</i>. A Logstash username to be created to access the specified index. When it's created, you can begin ingesting logs after deployment.</td>
        </tr>
        <tr>
            <td><b>Elasticsearch index</b></td>
            <td><code>elasticsearch_index_name</code></td>
            <td><i>Applies to cluster settings</i>. A name for the Elasticsearch index to be created for log ingestion. This lets you start ingesting logs. Edit the index name for your specific use case.<br /> For example, if you have a WordPress application you want to perform log aggregation for, the index name <code>wordpress-logs</code> would be appropriate.</td>
        </tr>
    </tbody>
</table>

> **Notes:**
>
> * After the app deployment completes, the password for your limited sudo user is generated and stored in the `.credentials` file in the home directory, along with application-specific passwords. Log in to your instance as `root` through the Lish console or SSH, then run `cat /home/$USERNAME/.credentials` to view its contents.
> * You can automatically configure a **custom domain** (optional) during deployment. To do that:
>   1. First, configure your domain to use Linode’s name servers via your registrar. See [Configure your domain's authoritative name servers](https://techdocs.akamai.com/cloud-computing/docs/configure-your-domains-authoritative-name-servers) for details.
>   2. Once you complete that, specify the Linode API token, subdomain, and domain for the app in Cloud Manager or via API/CLI/Terraform.

### Use API, CLI, or Terraform

In addition to deploying the app to a new Linode instance via Cloud Manager, you can also use the Linode API, CLI, or Terraform. When running the operation, you need to provide the StackScript ID, supported Linux distribution, and [app-specific fields](#configuration-options) along with the standard Linode deployment configurations.

> **Note:** [Generate a personal access token](https://techdocs.akamai.com/linode-api/reference/get-started#personal-access-tokens) to authenticate your [API](https://techdocs.akamai.com/linode-api/reference/api), [CLI](https://techdocs.akamai.com/cloud-computing/docs/cli-1), or [Terraform](https://registry.terraform.io/providers/linode/linode/latest/docs) requests.

```bash API
curl --location 'https://api.linode.com/v4/linode/instances' \
    --header 'Content-Type: application/json' \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer abc123def456hij789klm' \
    --data-raw '{
        "region": "us-east",
        "type": "g6-standard-2",
        "image": "linode/ubuntu24.04",
        "label": "my-elastic-search-cluster-one-click-app",
        "root_pass": "@C0mpl3x#P@ssw0rd",
        "stackscript_id": 1966222,
        "stackscript_data": {
            "token_password": "abc123def456hij789klm",
            "soa_email_address": "jsmith@example.com",
            "user_name": "jsmith",
            "country_name": "US",
            "state_or_province_name": "Massachusetts",
            "locality_name": "Cambridge",
            "organization_name": "Akamai Technologies",
            "email_address": "jsmith-other@example.com",
            "ca_common_name": "Elasticsearch CA"
        }
    }'
```
```bash CLI
linode-cli linodes create \
    --region us-east \
    --type g6-standard-2 \
    --label my-elastic-search-cluster-one-click-app \
    --image linode/ubuntu24.04 \
    --root_pass @C0mpl3x#P@ssw0rd \
    --stackscript_id 1966222 \
    --stackscript_data '{"token_password": "abc123def456hij789klm", "soa_email_address": "jsmith@example.com", "user_name": "jsmith", "country_name": "US", "state_or_province_name": "Massachusetts", "locality_name": "Cambridge", "organization_name": "Akamai Technologies", "email_address": "jsmith-other@example.com", "ca_common_name": "Elasticsearch CA"}'
```
```json Terraform
resource "linode_instance" "my-linode" {
    region         = "us-east"
    type           = "g6-standard-2"
    label          = "my-elastic-search-cluster-one-click-app"
    image          = "linode/ubuntu24.04"
    root_pass      = "@C0mpl3x#P@ssw0rd"
    stackscript_id = 1966222
    stackscript_data = {
        "token_password"         = "abc123def456hij789klm"
        "soa_email_address"      = "jsmith@example.com"
        "user_name"              = "jsmith"
        "country_name"           = "US"
        "state_or_province_name" = "Massachusetts"
        "locality_name"          = "Cambridge"
        "organization_name"      = "Akamai Technologies"
        "email_address"          = "jsmith-other@example.com"
        "ca_common_name"         = "Elasticsearch CA"
    }
}
```

## 2. Access Elastic Stack

Once the Elastic Stack cluster is deployed, log in to it using your browser.

1. Log in to the provisioner node as your limited sudo user by running `ssh USER@IP_ADDRESS`. Replace `USER` with the sudo username you created, and `IP_ADDRESS` with the instance’s IPv4 address.

   > **Note:** Your provisioner node is the first Linode created in your cluster and is also the instance running Kibana. To identify the node in your list of Linodes, look for the node appended with the name *kibana*. For example, `kibana-1a2bc34d5`.

2. Open the `.credentials` file with the `sudo cat /home/USER/.credentials` command. Replace `USER` with your sudo username.

3. In the `.credentials` file, locate the Kibana URL. After pasting the URL into your browser, you're redirected to the Elastic login page.

4. Provide `elastic` as the username along with the password retrieved from the `.credentials` file.

   A successful login redirects you to the homepage. From there, you can add integrations, visualizations, and make other configuration changes.

### Configure Filebeat (optional)

If you already have Filebeat on your system, follow these steps to configure it:

1. Create a backup of your `/etc/filebeat/filebeat.yml` configuration.

   ```bash
   cp /etc/filebeat/filebeat.yml{,.bak}
   ```

2. Update your Filebeat inputs.

   ```yml File: /etc/filebeat/filebeat.yml
   filebeat.inputs:

   # Each - is an input. Most options can be set at the input level, so
   # you can use different inputs for various configurations.
   # Below are the input-specific configurations.

   # filestream is an input for collecting log messages from files.
   - type: filestream

       # Unique ID among all inputs, an ID is required.
       id: web-01

       # Change to true to enable this input configuration.
       #enabled: false
       enabled: true

       # Paths that should be crawled and fetched. Glob based paths.
       paths:
           - /var/log/apache2/access.log
   ```

   In this example, the `id` must be unique to the instance so you know the source of the log. Ideally, this should be the instance’s hostname. This example uses the value `web-01`. Update `paths` to the log that you want to send to Logstash.

3. While in `/etc/filebeat/filebeat.yml`, update the Filebeat output directive.

   ```yml File: /etc/filebeat/filebeat.yml
   output.logstash:
       # Logstash hosts
       hosts: ["logstash-1.example.com:5044", "logstash-2.example.com:5044"]
       loadbalance: true

       # List of root certificates for HTTPS server verifications
       ssl.certificate_authorities: ["/etc/filebeat/certs/ca.pem"]
   ```

   The `hosts` param can be the IP addresses of your Logstash host or an FQDN. In this example, `logstash-1.example.com` and `logstash-2.example.com` are added to the `/etc/hosts` file.

4. Add a Certificate Authority (CA) certificate by adding the contents of `ca.crt` to your `/etc/filebeat/certs/ca.pem` file.

   To get your `ca.crt`, open a separate terminal session and log in to your Kibana node. Navigate to the `/etc/kibana/certs/ca` directory, and view the file contents with the `cat` command.

   ```bash
   cd /etc/kibana/certs/ca
   sudo cat ca.crt
   ```

5. Copy the file contents and add it to your `ca.pem` file on your Filebeat system.

6. Restart the Filebeat service.

   ```bash
   systemctl start filebeat
   systemctl enable filebeat
   ```

   Once complete, you should be able to start ingesting logs into your cluster using the index you created.

## Additional resources

For more information about the installed packages, see their official documentation.

* [Elastic Stack Documentation](https://www.elastic.co/docs)

> 📘
>
> Note that we can't vouch for the accuracy or timeliness of externally hosted resources.

# Sibling pages

* [Prometheus & Grafana](https://techdocs.akamai.com/quick-deploy-apps/docs/prometheus-grafana.md)
* [Uptime Kuma](https://techdocs.akamai.com/quick-deploy-apps/docs/uptime-kuma.md)
* [Zabbix](https://techdocs.akamai.com/quick-deploy-apps/docs/zabbix.md)