Elasticsearch Integration

Overview

This integration allows interaction with an Elasticsearch cluster to perform searches using Lucene query string syntax or Elasticsearch Domain Specific Language (DSL).

Configuration

To configure this integration within the SOAR platform, you typically need the following Elasticsearch details:

  • Server Address: The URL of your Elasticsearch cluster (e.g., https://my-elastic.example.com:9200).

  • Username: The username for authenticating to Elasticsearch.

  • Password: The password for the Elasticsearch user.

  • (Optional) Verify SSL: Whether to verify the server’s SSL certificate.

  • (Optional) CA Certificate File: Path to a CA certificate file for SSL verification if using a self-signed or private CA.

(Note: The exact parameter names might vary slightly depending on the specific SOAR platform configuration interface. Ensure the user account has the necessary permissions to search the intended indices.)

Actions

Ping

Verifies connectivity to Elasticsearch server.

Arguments:

  • case_id (string, required): The ID of the case.

  • alert_group_identifiers (List[string], required): Identifiers for the alert groups.

  • target_entities (List[TargetEntity], optional): Optional list of specific target entities (Identifier, EntityType) to run the action on.

  • scope (string, optional): Defines the scope for the action. Defaults to “All entities”.

Returns:

  • dict: A dictionary containing the result of the ping action.

Notes

  • Ensure the Elasticsearch integration is properly configured in the SOAR Marketplace tab with the correct Server Address and credentials.

  • The user account requires appropriate read permissions for the target Elasticsearch indices.

  • Familiarize yourself with Lucene Query Syntax for Simple ES Search and Advanced ES Search.

  • Familiarize yourself with Elasticsearch Query DSL for DSL Search.

  • Time-based filtering in Advanced ES Search uses the specified Timestamp Field (defaulting to @timestamp) and supports both absolute (ISO 8601) and relative date math expressions (e.g., now-1h).