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.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
- Log in to the Gravwell web UI.
- Identify the Gravwell server IP address or hostname that is reachable from the AirMDR platform or configured remote agent.
- 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 - 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/directhttps://gravwell.company.com/search/history - 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
- Log in to the Gravwell web UI.
- From the left navigation menu, go to:Β Tools & Resources β API Tokens.
The Gravwell API Token interface is located underΒ Tools & Resources.

- ClickΒ Create TokenΒ orΒ New Token.
- Enter a clear token name. Example:Β
AirMDR Integration Token - Add a description.
Example:ΒToken used by AirMDR to query Gravwell alerts and telemetry. - Select the required permissions. Recommended minimum permissions:
Gravwell supports selecting permissions as grouped permissions or fine-grained controls.
- Set an expiration date, if required.

- ClickΒ Generate.
- Copy the generated token immediately.

- Store the token securely.
3
Generate the API Token in Gravwell UI
- Log in to the Gravwell web UI.
- From the left navigation menu, go to:Β Tools & Resources β API Tokens.
The Gravwell API Token interface is located underΒ Tools & Resources.

- ClickΒ Create TokenΒ orΒ New Token.
- Enter a clear token name. Example:Β
AirMDR Integration Token - Add a description.
Example:ΒToken used by AirMDR to query Gravwell alerts and telemetry. - Select the required permissions. Recommended minimum permissions:
Gravwell supports selecting permissions as grouped permissions or fine-grained controls.
- Set an expiration date, if required.

- ClickΒ Generate.
- Copy the generated token immediately.

- Store the token securely.
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:Sample Request & Response βΒ /api/parse
Sample Request & Response βΒ /api/parse
Request:Sample successful response:Sample Failure Response:
Sample Request & Response βΒ /api/search/direct
Sample Request & Response βΒ /api/search/direct
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
- Navigate to AirMDR, provide the credentials and click Login
- Navigate to the AirMDR Integrations Dashboard in the left navigation pane and select Integrations.
- Use the search option, enter the keyword βGravwellβ, select the Connections tab, and click + Create button.
- Enter an unique name to the Instance (e.g.,
your org name-Gravwell) to easily identify the user connection by AirMDR. - Enter the application credentials like Instance URL and Token in the Authentication Details field params, and click Save.
Skills provided by this Integration
Additional Information
π§° Error Handling
π§° Error Handling
π Monitoring & Logs
π Monitoring & Logs
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π Security & Access Best Practices
π Security & Access Best Practices
Do
- Use a dedicated Gravwell token for AirMDR.
- Grant only required permissions.
- Set token expiration where possible.
- Store the token in a secure vault.
- Use HTTPS with valid TLS certificates.
- Rotate tokens periodically.
- Disable or delete unused tokens.
- Use a remote agent when Gravwell is not publicly reachable.
Avoid
- Do not use personal admin tokens for integrations.
- Do not share tokens over email or chat.
- Do not disable SSL verification unless approved internally.
- Do not grant token write permissions unless absolutely required.
- Do not reuse the same token across multiple tools.
π Support & Maintenance
π Support & Maintenance
- π§ 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.

