Skip to main content
Connect your Elasticsearch instance to NOFire AI to query and analyze application and infrastructure logs during investigation and automated root cause analysis.
NOFire AI supports both Elastic Cloud and self-hosted Elasticsearch instances. For self-hosted instances, NOFire AI can connect securely using an AWS VPC PrivateLink. This keeps all traffic inside your network boundary.

Prerequisites

Before you connect Elasticsearch to NOFire AI, make sure that you have:
  • An Elasticsearch cluster (Elastic Cloud or self-hosted)
  • Network access to your Elasticsearch endpoint from NOFire AI
  • Admin access to create users and API keys

Step 1: Configure Elasticsearch authentication

Elastic Cloud

Create API Key in Elastic Cloud

  1. Sign in to Elastic Cloud
  2. Open your deployment: Click the deployment that you want to open NOFire AI Elastic Cloud Deployment Select Pn
  3. Copy the Elasticsearch Endpoint: On the deployment page, copy the Elasticsearch endpoint URL. You will need this later. NOFire AI Elastic Cloud Endpoint Pn
  4. Create API Key:
    • Go to Security > API keys
    • Click Create API key
    NOFire AI Elastic Api Keys Create Pn
  5. Configure API Key:
    • Name: Enter nofireai
    • Control security privileges: Select read so that the key has read-only access
    • Index privileges: Click read-only access
    • Click Create API key
    NOFire AI Elastic Api Key Configure Pn
  6. Save API Key:
    Copy the API key value and store it securely before you close this window. Elastic Cloud shows the value only once, and you cannot retrieve it later.
    Copy the API key value (the encoded string, not the ID). NOFire AI Elastic Api Key Copy Pn

Self-hosted Elasticsearch with API key

  1. Access Kibana: Navigate to your Kibana URL (typically https://your-elasticsearch-host:5601)
  2. Log in: Use your Elasticsearch admin credentials
  3. Navigate to Stack Management: Open the hamburger menu (☰) and go to Management > Stack Management NOFire AI Elastic Stack Management
  4. Create API Key: Follow steps 6-8 from Option A above

Step 2: Add Elasticsearch connection to NOFire AI

Open Connections

  1. Open Connections and click Connect on Elasticsearch. NOFire AI Elasticsearch Connection Pn
  2. Enter Connection Details:
    • Name: Enter a descriptive name (for example, “production-elasticsearch”)
    • URL: The endpoint for your Elasticsearch instance (including the port number)
      • Example: https://my-elasticsearch-project-a09d34.es.us-central1.gcp.elastic.cloud:443
    • Token: The API key that you generated in the previous step

    NOFire AI Elasticsearch Form Connection

  3. Connect: Click Connect. NOFire checks the credentials and creates the connection. After you connect to your log source, NOFire AI queries and analyzes logs on demand as part of its automated root cause analysis. Logs enrich the investigation process.

Test the connection

  1. Open Connections and make sure that the Elasticsearch connection shows Connected. A connection that shows Failing did not authenticate.
  2. Ask NOFire a question that needs logs, for example “show me the errors for the checkout service in the last hour”. An answer that quotes your log lines confirms the connection works end to end.

Troubleshooting

Connection Timeout

If your connection times out:
  • Make sure that your Elasticsearch endpoint is accessible from NOFire AI’s network
  • For Elastic Cloud, check your deployment’s traffic filters
  • Make sure that firewall rules allow traffic on port 9200 or 9243 (Elastic Cloud)

Authentication Failed

If authentication fails:
  • Make sure that the API key or user is not revoked or expired

Forbidden or Authorization Errors

If you see 403 Forbidden errors:
  • Make sure that the API key or user has the correct index privileges
  • Make sure that the role includes read and view_index_metadata privileges
  • Make sure that the index pattern in the role configuration matches the indices that you are querying

SSL Certificate Errors

For self-hosted instances with SSL errors:
  • Make sure that your SSL certificate is valid and not self-signed (or add it to trusted certificates)
  • Make sure that the hostname in the URL matches the certificate