Skip to main content

Purpose

Supported Versions

Gravwell’s Direct Query API is designed for REST-based access to Gravwell search and requires a valid Gravwell account or token with search access.

Authentication

Gravwell uses API tokens for external integrations.

Authentication Fields

Example: https://gravwell.company.com or http://199.244.253.132
Users only need to provide theΒ Instance_urlΒ andΒ TokenΒ in the AirMDR integration UI.
TheΒ Gravwell-TokenΒ HTTP header is automatically handled internally by the AirMDR integration. Users do NOT need to manually configure headers.

Role-Based Access Recommendations

Best Practice: Create a dedicated low-privilege token specifically for AirMDR integration usage.

Pre-requisites

Users must have Administrator access to theΒ Gravwell UI with sufficient privileges to create or manage users and verify firewall settings.
Permission to create API tokens in Gravwell.
Gravwell admins can restrict token creation for non-admin users using CBAC controls.

Setup Steps

1

Generate the Instance URL

  1. Log in to the Gravwell web UI.
  2. Identify the Gravwell server IP address or hostname that is reachable from the AirMDR platform or configured remote agent.
  3. Use the Gravwell base URL in one of the following formats: Using IP Address:Β http://199.244.253.132
    or, if SSL/TLS is enabled:Β https://199.244.253.132
    Using Hostname:Β https://gravwell.company.com
  4. Remove any additional paths after the hostname or IP address.
    Use this:Β http://199.244.253.132Β orΒ https://gravwell.company.com
    Avoid this:
    http://199.244.253.132/api/search/direct
    https://gravwell.company.com/search/history
  5. Save this value asΒ Instance_url.
    TheΒ Instance_urlΒ must contain only the Gravwell base URL or reachable IP address. API paths such asΒ /api/parseΒ andΒ /api/search/directΒ are automatically appended by the integration during API requests.
    Ensure the Gravwell IP address or hostname is reachable from the AirMDR platform or the configured remote agent.
2

Generate the API Token in Gravwell UI

  1. Log in to the Gravwell web UI.
  2. From the left navigation menu, go to:Β Tools & Resources β†’ API Tokens.
    The Gravwell API Token interface is located underΒ Tools & Resources.
    Gravwell1
  3. ClickΒ Create TokenΒ orΒ New Token.
  4. Enter a clear token name. Example:Β AirMDR Integration Token
  5. Add a description.
    Example:Β Token used by AirMDR to query Gravwell alerts and telemetry.
  6. Select the required permissions. Recommended minimum permissions:
    Gravwell supports selecting permissions as grouped permissions or fine-grained controls.
  7. Set an expiration date, if required.
    Gravwell2
  8. ClickΒ Generate.
  9. Copy the generated token immediately.
    Screenshot 2026 05 27 At 17 11 07
  10. Store the token securely.
    Gravwell displays the token only once. Make sure to record the token, Gravwell will never again provide that token to you, this is your one and only chance to record it.Β 

    If it is lost, generate a new token.
3

Generate the API Token in Gravwell UI

  1. Log in to the Gravwell web UI.
  2. From the left navigation menu, go to:Β Tools & Resources β†’ API Tokens.
    The Gravwell API Token interface is located underΒ Tools & Resources.
    Gravwell1
  3. ClickΒ Create TokenΒ orΒ New Token.
  4. Enter a clear token name. Example:Β AirMDR Integration Token
  5. Add a description.
    Example:Β Token used by AirMDR to query Gravwell alerts and telemetry.
  6. Select the required permissions. Recommended minimum permissions:
    Gravwell supports selecting permissions as grouped permissions or fine-grained controls.
  7. Set an expiration date, if required.
    Gravwell2
  8. ClickΒ Generate.
  9. Copy the generated token immediately.
    Screenshot 2026 05 27 At 17 11 07
  10. Store the token securely.
    Gravwell displays the token only once. Make sure to record the token, Gravwell will never again provide that token to you, this is your one and only chance to record it.Β 

    If it is lost, generate a new token.

Integration Credential Requirements

Use the following values in the AirMDR integration configuration screen:

Gravwell Credential Reference Table

Validate Connectivity

Use the following command to verify connectivity and token authentication:
Request:
Sample successful response:
Sample Failure Response:
Request:
Sample Successful Response:
Sample Failure Response:
TheΒ /api/parseΒ endpoint validates query syntax, whileΒ /api/search/directΒ executes the actual Gravwell search query and returns results.
The token used must haveΒ SearchΒ permission enabled; otherwise the API returns authorization failures.

Configure Gravwell in AirMDR Integrations Dashboard

  1. Navigate to AirMDR, provide the credentials and click Login
  2. Navigate to the AirMDR Integrations Dashboard in the left navigation pane and select Integrations.
  3. Use the search option, enter the keyword β€œGravwell”, select the Connections tab, and click + Create button.
  4. Enter an unique name to the Instance (e.g., your org name-Gravwell) to easily identify the user connection by AirMDR.
  5. Enter the application credentials like Instance URL and Token in the Authentication Details field params, and click Save.

Skills provided by this Integration

To view the details of Input Parameters and Output for the respective skills
  • Go to AirMDR β†’ Gravwell Integration page.
  • Select the Skills tab and click on the required listed skills.

Additional Information

Where to Check

Sample Success Log
INFO Gravwell integration validation completed successfully.
INFO Tags retrieved from Gravwell instance.Sample Failure LogERROR Gravwell API request failed.ERROR Status Code: 401 Unauthorized.ERROR Reason: Invalid or expired token.\Recommended Log Levels

Do

  1. Use a dedicated Gravwell token for AirMDR.
  2. Grant only required permissions.
  3. Set token expiration where possible.
  4. Store the token in a secure vault.
  5. Use HTTPS with valid TLS certificates.
  6. Rotate tokens periodically.
  7. Disable or delete unused tokens.
  8. Use a remote agent when Gravwell is not publicly reachable.

Avoid

  1. Do not use personal admin tokens for integrations.
  2. Do not share tokens over email or chat.
  3. Do not disable SSL verification unless approved internally.
  4. Do not grant token write permissions unless absolutely required.
  5. Do not reuse the same token across multiple tools.
  • πŸ“§ Contact AirMDR Support through your designated support channel.
  • πŸ” Rotate credentials regularly. Recommended cadence:Β Every 90 days or as per internal security policy
  • πŸ”„ Reconnect in AirMDR when secrets are changed.

Data Exchanged

Ports and Endpoints\

Use HTTPS with a valid TLS certificate wherever possible.