Elasticsearch v2

Search for and analyze data in real time. Supports version 6 and later.

Database · Elasticsearch

Details

IDElasticsearch v2
ProviderElastic
CategoryDatabase
From Version5.0.0
Docker Imagedemisto/elasticsearch:1.0.0.11195141
Supported ModulesAgentix Cloud Runtime Security XSIAM EDR Cortex Cloud Attack Surface Management Cloud Posture Security Exposure Management

README

Elasticsearch_v2 integration is used to search for and analyze data in real time.
Supports version 6 and later.
This integration was integrated and tested with versions 6.6.2, 7.3, 8.4.1 of Elasticsearch.

Permissions

The permissions required to use this integration depends on which operations you need to perform. The API user should have the same permissions a regular user would have in order to access the data via the UI. Following are the permissions needed for certain commands:

  • !es-eql-search/search/es-search/fetch-incidents - If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias.
  • !get-mapping-fields - If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias.
  • !es-index - If the Elasticsearch security features are enabled, you must have the write index privilege for the target data stream, index, or alias.
  • !es-kibana-* commands - To execute Kibana commands, you must have the necessary privileges for the applicable resource. The privilege required depends on the command you are using. Kibana API endpoints are gated by feature privileges granted at one of two levels: Read (GET / list / view operations) and All (POST / PUT / PATCH / DELETE operations). For rules and cases, the privilege is scoped to the feature that owns the object — a Security-owned object requires the Security feature privilege, an Observability-owned object requires the Observability feature privilege, and a stack-owned object requires the Management / Stack Rules feature privilege.

Configure Elasticsearch v2 in Cortex

Parameter Description Required
Server URL The Elasticsearch server to which the integration connects. Ensure that the URL includes the correct Elasticsearch port. The default port for Elasticsearch v7 and below is 9200. Use the Server URL for on-premises deployments. False
Kibana Server URL The Kibana server used by the es-kibana-* commands and by fetching and mirroring security alerts and cases. Required for on-premises (self-managed) deployments, where Kibana is usually hosted separately from Elasticsearch (for example, https://kibana.example.com:5601). If left empty, the Kibana URL is derived from the Server URL, which is supported only for Elastic Cloud deployments whose hostname contains “.es.” (the segment is replaced with “.kb.”). False
Authorization type Select the authentication type and enter the appropriate credentials:
- Basic Auth: Enter Username and Password.
- Bearer Auth: Enter Username and Password.
- API Key Auth: Enter the API Key ID and API Key.
True
API key ID Use for API key auth False
API Key Use for API key auth False
Username Use for API Key auth. Optionally you can use Username as an API key ID and Password as an API key for Basic auth. False
Password Use for API Key auth. Optionally you can use Username as an API key ID and Password as an API key for Basic auth. False
Trust any certificate (not secure)   False
Use system proxy settings   False
Client type In some hosted ElasticSearch environments, the standard ElasticSearch client is not supported. If you encounter any related client issues, please consider using the OpenSearch client type. False
Index to fetch incidents from CSV False
Query String Query string uses the Lucene syntax.
For more information about the Lucene syntax see here.
The query will be used when fetching incidents. Index time field will be used as a filter in the query.

The integration test button doesn’t fully test the fetch incidents validity. To verify that the instance is set up correctly for fetching incidents, run the ‘!es-integration-health-check’ command.
False
Fields to fetch (_source already included) A comma-separated list of Elasticsearch fields to retrieve in addition to the default _source fields. For example: host.hostname, host.id. False
Index time field The time field used for sorting and limiting results. If using a nested field, separate field names with dot notation. False
Raw Query Raw Query allows raw DSL queries and will override the ‘Query String’ Lucene syntax string.
Results will not be filtered or sorted. Use additional parameters in the raw query for these purposes.
For more information about Query DSL see here.

The integration test button doesn’t fully test the fetch incidents validity. To verify that the instance is set up correctly for fetching incidents, run the ‘!es-integration-health-check’ command.
False
Time field type 3 formats supported:
Simple-Date - A plain date string. You must specify the format in which the date is stored.
For more information about time formatting, see here.
Timestamp-Second - A numeric value representing the number of seconds since the Unix epoch (00:00:00 UTC on 1 January 1970). Example: ‘1572164838’
* Timestamp-Milliseconds - A numeric value representing the number of milliseconds since the Unix epoch. Example: ‘1572164838123’
False
Map JSON fields into labels   False
First fetch timestamp <number> <time unit>, e.g., 12 hours, 7 days False
The maximum number of results per fetch   False
Request timeout (in seconds).   False
Incident type   False
Fetch incidents   False
Space ID The default Kibana space ID to use for es-kibana-* commands. Used to derive the Kibana base URL from the Server URL. If a space_id argument is provided to a command, it overrides this value. See Spaces for more information. False
Fetch incident types The type of incident to fetch from Elasticsearch (Elasticsearch Entity, Elasticsearch Security Alert, or Elasticsearch Case). False
Incident Mirroring Direction Mirroring works only for the Elasticsearch Security Alert and Elasticsearch Case incident types. False
Fetch cases by Severity Case severities to fetch. If none are chosen, all severity levels will be returned. Relevant only for incident type Elasticsearch Case. False
Fetch cases by Status Case statuses to fetch. If none are chosen, in-progress and open will be returned. Relevant only for incident type Elasticsearch Case. False
Fetch alerts for case When enabled, fetches alerts associated with each Elasticsearch Case. You must have read privileges for the Cases feature in the Management, Observability, or Security section of the Kibana feature privileges. False
Close Mirrored XSOAR Incident Whether closing the Elasticsearch alert or case is mirrored in Cortex XSOAR. False
Close Mirrored Elasticsearch Incident Whether closing the Cortex XSOAR incident is mirrored in Elasticsearch. False

Fetch

Use the Fetch incident types parameter to select what to fetch from Elasticsearch: the default Elasticsearch Entity, Elasticsearch Security Alert, or Elasticsearch Case.

Mirroring is only available for Elasticsearch Security Alerts and Cases.

Fetch

The default fetch behavior. Configure the Index to fetch incidents from, Query String, and/or Raw Query fields to fetch generic Elasticsearch documents as incidents.

Fetch Security Alerts

To fetch security alerts, use the Raw Query field (DSL query). The index must follow one of these patterns: .internal.alerts-security.alerts-* or .siem-signals-*.

Fetch Cases

Use the Fetch cases by Severity parameter to filter cases by the required severity and the Fetch cases by Status parameter to filter cases by the required status. Enable Fetch alerts for case to also retrieve the alerts associated with each case.

Incident Mirroring

You can enable incident mirroring between Cortex XSOAR incidents and Elasticsearch (Kibana) Security Alerts and Cases.

Mirroring is only available for Elasticsearch Security Alert and Elasticsearch Case incident types.

To set up mirroring:

  1. Enable Fetch incidents in your instance configuration.
  2. In the Fetch incident types parameter, select Elasticsearch Security Alert or Elasticsearch Case.
  3. In the Incident Mirroring Direction parameter, select in which direction the incidents should be mirrored:
    • Incoming - Changes in Elasticsearch (status, tags, workflow reason, case fields) are reflected in Cortex XSOAR.
    • Outgoing - Changes in Cortex XSOAR are reflected in Elasticsearch.
    • Incoming And Outgoing - Changes are mirrored in both directions.
  4. Optionally, select Close Mirrored XSOAR Incident to close the Cortex XSOAR incident when the Elasticsearch alert/case is closed, and Close Mirrored Elasticsearch Incident to close the Elasticsearch alert/case when the Cortex XSOAR incident is closed.

Notes:

  • The mirroring is affected by the following integration parameters: Incident Mirroring Direction, Close Mirrored XSOAR Incident, and Close Mirrored Elasticsearch Incident.
  • To ensure mirroring works as expected, mappers are required so that the fields are properly mapped to and from Elasticsearch. Select the appropriate incoming and outgoing mappers per incident type (Elasticsearch Security Alert - Incoming/Outgoing Mapper and Elasticsearch Case - Incoming/Outgoing Mapper).
  • Set the Fetch incident types parameter even when mirroring only. It is used to resolve the incident type when the remote lookup is unavailable; without it, changes may not be mirrored out.
  • Mirroring out always uses the Kibana API, because the security alert indices are Kibana system indices and writing to them directly would skip Kibana’s bookkeeping (such as kibana.alert.workflow_status_updated_at, which mirroring in relies on). The configured credentials therefore need the Security → Alerts: All Kibana privilege, and the Space ID must match the space that owns the alerts. If either is wrong, the fetch keeps working while mirroring out reports that 0 alerts were updated.

Which Security Alert fields can be mirrored

Elasticsearch only allows a detection alert’s workflow status, status reason, and workflow tags to be changed. These are the only fields mirrored out:

Cortex XSOAR incident field Elasticsearch field
Elasticsearch Workflow Alert Status kibana.alert.workflow_status
Elasticsearch Workflow Alert Status Reason kibana.alert.workflow_reason
Tags kibana.alert.workflow_tags

Other fields, such as severity, risk score, or the detection rule, cannot be pushed back to Elasticsearch because no API exists to change them on an existing alert. Editing those fields in Cortex XSOAR updates the local incident only, and an error is written to the log explaining that nothing was mirrored out. These fields are still mirrored in (from Elasticsearch to Cortex XSOAR).

Commands

You can execute these commands from the CLI, as part of an automation, or in a playbook.
After you successfully execute a command, a DBot message appears in the War Room with the command details.

es-search


Queries an index.

Base Command

es-search

Input

Argument Name Description Required
index The index in which to perform a search. Required
query The string to query (in Lucene syntax). Possible values are: . Optional
fields A comma-separated list of document fields to fetch. If empty, the entire document is fetched. Optional
explain Calculates an explanation of a score for a query. For example, “value:1.6943597”. Possible values are: true, false. Default is false. Optional
page The page number from which to start a search. Default is 0. Optional
size The number of documents displayed per page. Can be an integer between “1” and “10,000”. Default is 100. Optional
sort-field The field by which to sort the results table. The supported result types are boolean, numeric, date, and keyword fields. Keyword fields require the doc_values parameter to be set to “true” from the Elasticsearch server. Possible values are: . Optional
sort-order The order by which to sort the results table. The results tables can only be sorted if a sort-field is defined. Possible values are: asc, desc. Default is asc. Optional
query_dsl Will overwrite the ‘query’ arguments. Optional
timestamp_range_start The starting time of the time range. Optional
timestamp_range_end The ending time of the time range. Optional
timestamp_field Timestamp field name. Default is @timestamp. Optional

Context Output

Path Type Description
Elasticsearch.Search.Results._index String The index to which the document belongs.
Elasticsearch.Search.Results._id String The ID of the document.
Elasticsearch.Search.Results._type String The mapping type of the document.
Elasticsearch.Search.max_score Number The maximum relevance score of a query.
Elasticsearch.Search.Query String The query performed in the search.
Elasticsearch.Search.total.value Number The number of search results.
Elasticsearch.Search.Results._score Number The relevance score of the search result.
Elasticsearch.Search.Index String The index in which the search was performed.
Elasticsearch.Search.Server String The server on which the search was performed.
Elasticsearch.Search.timed_out Boolean Whether the search stopped due to a timeout.
Elasticsearch.Search.took Number The time in milliseconds taken for the search to complete.
Elasticsearch.Search.Page Number The page number from which the search started.
Elasticsearch.Search.Size Number The maximum number of scores that a search can return.

search


Searches an index.

Base Command

search

Input

Argument Name Description Required
index The index in which to perform a search. Required
query The string to query (in Lucene syntax). Possible values are: . Optional
fields A comma-separated list of document fields to fetch. If empty, fetches the entire document. Optional
explain Calculates an explanation of a score for a query. For example, “value:1.6943597”. Possible values are: true, false. Default is false. Optional
page The page number from which to start a search. Default is 0. Optional
size The number of documents displayed per page. Can be an integer between “1” and “10,000”. Default is 100. Optional
sort-field The field by which to sort the results table. The supported result types are boolean, numeric, date, and keyword fields. Keyword fields require the doc_values parameter to be set to “true” from the Elasticsearch server. Possible values are: . Optional
sort-order The order by which to sort the results table. The results tables can only be sorted if a sort-field is defined. Possible values are: asc, desc. Default is asc. Optional
timestamp_field Timestamp field name. Default is @timestamp. Optional

Context Output

Path Type Description
Elasticsearch.Search.Results._index String The index to which the document belongs.
Elasticsearch.Search.Results._id String The ID of the document.
Elasticsearch.Search.Results._type String The mapping type of the document.
Elasticsearch.Search.max_score Number The maximum relevance score of a query.
Elasticsearch.Search.Query String The query performed in the search.
Elasticsearch.Search.total.value Number The number of search results.
Elasticsearch.Search.Results._score Number The relevance score of the search result.
Elasticsearch.Search.Index String The index in which the search was performed.
Elasticsearch.Search.Server String The server on which the search was performed.
Elasticsearch.Search.timed_out Boolean Whether the search stopped due to a time out.
Elasticsearch.Search.took Number The time in milliseconds taken for the search to complete.
Elasticsearch.Search.Page Number The page number from which the search started.
Elasticsearch.Search.Size Number The maximum number of scores that a search can return.

get-mapping-fields


Returns the schema of the index to fetch from. This commmand should be used for debugging purposes.

Base Command

get-mapping-fields

Input

There are no input arguments for this command.

Context Output

There is no context output for this command.

es-eql-search


Search using EQL query

Base Command

es-eql-search

Input

Argument Name Description Required
index The index in which to perform a search. Required
query The string to query (in Lucene syntax). Required
fields A comma-separated list of document fields to fetch. If empty, fetches the entire document. Optional
sort-tiebreaker If two or more events share the same timestamp, Elasticsearch uses a tiebreaker field value to sort the events in ascending order. Optional
filter Filter using query DSL. Optional
event_category_field The event category field. Default is event.category. Optional
size The number of documents displayed per page. Can be an integer between “1” and “10,000”. Default is 100. Optional
timestamp_range_start The starting time of the time range. Optional
timestamp_range_end The ending time of the time range. Optional
timestamp_field Timestamp field name. Default is @timestamp. Optional

Context Output

Path Type Description
Elasticsearch.Search.Results._index String The index to which the document belongs.
Elasticsearch.Search.Results._id String The ID of the document.
Elasticsearch.Search.Results._type String The mapping type of the document.
Elasticsearch.Search.max_score Number The maximum relevance score of a query.
Elasticsearch.Search.Query String The query performed in the search.
Elasticsearch.Search.total.value Number The number of search results.
Elasticsearch.Search.Results._score Number The relevance score of the search result.
Elasticsearch.Search.Index String The index in which the search was performed.
Elasticsearch.Search.Server String The server on which the search was performed.
Elasticsearch.Search.timed_out Boolean Whether the search stopped due to a timeout.
Elasticsearch.Search.took Number The time in milliseconds taken for the search to complete.
Elasticsearch.Search.Page Number The page number from which the search started.
Elasticsearch.Search.Size Number The maximum number of scores that a search can return.

es-index


Indexes a document into an Elasticsearch index.

Base Command

es-index

Input

Argument Name Description Required
index_name The name of the index to ingest into. Required
document The document object (JSON format) to be indexed. See Elasticsearch documentation for further information about indexing documents via the Elasticsearch client. Required
id The ID of the indexed document (will be generated if empty). The document will be updated if one with a corresponding ID exists. Optional

Context Output

Path Type Description
Elasticsearch.Index.id String The ID of the indexed document.
Elasticsearch.Index.index String The name of the index which the document was ingested to.
Elasticsearch.Index.version Number The version number of the indexed document.
Elasticsearch.Index.result String The result of the index operation.

Command Example

!es-index index_name=test-xsoar document="{\"name\":\"test\"}" id=1234

Context Example

{
    "Elasticsearch": {
        "Index": {
            "id": "1234",
            "index": "test-xsoar",
            "version": 1,
            "result": "created"
        }
    }
}

Human Readable Output

Indexed document

ID Index name Version Result
1234 test-xsoar 1 created

es-integration-health-check


Returns the health status of the integration. This commmand should be used for debugging purposes.

Base Command

es-integration-health-check

Input

There are no input arguments for this command.

Context Output

There is no context output for this command.

es-get-indices-statistics


Returns Elasticsearch indices statistics and information. This command is not supported for client type OpenSearch.

Base Command

es-get-indices-statistics

Input

Argument Name Description Required
limit The maximum number of indices to return. Default is 50. Optional
all_results Whether to retrieve all the Elasticsearch indices. If true, the “limit” argument will be ignored. Optional

Context Output

Path Type Description
Elasticsearch.IndexStatistics.Name String The name of the index.
Elasticsearch.IndexStatistics.Status String The status of the index.
Elasticsearch.IndexStatistics.Health String The health status of the index.
Elasticsearch.IndexStatistics.UUID String The UUID of the index.
Elasticsearch.IndexStatistics.DocumentsCount Number The number of documents that are indexed in the index.
Elasticsearch.IndexStatistics.DocumentsDeleted Number The number of documents that were deleted from the index.

es-esql-search


Search using ES|QL query (Elasticsearch 8.11 and above).

Base Command

es-esql-search

Input

Argument Name Description Required  
query The ES|QL query string to execute using piped syntax (for example, FROM index WHERE field == “value”). Required
limit Maximum number of results to return. Optional  

Context Output

Path Description Type
Elasticsearch.ESQLSearch ES|QL search result unknown

Command Example

!es-esql-search query="FROM logs-* | WHERE host.name == \"web-01\" | LIMIT 5"

Context Example

{
    "Elasticsearch": {
        "ESQLSearch": [
            {
                "@timestamp": "2024-01-15T10:23:45.000Z",
                "host.name": "web-01",
                "message": "Connection established"
            }
        ]
    }
}

Human Readable Output

Search query

Query Total
FROM logs-* | WHERE host.name == “web-01” | LIMIT 5 1

Results

@timestamp host.name message
2024-01-15T10:23:45.000Z web-01 Connection established

es-kibana-alerting-health-get


Retrieves the health of the Kibana alerting framework.

Base Command

es-kibana-alerting-health-get

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.AlertingHealth.is_sufficiently_secure Boolean Whether the alerting framework is sufficiently secure.
Elasticsearch.Kibana.AlertingHealth.has_permanent_encryption_key Boolean Whether a permanent encryption key is configured.
Elasticsearch.Kibana.AlertingHealth.alerting_framework_health.decryption_health.status String The decryption health status.
Elasticsearch.Kibana.AlertingHealth.alerting_framework_health.execution_health.status String The execution health status.
Elasticsearch.Kibana.AlertingHealth.alerting_framework_health.read_health.status String The read health status.

Command Example


#### Context Example

```json
{
    "Elasticsearch": {
        "Kibana": {
            "AlertingHealth": {
                "is_sufficiently_secure": true,
                "has_permanent_encryption_key": true,
                "alerting_framework_health": {
                    "decryption_health": {"status": "ok"},
                    "execution_health": {"status": "ok"},
                    "read_health": {"status": "ok"}
                }
            }
        }
    }
}

Human Readable Output

Kibana Alerting Framework Health

Is sufficiently secure Has permanent encryption key Decryption status Execution status Read status
true true ok ok ok

es-kibana-rule-types-list


Retrieves all rule types available in Kibana.

Base Command

es-kibana-rule-types-list

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.RuleType.id String The rule type ID.
Elasticsearch.Kibana.RuleType.name String The rule type name.
Elasticsearch.Kibana.RuleType.category String The rule type category.
Elasticsearch.Kibana.RuleType.producer String The rule type producer.
Elasticsearch.Kibana.RuleType.action_groups.id String The action group ID.

Command Example


#### Context Example

```json
{
    "Elasticsearch": {
        "Kibana": {
            "RuleType": [
                {
                    "id": ".index-threshold",
                    "name": "Index threshold",
                    "category": "management",
                    "producer": "stackAlerts",
                    "action_groups": [{"id": "threshold met"}, {"id": "recovered"}]
                }
            ]
        }
    }
}

Human Readable Output

Kibana Rule Types

Rule type ID Name Category Producer Action Group Id
.index-threshold Index threshold management stackAlerts threshold met, recovered

es-kibana-rule-list


Retrieves information about rules.

Base Command

es-kibana-rule-list

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
rule_id The identifier for the rule. Optional
search An Elasticsearch simple_query_string query that filters the objects in the response. Optional
default_search_operator The default operator to use for the simple_query_string. Optional
search_fields The fields to perform the simple_query_string parsed query against. Optional
sort_field Determines which field is used to sort the results. Optional
sort_order Determines the sort order. Optional
has_reference_id Filters the rules that have a relation with the reference objects with a specific identifier. Optional
has_reference_type Filters the rules that have a relation with the reference objects with a specific type. Optional
fields The fields to return in the attributes key of the response. Optional
filter A KQL string that you filter with an attribute from your saved object. Optional
filter_consumers List of consumers to filter. Optional
page The page number from which to start a search. Optional
size The number of rules to return per page. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.Rule.id String The rule ID.
Elasticsearch.Kibana.Rule.enabled Boolean Whether the rule is enabled.
Elasticsearch.Kibana.Rule.name String The rule name.
Elasticsearch.Kibana.Rule.rule_type_id String The rule type ID.
Elasticsearch.Kibana.Rule.created_at Date The creation date of the rule.

Command Example

!es-kibana-rule-list rule_id="1234"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "Rule": {
                "id": "1234",
                "enabled": true,
                "name": "CPU threshold alert",
                "rule_type_id": ".index-threshold",
                "created_at": "2024-01-10T08:00:00.000Z"
            }
        }
    }
}

Human Readable Output

Kibana Rules

Rule ID Enabled Name Type ID Creation date
1234 true CPU threshold alert .index-threshold 2024-01-10T08:00:00.000Z

es-kibana-rule-enable


Enable a rule.

Base Command

es-kibana-rule-enable

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
rule_id The identifier for the rule. Required

Context Output

There is no context output for this command.

Command Example

!es-kibana-rule-enable rule_id="1234"

Context Example

{}

Human Readable Output

The rule 1234 has been successfully enabled.

es-kibana-rule-disable


Disable a rule.

Base Command

es-kibana-rule-disable

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
rule_id The identifier for the rule. Required

Context Output

There is no context output for this command.

Command Example

!es-kibana-rule-disable rule_id="1234"

Context Example

{}

Human Readable Output

The rule 1234 has been successfully disabled.

es-kibana-rule-update


Update a rule.

Base Command

es-kibana-rule-update

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
rule_id The identifier for the rule. Required
alert_delay_active The number of consecutive runs that must meet the rule conditions. Optional
artifacts_dashboards_id Not more than 10 elements. Optional
artifacts_investigation_guide_blob Maximum length is 10000. Optional
consumer The name of the application or feature that owns the rule. Optional
enabled Indicates whether you want the rule to run on an interval basis after it is created. Optional
flapping_enabled Determines whether the rule can enter the flapping state. Optional
flapping_look_back_window The minimum number of runs in which the threshold must be met. Minimum value is 2, maximum value is 20. Optional
flapping_status_change_threshold The minimum number of times an alert must switch states within the defined look back window time. Optional
name The name of the rule. Optional
notify_when Indicates how frequently rule actions are triggered. Optional
schedule_interval The interval is specified in seconds, minutes, hours, or days. Optional
tags The tags for the rule. Optional
entry_id Entry ID for the file containing the request JSON. If provided, other parameters won’t be considered. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.Rule.id String The rule ID.

Command Example

!es-kibana-rule-update rule_id="1234" name="Updated CPU alert" schedule_interval="5m"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "Rule": {
                "id": "1234",
                "name": "Updated CPU alert",
                "enabled": true,
                "rule_type_id": ".index-threshold",
                "created_at": "2024-01-10T08:00:00.000Z"
            }
        }
    }
}

Human Readable Output

The rule 1234 has been successfully changed.

Rule ID Changed fields
1234 name, schedule

es-kibana-rule-alert-mute


Mute an alert, or mute all alerts for a rule.

Base Command

es-kibana-rule-alert-mute

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
rule_id The identifier for the rule. Required
alert_id The identifier for the alert. Optional
validate_alerts_existence Whether to validate the existence of the alert. Optional
mute_all Whether to mute all alerts. Optional

Context Output

There is no context output for this command.

Command Example

!es-kibana-rule-alert-mute rule_id="1234" mute_all="true"

Context Example

{}

Human Readable Output

The alerts have been successfully muted.

es-kibana-rule-alert-unmute


Unmute an alert, or unmute all alerts for a rule.

Base Command

es-kibana-rule-alert-unmute

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
rule_id The identifier for the rule. Required
alert_id The identifier for the alert. Optional
unmute_all Whether to unmute all alerts. Optional

Context Output

There is no context output for this command.

Command Example

!es-kibana-rule-alert-unmute rule_id="1234" unmute_all="true"

Context Example

{}

Human Readable Output

The alerts have been successfully unmuted.

es-kibana-detection-alert-status-set


Set the status of one or more detection alerts.

Base Command

es-kibana-detection-alert-status-set

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
status The new status of the detection alert(s). Required
signal_ids List of alert IDs. Use field _id on alert document or kibana.alert.uuid. Optional
query An Elasticsearch query used to select which alerts to update, as an alternative to signal_ids. Optional
reason The reason for the status change. Optional
conflicts Determines how version conflicts should be handled. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.SecurityAlertSetStatus.total Number The total number of alerts matched by the request.
Elasticsearch.Kibana.SecurityAlertSetStatus.updated Number The number of alerts that were updated.

Command Example

!es-kibana-detection-alert-status-set status="closed" signal_ids="1234,5678"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "SecurityAlertSetStatus": {
                "total": 2,
                "updated": 2
            }
        }
    }
}

Human Readable Output

Kibana Detection Alert Status Update

Total Updated
2 2

es-kibana-case-create


Creates a new case in Kibana.

Base Command

es-kibana-case-create

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
assignee_uid An array containing users that are assigned to the case. Not more than 10 elements. Optional
category A word or phrase that categorizes the case. Maximum length is 50. Optional
connector_fields A JSON object containing the connector fields. To create a case without a connector, specify null. Optional
connector_id The identifier for the connector. To create a case without a connector, use none. Optional
connector_name The name of the connector. To create a case without a connector, use none. Optional
connector_type The type of connector. To create a case without a connector, use none. Optional
connector_fields_issue_type_jira The type of issue. Optional
connector_fields_parent_jira The key of the parent issue, when the issue type is sub-task. Optional
connector_fields_priority_jira The priority of the issue. Optional
connector_fields_issue_types_resilient The type of incident. Optional
connector_fields_severity_code_resilient The severity code of the incident. Optional
connector_fields_category_servicenow The category of the incident. Optional
connector_fields_impact_servicenow The effect an incident had on business. Optional
connector_fields_severity_servicenow The severity of the incident. Optional
connector_fields_subcategory_servicenow The subcategory of the incident. Optional
connector_fields_urgency_servicenow The extent to which the incident resolution can be delayed. Optional
connector_fields_dest_ip_servicenow Indicates whether cases will send a comma-separated list of destination IPs. Optional
connector_fields_malware_hash_servicenow Indicates whether cases will send a comma-separated list of malware hashes. Optional
connector_fields_malware_url_servicenow Indicates whether cases will send a comma-separated list of malware URLs. Optional
connector_fields_priority_servicenow The priority of the issue. Optional
connector_fields_source_ip_servicenow Indicates whether cases will send a comma-separated list of source IPs. Optional
connector_fields_case_id_swimlane The case identifier for Swimlane connectors. Optional
custom_key The unique identifier for the custom field. The key value must exist in the case configuration settings. Optional
custom_type The custom field type. It must match the type specified in the case configuration settings. Optional
custom_value The custom field value (string or boolean). Optional
description The description for the case. Maximum length is 30000. Optional
owner The application that owns the cases: Stack Management, Observability, or Elastic Security. Required
extract_observables When true, observables (e.g. IPs, hashes, URLs) are automatically extracted from case comments. Optional
sync_alerts Turns alert syncing on or off. Optional
severity The severity of the case. Optional
tags The words and phrases that help categorize cases. Not more than 200 elements. Optional
title A title for the case. Maximum length is 160. Optional
entry_id Entry ID for the file containing the full request JSON. If provided, other parameters won’t be considered. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.Case.title String The title of the case.
Elasticsearch.Kibana.Case.id String The case ID.
Elasticsearch.Kibana.Case.description String The description of the case.
Elasticsearch.Kibana.Case.owner String The owner of the case.
Elasticsearch.Kibana.Case.severity String The severity of the case.
Elasticsearch.Kibana.Case.status String The status of the case.
Elasticsearch.Kibana.Case.created_at Date The creation date of the case.
Elasticsearch.Kibana.Case.connector.type String The connector type of the case.

Command Example

!es-kibana-case-create owner="securitySolution" title="Suspicious login" description="Multiple failed logins detected" severity="medium"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "Case": {
                "id": "1234",
                "title": "Suspicious login",
                "description": "Multiple failed logins detected",
                "owner": "securitySolution",
                "severity": "medium",
                "status": "open",
                "created_at": "2024-01-15T10:00:00.000Z",
                "connector": {"type": ".none"}
            }
        }
    }
}

Human Readable Output

Kibana Case

Title ID Description Owner Severity Status Created at Connector type
Suspicious login 1234 Multiple failed logins detected securitySolution medium open 2024-01-15T10:00:00.000Z .none

es-kibana-case-update


Update cases in Kibana.

Base Command

es-kibana-case-update

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
case_id The identifier for the case. Required
version The current version of the case. To determine this value, use es-kibana-case-list. Required
assignee_uid An array containing users that are assigned to the case. Not more than 10 elements. Optional
category A word or phrase that categorizes the case. Maximum length is 50. Optional
close_reason The close reason to sync to attached alerts when closing the case. Optional
connector_fields A JSON object containing the connector fields. To remove a connector, specify null. Optional
connector_id The identifier for the connector. To remove a connector, specify none. Optional
connector_name The name of the connector. To remove a connector, specify none. Optional
connector_type The type of connector. To remove a connector, specify none. Optional
connector_fields_issue_type_jira The type of issue. Optional
connector_fields_parent_jira The key of the parent issue, when the issue type is sub-task. Optional
connector_fields_priority_jira The priority of the issue. Optional
connector_fields_issue_types_resilient The type of incident. Optional
connector_fields_severity_code_resilient The severity code of the incident. Optional
connector_fields_category_servicenow The category of the incident. Optional
connector_fields_impact_servicenow The effect an incident had on business. Optional
connector_fields_severity_servicenow The severity of the incident. Optional
connector_fields_subcategory_servicenow The subcategory of the incident. Optional
connector_fields_urgency_servicenow The extent to which the incident resolution can be delayed. Optional
connector_fields_dest_ip_servicenow Indicates whether cases will send a comma-separated list of destination IPs. Optional
connector_fields_malware_hash_servicenow Indicates whether cases will send a comma-separated list of malware hashes. Optional
connector_fields_malware_url_servicenow Indicates whether cases will send a comma-separated list of malware URLs. Optional
connector_fields_priority_servicenow The priority of the issue. Optional
connector_fields_source_ip_servicenow Indicates whether cases will send a comma-separated list of source IPs. Optional
connector_fields_case_id_swimlane The case identifier for Swimlane connectors. Optional
custom_key The unique identifier for the custom field. The key value must exist in the case configuration settings. Optional
custom_type The custom field type. It must match the type specified in the case configuration settings. Optional
custom_value The custom field value (string or boolean). Optional
description The description for the case. Maximum length is 30000. Optional
extract_observables When true, observables (e.g. IPs, hashes, URLs) are automatically extracted from case comments. Optional
sync_alerts Turns alert syncing on or off. Optional
severity The severity of the case. Optional
status The status of the case. Optional
tags The words and phrases that help categorize cases. Not more than 200 elements. Optional
title A title for the case. Maximum length is 160. Optional
entry_id Entry ID for the file containing the request JSON. If provided, other parameters won’t be considered. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.Case.title String The title of the case.
Elasticsearch.Kibana.Case.id String The case ID.
Elasticsearch.Kibana.Case.description String The description of the case.
Elasticsearch.Kibana.Case.owner String The owner of the case.
Elasticsearch.Kibana.Case.severity String The severity of the case.
Elasticsearch.Kibana.Case.status String The status of the case.
Elasticsearch.Kibana.Case.created_at Date The creation date of the case.
Elasticsearch.Kibana.Case.connector.type String The connector type of the case.

Command Example

!es-kibana-case-update case_id="1234" version="WzEsMV0=" title="Suspicious login - updated" severity="high"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "Case": {
                "id": "1234",
                "title": "Suspicious login - updated",
                "description": "Multiple failed logins detected",
                "owner": "securitySolution",
                "severity": "high",
                "status": "open",
                "created_at": "2024-01-15T10:00:00.000Z",
                "connector": {"type": ".none"}
            }
        }
    }
}

Human Readable Output

Kibana Case(s) Updated

Title ID Description Owner Severity Status Created at Connector type
Suspicious login - updated 1234 Multiple failed logins detected securitySolution high open 2024-01-15T10:00:00.000Z .none

es-kibana-case-delete


Deletes one or more cases by ID.

Base Command

es-kibana-case-delete

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
case_id The cases that you want to remove. To get the case identifiers, use es-kibana-case-list. Required

Context Output

There is no context output for this command.

Command Example

!es-kibana-case-delete case_id="1234"

Context Example

{}

Human Readable Output

The cases 1234 have been successfully deleted.

es-kibana-case-list


Retrieves the details of Kibana cases.

Base Command

es-kibana-case-list

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
case_id The identifier for the case. To retrieve case IDs, use the search cases API (leave empty). Optional
assignees Filters the returned cases by assignees. Valid values are none or unique identifiers for the user profiles. Optional
category Filters the returned cases by category. Optional
default_search_operator The default operator to use for the simple_query_string. Optional
search An Elasticsearch simple_query_string query that filters the objects in the response. Optional
from Returns only cases that were created after a specific date (KQL data range or date match expression). Optional
to Returns only cases that were created before a specific date (KQL data range or date match expression). Optional
owner A filter to limit the response to a specific set of applications. Optional
reporters Filters the returned cases by the user name of the reporter. Optional
search_fields The fields to perform the simple_query_string parsed query against. Optional
severity The severity of the case. Optional
sort_field Determines which field is used to sort the results. Optional
sort_order Determines the sort order. Optional
status Filters the returned cases by state. Optional
tags Filters the returned cases by tags. Optional
page The page number from which to start a search. Optional
size The number of items to return. Limited to 100 items. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.Case.title String The title of the case.
Elasticsearch.Kibana.Case.id String The case ID.
Elasticsearch.Kibana.Case.description String The description of the case.
Elasticsearch.Kibana.Case.owner String The owner of the case.
Elasticsearch.Kibana.Case.severity String The severity of the case.
Elasticsearch.Kibana.Case.status String The status of the case.
Elasticsearch.Kibana.Case.created_at Date The creation date of the case.
Elasticsearch.Kibana.Case.connector.type String The connector type of the case.

Command Example


#### Context Example

```json
{
    "Elasticsearch": {
        "Kibana": {
            "Case": [
                {
                    "id": "1234",
                    "title": "Suspicious login",
                    "description": "Multiple failed logins detected",
                    "owner": "securitySolution",
                    "severity": "medium",
                    "status": "open",
                    "created_at": "2024-01-15T10:00:00.000Z",
                    "connector": {"type": ".none"}
                }
            ]
        }
    }
}

Human Readable Output

Kibana Cases

Title ID Description Owner Severity Status Created at Connector type
Suspicious login 1234 Multiple failed logins detected securitySolution medium open 2024-01-15T10:00:00.000Z .none

es-kibana-case-alerts-list


Retrieves all alerts for a case.

Base Command

es-kibana-case-alerts-list

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
case_id The identifier for the case. To retrieve case IDs, use es-kibana-case-list. Required
limit Limit on the number of keys to return. Optional
offset Starting record index to begin retrieving records from. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.Case.Alert.id String The alert ID.
Elasticsearch.Kibana.Case.Alert.index String The alert index.
Elasticsearch.Kibana.Case.Alert.attached_at Date The date the alert was attached to the case.

Command Example

!es-kibana-case-alerts-list case_id="1234"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "Case": {
                "1234": {
                    "Alert": [
                        {
                            "id": "5678",
                            "index": ".alerts-security.alerts-default",
                            "attached_at": "2024-01-15T11:00:00.000Z"
                        }
                    ]
                }
            }
        }
    }
}

Human Readable Output

Alerts for Case 1234

Case id Attached at Alert id Index
1234 2024-01-15T11:00:00.000Z 5678 .alerts-security.alerts-default

es-kibana-case-comment-add


Add a case comment or alert.

Base Command

es-kibana-case-comment-add

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
case_id The identifier for the case. To retrieve case IDs, use es-kibana-case-list. Required
alert_id The alert identifiers. Required only when type is alert. Optional
index The alert indices. Required only when type is alert. Optional
owner The application that owns the cases: Stack Management, Observability, or Elastic Security. Required
rule_id The rule identifier. Optional
rule_name The rule name. Optional
type The type of comment. Required
comment The new comment. Required only when type is user. Maximum length is 30000. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.Case.id String The case ID.
Elasticsearch.Kibana.Case.comments.comment String The comment text.
Elasticsearch.Kibana.Case.comments.created_by.username String The user who created the comment.

Command Example

!es-kibana-case-comment-add case_id="1234" type="user" owner="securitySolution" comment="Investigated and confirmed malicious activity."

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "Case": {
                "id": "1234",
                "comments": [
                    {
                        "comment": "Investigated and confirmed malicious activity.",
                        "created_by": {"username": "analyst"}
                    }
                ]
            }
        }
    }
}

Human Readable Output

Kibana Case Comment Added

Case id Comment Created by
1234 Investigated and confirmed malicious activity. analyst

es-kibana-case-comment-update


Update a case comment or alert.

Base Command

es-kibana-case-comment-update

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
case_id The identifier for the case. To retrieve case IDs, use es-kibana-case-list. Required
comment_id The identifier for the comment. Optional
comment The new comment. Required only when type is user. Maximum length is 30000. Optional
alert_id The alert identifiers. Required only when type is alert. Optional
index The alert indices. Required only when type is alert. Optional
owner The application that owns the cases: Stack Management, Observability, or Elastic Security. Required
rule_id The rule identifier. Optional
rule_name The rule name. Optional
type The type of comment. Required
version The current comment version. To retrieve version values, use the get comments API. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.Case.id String The case ID.
Elasticsearch.Kibana.Case.comments.comment String The comment text.
Elasticsearch.Kibana.Case.comments.updated_by.username String The user who updated the comment.
Elasticsearch.Kibana.Case.comments.updated_at Date The date the comment was updated.

Command Example

!es-kibana-case-comment-update case_id="1234" comment_id="5678" type="user" owner="securitySolution" comment="Updated: confirmed false positive." version="WzEsMV0="

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "Case": {
                "id": "1234",
                "comments": [
                    {
                        "id": "5678",
                        "comment": "Updated: confirmed false positive.",
                        "updated_by": {"username": "analyst"},
                        "updated_at": "2024-01-15T12:00:00.000Z"
                    }
                ]
            }
        }
    }
}

Human Readable Output

Kibana Case Comment Updated

Case id Comment Updated by Updated at
1234 Updated: confirmed false positive. analyst 2024-01-15T12:00:00.000Z

es-kibana-case-comment-delete


Deletes all comments and alerts from a case.

Base Command

es-kibana-case-comment-delete

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
case_id The identifier for the case. To retrieve case IDs, use es-kibana-case-list. Required

Context Output

There is no context output for this command.

Command Example

!es-kibana-case-comment-delete case_id="1234"

Context Example

{}

Human Readable Output

The comments and alerts for the case 1234 have been successfully deleted.

es-kibana-case-file-attach


Attach a file to a case.

Base Command

es-kibana-case-file-attach

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
case_id The identifier for the case. To retrieve case IDs, use es-kibana-case-list. Required
entry_id Entry ID for the file that needs to be attached. Required
file_name The desired name of the file being attached to the case (without file extension). Optional

Context Output

Path Type Description
Elasticsearch.Kibana.Case.id String The case ID.
Elasticsearch.Kibana.Case.comments.updated_by.username String The user who attached the file.

Command Example

!es-kibana-case-file-attach case_id="1234" entry_id="1@1"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "Case": {
                "id": "1234",
                "comments": [
                    {
                        "updated_by": {"username": "analyst"}
                    }
                ]
            }
        }
    }
}

Human Readable Output

File successfully attached to case 1234.

es-kibana-endpoint-exception-list-item-create


Create an Elastic Endpoint exception list item, and associate it with the Elastic Endpoint exception list.

Base Command

es-kibana-endpoint-exception-list-item-create

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
description Describes the exception list. Optional
entries_field A string that does not contain only whitespace characters. Optional
entries_list_id Value list’s identifier. Optional
entries_list_type Specifies the Elasticsearch data type of excludes the list container holds. Optional
entries_operator The exception item entry operator. Optional
entries_type The exception item entry type. Optional
item_id Human readable string identifier, e.g. trusted-linux-processes. Optional
meta Additional properties are allowed (JSON object). Optional
name Exception list name. Minimum length is 1. Optional
os_types Use this field to specify the operating system. Optional
tags String array containing words and phrases to help categorize exception items. Optional
entry_id Entry ID for the file containing the full request JSON. If provided, other parameters won’t be considered. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.EndpointExceptionListItem.id String The exception list item ID.
Elasticsearch.Kibana.EndpointExceptionListItem.item_id String The exception list item human-readable ID.
Elasticsearch.Kibana.EndpointExceptionListItem.list_id String The exception list ID.
Elasticsearch.Kibana.EndpointExceptionListItem.name String The exception list item name.
Elasticsearch.Kibana.EndpointExceptionListItem.description String The exception list item description.
Elasticsearch.Kibana.EndpointExceptionListItem.created_at Date The creation date of the exception list item.

Command Example

!es-kibana-endpoint-exception-list-item-create name="Trusted process" description="Allow known safe process" entries_field="process.name" entries_type="match" entries_operator="included" entries_value="safe_process.exe" os_types="windows"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "EndpointExceptionListItem": {
                "id": "1234",
                "item_id": "trusted-process-1",
                "list_id": "endpoint_list",
                "name": "Trusted process",
                "description": "Allow known safe process",
                "created_at": "2024-01-15T10:00:00.000Z"
            }
        }
    }
}

Human Readable Output

Kibana Endpoint Exception List Item

ID Item ID List ID Name Description Creation date
1234 trusted-process-1 endpoint_list Trusted process Allow known safe process 2024-01-15T10:00:00.000Z

es-kibana-endpoint-exception-list-item-update


Update an Elastic Endpoint exception list item.

Base Command

es-kibana-endpoint-exception-list-item-update

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
exception_list_item_id Exception’s identifier. Optional
item_id Human readable string identifier, e.g. trusted-linux-processes. Optional
_version The version id, normally returned by the API when the item is retrieved. Optional
description Describes the exception list. Optional
entries_field A string that does not contain only whitespace characters. Optional
entries_list_id Value list’s identifier. Optional
entries_list_type Specifies the Elasticsearch data type of excludes the list container holds. Optional
entries_operator The exception item entry operator. Optional
entries_type The exception item entry type. Optional
entries_value A string that does not contain only whitespace characters. Optional
meta Additional properties are allowed (JSON object). Optional
name Exception list name. Minimum length is 1. Optional
os_types Use this field to specify the operating system. Optional
tags String array containing words and phrases to help categorize exception items. Optional
entry_id Entry ID for the file containing the full request JSON. If provided, other parameters won’t be considered. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.EndpointExceptionListItem.id String The exception list item ID.
Elasticsearch.Kibana.EndpointExceptionListItem.item_id String The exception list item human-readable ID.
Elasticsearch.Kibana.EndpointExceptionListItem.list_id String The exception list ID.
Elasticsearch.Kibana.EndpointExceptionListItem.name String The exception list item name.
Elasticsearch.Kibana.EndpointExceptionListItem.description String The exception list item description.
Elasticsearch.Kibana.EndpointExceptionListItem.created_at Date The creation date of the exception list item.

Command Example

!es-kibana-endpoint-exception-list-item-update item_id="trusted-process-1" name="Trusted process updated" description="Updated description" entries_field="process.name" entries_type="match" entries_operator="included" entries_value="safe_process.exe"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "EndpointExceptionListItem": {
                "id": "1234",
                "item_id": "trusted-process-1",
                "list_id": "endpoint_list",
                "name": "Trusted process updated",
                "description": "Updated description",
                "created_at": "2024-01-15T10:00:00.000Z"
            }
        }
    }
}

Human Readable Output

Kibana Endpoint Exception List Item

ID Item ID List ID Name Description Creation date
1234 trusted-process-1 endpoint_list Trusted process updated Updated description 2024-01-15T10:00:00.000Z

es-kibana-endpoint-exception-list-item-delete


Delete an Elastic Endpoint exception list item.

Base Command

es-kibana-endpoint-exception-list-item-delete

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
item_id Either id or item_id must be specified. Required

Context Output

There is no context output for this command.

Command Example

!es-kibana-endpoint-exception-list-item-delete item_id="trusted-process-1"

Context Example

{}

Human Readable Output

The item trusted-process-1 has been successfully deleted.

es-kibana-endpoint-exception-list-item-list


Retrieves Elastic Endpoint exception list items.

Base Command

es-kibana-endpoint-exception-list-item-list

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
filter Filters the returned results according to the value of the specified field, using the <field name>:<field value> syntax. Optional
item_id Either id or item_id must be specified. Optional
sort_field Determines which field is used to sort the results. Optional
sort_order Determines the sort order. Optional
page The page number to return. Minimum value is 0. Optional
size The number of exception list items to return per page. Minimum value is 0. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.EndpointExceptionListItem.id String The exception list item ID.
Elasticsearch.Kibana.EndpointExceptionListItem.item_id String The exception list item human-readable ID.
Elasticsearch.Kibana.EndpointExceptionListItem.list_id String The exception list ID.
Elasticsearch.Kibana.EndpointExceptionListItem.name String The exception list item name.
Elasticsearch.Kibana.EndpointExceptionListItem.description String The exception list item description.
Elasticsearch.Kibana.EndpointExceptionListItem.created_at Date The creation date of the exception list item.

Command Example


#### Context Example

```json
{
    "Elasticsearch": {
        "Kibana": {
            "EndpointExceptionListItem": [
                {
                    "id": "1234",
                    "item_id": "trusted-process-1",
                    "list_id": "endpoint_list",
                    "name": "Trusted process",
                    "description": "Allow known safe process",
                    "created_at": "2024-01-15T10:00:00.000Z"
                }
            ]
        }
    }
}

Human Readable Output

Kibana Endpoint Exception List Items

ID Item ID List ID Name Description Creation date
1234 trusted-process-1 endpoint_list Trusted process Allow known safe process 2024-01-15T10:00:00.000Z

es-kibana-exception-list-list


Get a list of all exception list containers.

Base Command

es-kibana-exception-list-list

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
exception_list_id Exception list’s identifier. Either id or list_id must be specified. Optional
list_id Human readable exception list string identifier. Either id or list_id must be specified. Optional
filter Filters the returned results according to the value of the specified field. Optional
namespace_type Determines whether the returned containers are Kibana associated with a Kibana space or available in all spaces. Optional
sort_field Determines which field is used to sort the results. Optional
sort_order Determines the sort order. Optional
page The page number to return. Minimum value is 1. Optional
size The number of exception lists to return per page. Minimum value is 1. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.ExceptionList.id String The exception list ID.
Elasticsearch.Kibana.ExceptionList.list_id String The human-readable exception list ID.
Elasticsearch.Kibana.ExceptionList.name String The exception list name.
Elasticsearch.Kibana.ExceptionList.description String The exception list description.
Elasticsearch.Kibana.ExceptionList.created_at Date The creation date of the exception list.

Command Example


#### Context Example

```json
{
    "Elasticsearch": {
        "Kibana": {
            "ExceptionList": [
                {
                    "id": "1234",
                    "list_id": "my-exception-list",
                    "name": "My Exception List",
                    "description": "Exceptions for trusted processes",
                    "created_at": "2024-01-15T10:00:00.000Z"
                }
            ]
        }
    }
}

Human Readable Output

Kibana Exception Lists

Exception list ID List ID Name Description Creation date
1234 my-exception-list My Exception List Exceptions for trusted processes 2024-01-15T10:00:00.000Z

es-kibana-exception-list-create


Create an exception list.

Base Command

es-kibana-exception-list-create

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
description Describes the exception list. Optional
list_id The exception list’s human-readable string identifier. Optional
meta Placeholder for metadata about the list container (JSON object). Optional
name The name of the exception list. Optional
namespace_type Determines whether the returned containers are Kibana associated with a Kibana space or available in all spaces. Optional
os_types Use this field to specify the operating system. Only enter one value. Optional
tags String array containing words and phrases to help categorize exception containers. Optional
type The type of exception list to be created. Required
version The document version automatically increased on updates. Optional
entry_id Entry ID for the file containing the request JSON. If provided, other parameters won’t be considered. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.ExceptionList.id String The exception list ID.
Elasticsearch.Kibana.ExceptionList.list_id String The human-readable exception list ID.
Elasticsearch.Kibana.ExceptionList.name String The exception list name.
Elasticsearch.Kibana.ExceptionList.description String The exception list description.
Elasticsearch.Kibana.ExceptionList.created_at Date The creation date of the exception list.

Command Example

!es-kibana-exception-list-create type="detection" name="My Exception List" description="Exceptions for trusted processes" list_id="my-exception-list"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "ExceptionList": {
                "id": "1234",
                "list_id": "my-exception-list",
                "name": "My Exception List",
                "description": "Exceptions for trusted processes",
                "created_at": "2024-01-15T10:00:00.000Z"
            }
        }
    }
}

Human Readable Output

Kibana Exception List

Exception list ID List ID Name Description Creation date
1234 my-exception-list My Exception List Exceptions for trusted processes 2024-01-15T10:00:00.000Z

es-kibana-exception-list-update


Updates an existing exception list.

Base Command

es-kibana-exception-list-update

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
_version The version id, normally returned by the API when the item was retrieved. Optional
description Describes the exception list. Required
exception_list_id Exception list’s identifier. Optional
list_id The exception list’s human-readable string identifier. Optional
meta Placeholder for metadata about the list container (JSON object). Optional
name The name of the exception list. Required
namespace_type Determines whether the returned containers are Kibana associated with a Kibana space or available in all spaces. Optional
os_types Use this field to specify the operating system. Only enter one value. Optional
tags String array containing words and phrases to help categorize exception containers. Optional
type The type of exception list to be created. Required
version The document version automatically increased on updates. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.ExceptionList.id String The exception list ID.
Elasticsearch.Kibana.ExceptionList.list_id String The human-readable exception list ID.
Elasticsearch.Kibana.ExceptionList.name String The exception list name.
Elasticsearch.Kibana.ExceptionList.description String The exception list description.
Elasticsearch.Kibana.ExceptionList.created_at Date The creation date of the exception list.

Command Example

!es-kibana-exception-list-update exception_list_id="1234" name="My Exception List Updated" description="Updated description" type="detection"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "ExceptionList": {
                "id": "1234",
                "list_id": "my-exception-list",
                "name": "My Exception List Updated",
                "description": "Updated description",
                "created_at": "2024-01-15T10:00:00.000Z"
            }
        }
    }
}

Human Readable Output

Kibana Exception List

Exception list ID List ID Name Description Creation date
1234 my-exception-list My Exception List Updated Updated description 2024-01-15T10:00:00.000Z

es-kibana-exception-list-delete


Delete an exception list using the id or list_id field.

Base Command

es-kibana-exception-list-delete

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
exception_list_id Exception list’s identifier. Either id or list_id must be specified. Optional
list_id Human readable exception list string identifier. Either id or list_id must be specified. Optional
namespace_type Determines whether the returned containers are Kibana associated with a Kibana space or available in all spaces. Optional

Context Output

There is no context output for this command.

Command Example

!es-kibana-exception-list-delete list_id="my-exception-list"

Context Example

{}

Human Readable Output

The exception list my-exception-list has been successfully deleted.

es-kibana-exception-list-item-list


Get a list of all exception list items in the specified list.

Base Command

es-kibana-exception-list-item-list

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
exception_list_item_id Exception list item’s identifier. Either id or item_id must be specified. Optional
item_id Human readable exception item string identifier. Either id or item_id must be specified. Optional
exception_list_id The list_ids of the items to fetch. Optional
filter Filters the returned results according to the value of the specified field, using the <field name>:<field value> syntax. Optional
namespace_type Determines whether the returned containers are Kibana associated with a Kibana space or available in all spaces. Optional
search Free-text search term applied to exception list item fields. Optional
sort_field Determines which field is used to sort the results. Optional
sort_order Determines the sort order. Optional
page The page number to return. Minimum value is 0. Optional
size The number of exception list items to return per page. Minimum value is 0. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.ExceptionListItem.id String The exception list item ID.
Elasticsearch.Kibana.ExceptionListItem.item_id String The exception list item human-readable ID.
Elasticsearch.Kibana.ExceptionListItem.list_id String The exception list ID.
Elasticsearch.Kibana.ExceptionListItem.name String The exception list item name.
Elasticsearch.Kibana.ExceptionListItem.description String The exception list item description.
Elasticsearch.Kibana.ExceptionListItem.created_at Date The creation date of the exception list item.

Command Example

!es-kibana-exception-list-item-list exception_list_id="my-exception-list"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "ExceptionListItem": [
                {
                    "id": "1234",
                    "item_id": "my-item-1",
                    "list_id": "my-exception-list",
                    "name": "Trusted IP",
                    "description": "Known safe IP address",
                    "created_at": "2024-01-15T10:00:00.000Z"
                }
            ]
        }
    }
}

Human Readable Output

Kibana Exception List Items

ID Item ID List ID Name Description Creation date
1234 my-item-1 my-exception-list Trusted IP Known safe IP address 2024-01-15T10:00:00.000Z

es-kibana-exception-list-item-create


Create an exception item and associate it with the specified exception list.

Base Command

es-kibana-exception-list-item-create

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
comment A string that does not contain only whitespace characters. Optional
description Describes the exception list. Optional
expire_time The exception item’s expiration date, in ISO format. Optional
item_id Human readable string identifier, e.g. trusted-linux-processes. Optional
meta Additional properties are allowed (JSON object). Optional
name Exception list name. Optional
namespace_type Determines whether the returned containers are Kibana associated with a Kibana space or available in all spaces. Optional
type The type of exception list to be created. Optional
entries_field A string that does not contain only whitespace characters. Optional
entries_operator The exception item entry operator. Optional
entries_type The exception item entry type. Optional
entries_value The exception item entry value. Optional
entries_list_id Value list’s identifier. Optional
entries_list_type Specifies the Elasticsearch data type of excludes the list container holds. Optional
list_id The exception list’s human-readable string identifier. Optional
os_types Use this field to specify the operating system. Only enter one value. Optional
tags String array containing words and phrases to help categorize exception containers. Optional
entry_id Entry ID for the file containing the request JSON. If provided, other parameters won’t be considered. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.ExceptionListItem.id String The exception list item ID.
Elasticsearch.Kibana.ExceptionListItem.item_id String The exception list item human-readable ID.
Elasticsearch.Kibana.ExceptionListItem.list_id String The exception list ID.
Elasticsearch.Kibana.ExceptionListItem.name String The exception list item name.
Elasticsearch.Kibana.ExceptionListItem.description String The exception list item description.
Elasticsearch.Kibana.ExceptionListItem.created_at Date The creation date of the exception list item.

Command Example

!es-kibana-exception-list-item-create list_id="my-exception-list" name="Trusted IP" description="Known safe IP address" entries_field="source.ip" entries_type="match" entries_operator="included" entries_value="192.168.1.1"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "ExceptionListItem": {
                "id": "1234",
                "item_id": "my-item-1",
                "list_id": "my-exception-list",
                "name": "Trusted IP",
                "description": "Known safe IP address",
                "created_at": "2024-01-15T10:00:00.000Z"
            }
        }
    }
}

Human Readable Output

Kibana Exception List Item

ID Item ID List ID Name Description Creation date
1234 my-item-1 my-exception-list Trusted IP Known safe IP address 2024-01-15T10:00:00.000Z

es-kibana-exception-item-list-update


Updates an existing exception list item.

Base Command

es-kibana-exception-item-list-update

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
_version The version ID, normally returned by the API when the item is retrieved. Optional
comment A string that does not contain only whitespace characters. Optional
comment_id A string that does not contain only whitespace characters. Optional
description Describes the exception list. Optional
expire_time The exception item’s expiration date, in ISO format. Optional
exception_list_item_id Exception’s identifier. Optional
item_id Human readable string identifier, e.g. trusted-linux-processes. Optional
meta Additional properties are allowed (JSON object). Optional
name Exception list name. Optional
namespace_type Determines whether the returned containers are Kibana associated with a Kibana space or available in all spaces. Optional
type The type of exception list to be created. Optional
entries_field A string that does not contain only whitespace characters. Optional
entries_operator The exception item entry operator. Optional
entries_type The exception item entry type. Optional
entries_value The exception item entry value. Optional
entries_list_id Value list’s identifier. Optional
entries_list_type Specifies the Elasticsearch data type of excludes the list container holds. Optional
list_id The exception list’s human-readable string identifier. Optional
os_types Use this field to specify the operating system. Only enter one value. Optional
tags String array containing words and phrases to help categorize exception containers. Optional
entry_id Entry ID for the file containing the request JSON. If provided, other parameters won’t be considered. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.ExceptionListItem.id String The exception list item ID.
Elasticsearch.Kibana.ExceptionListItem.item_id String The exception list item human-readable ID.
Elasticsearch.Kibana.ExceptionListItem.list_id String The exception list ID.
Elasticsearch.Kibana.ExceptionListItem.name String The exception list item name.
Elasticsearch.Kibana.ExceptionListItem.description String The exception list item description.
Elasticsearch.Kibana.ExceptionListItem.updated_at Date The update date of the exception list item.

Command Example

!es-kibana-exception-item-list-update item_id="my-item-1" name="Trusted IP updated" description="Updated safe IP" entries_field="source.ip" entries_type="match" entries_operator="included" entries_value="192.168.1.1"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "ExceptionListItem": {
                "id": "1234",
                "item_id": "my-item-1",
                "list_id": "my-exception-list",
                "name": "Trusted IP updated",
                "description": "Updated safe IP",
                "updated_at": "2024-01-15T12:00:00.000Z"
            }
        }
    }
}

Human Readable Output

Kibana Exception List Item Updated

Exception list item ID Item Id List ID Name Description Update date
1234 my-item-1 my-exception-list Trusted IP updated Updated safe IP 2024-01-15T12:00:00.000Z

es-kibana-exception-list-item-delete


Deletes an exception list item.

Base Command

es-kibana-exception-list-item-delete

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
exception_list_item_id Exception list item’s identifier. Either id or item_id must be specified. Optional
item_id Human readable exception item string identifier. Either id or item_id must be specified. Optional
namespace_type Determines whether the returned containers are Kibana associated with a Kibana space or available in all spaces. Optional

Context Output

There is no context output for this command.

Command Example

!es-kibana-exception-list-item-delete item_id="my-item-1"

Context Example

{}

Human Readable Output

The exception list item my-item-1 has been successfully deleted.

es-kibana-value-lists-list


Retrieves details of a value list (the list container).

Base Command

es-kibana-value-lists-list

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
value_list_id Value list identifier (id) returned when the list was created. Optional
filter Filters the returned results according to the value of the specified field, using the <field name>:<field value> syntax. Optional
cursor Returns the lists that come after the last lists returned in the previous call. Optional
sort_field Determines which field is used to sort the results. Optional
sort_order Determines the sort order. Optional
page The page number to return. Optional
size The number of value lists to return per page. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.ValueList.id String The value list ID.
Elasticsearch.Kibana.ValueList.name String The value list name.
Elasticsearch.Kibana.ValueList.description String The value list description.
Elasticsearch.Kibana.ValueList.created_at Date The creation date of the value list.

Command Example


#### Context Example

```json
{
    "Elasticsearch": {
        "Kibana": {
            "ValueList": [
                {
                    "id": "1234",
                    "name": "trusted-ips",
                    "description": "List of trusted IP addresses",
                    "created_at": "2024-01-15T10:00:00.000Z"
                }
            ]
        }
    }
}

Human Readable Output

Kibana Value Lists

Value list ID Name Description Creation date
1234 trusted-ips List of trusted IP addresses 2024-01-15T10:00:00.000Z

es-kibana-value-list-item-get


Retrieves value list items.

Base Command

es-kibana-value-list-item-get

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
value_list_item_id Value list item identifier. Required if list_id and value are not specified. Optional
value_list_id Parent value list’s id to page through items for. Optional
value The value used to evaluate exceptions. Required if id is not specified. Optional
filter Filters the returned results according to the value of the specified field, using the <field name>:<field value> syntax. Optional
cursor Opaque cursor returned in a previous response; pass it to continue listing from the next page. Optional
sort_field Determines which field is used to sort the results. Optional
sort_order Determines the sort order. Optional
page The page number to return. Optional
size The number of list items to return per page. Optional

Context Output

Path Type Description
Elasticsearch.Kibana.ValueListItem.id String The value list item ID.
Elasticsearch.Kibana.ValueListItem.list_id String The value list ID.
Elasticsearch.Kibana.ValueListItem.name String The value list item name.
Elasticsearch.Kibana.ValueListItem.description String The value list item description.
Elasticsearch.Kibana.ValueListItem.created_at Date The creation date of the value list item.

Command Example

!es-kibana-value-list-item-get value_list_id="1234"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "ValueListItem": [
                {
                    "id": "5678",
                    "list_id": "1234",
                    "value": "192.168.1.1",
                    "created_at": "2024-01-15T10:00:00.000Z"
                }
            ]
        }
    }
}

Human Readable Output

Kibana Value List Items

Value list item ID List ID Value Creation date
5678 1234 192.168.1.1 2024-01-15T10:00:00.000Z

es-kibana-value-list-item-create


Adds a new item to a value list.

Base Command

es-kibana-value-list-item-create

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
value_list_id Value list’s identifier. Required
meta Placeholder for metadata about the value list item (JSON object). Example {“source”:”threatfeed”,”priority”:3,”active”:true}. Optional
refresh Determines when changes made by the request are made visible to search. Optional
value The value used to evaluate exceptions. Required

Context Output

Path Type Description
Elasticsearch.Kibana.ValueListItem.id String The value list item ID.
Elasticsearch.Kibana.ValueListItem.list_id String The value list ID.
Elasticsearch.Kibana.ValueListItem.name String The value list item name.
Elasticsearch.Kibana.ValueListItem.description String The value list item description.
Elasticsearch.Kibana.ValueListItem.created_at Date The creation date of the value list item.

Command Example

!es-kibana-value-list-item-create value_list_id="1234" value="10.0.0.1"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "ValueListItem": {
                "id": "5678",
                "list_id": "1234",
                "value": "10.0.0.1",
                "created_at": "2024-01-15T10:00:00.000Z"
            }
        }
    }
}

Human Readable Output

Kibana Value List Item

Value list item ID List ID Value Creation date
5678 1234 10.0.0.1 2024-01-15T10:00:00.000Z

es-kibana-value-list-item-update


Updates an existing value list item.

Base Command

es-kibana-value-list-item-update

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
_version The version id, normally returned by the API when the document is retrieved. Optional
value_list_item_id Value list item identifier. Required
meta Placeholder for metadata about the value list item (JSON object). Example {“source”:”threatfeed”,”priority”:3,”active”:true}. Optional
value The value used to evaluate exceptions. Required

Context Output

Path Type Description
Elasticsearch.Kibana.ValueListItem.id String The value list item ID.
Elasticsearch.Kibana.ValueListItem.list_id String The value list ID.
Elasticsearch.Kibana.ValueListItem.name String The value list item name.
Elasticsearch.Kibana.ValueListItem.description String The value list item description.
Elasticsearch.Kibana.ValueListItem.created_at Date The creation date of the value list item.

Command Example

!es-kibana-value-list-item-update value_list_item_id="5678" value="10.0.0.2"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "ValueListItem": {
                "id": "5678",
                "list_id": "1234",
                "value": "10.0.0.2",
                "created_at": "2024-01-15T10:00:00.000Z"
            }
        }
    }
}

Human Readable Output

Kibana Value List Item

Value list item ID List ID Value Creation date
5678 1234 10.0.0.2 2024-01-15T10:00:00.000Z

es-kibana-value-list-item-delete


Deletes a value list item.

Base Command

es-kibana-value-list-item-delete

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
value_list_item_id Value list item’s identifier. Required if list_id and value are not specified. Optional
value_list_id Value list’s identifier. Optional
value The value used to evaluate exceptions. Required if id is not specified. Optional
refresh Determines when changes made by the request are made visible to search. Optional

Context Output

There is no context output for this command.

Command Example

!es-kibana-value-list-item-delete value_list_item_id="5678"

Context Example

{}

Human Readable Output

The value list item 5678 has been successfully deleted.

es-kibana-value-list-item-export


Exports all items of a value list as a file (returned to the War Room).

Base Command

es-kibana-value-list-item-export

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
value_list_id Value list’s ID to export. Optional

Context Output

There is no context output for this command.

Command Example

!es-kibana-value-list-item-export value_list_id="1234"

Context Example

{}

Human Readable Output

The value list 1234 has been exported successfully.

es-kibana-value-list-item-import


Import value list items from a TXT or CSV file.

Base Command

es-kibana-value-list-item-import

Input

Argument Name Description Required
space_id Refer to https://www.elastic.co/docs/deploy-manage/manage-spaces for more information. Optional
value_list_id List’s ID to import. Optional
type Type of the importing list. Optional
refresh Determines when changes made by the request are made visible to search. Optional
entry_id Entry ID for the file containing the items to import. Required

Context Output

Path Type Description
Elasticsearch.Kibana.ValueListItem.id String The value list item ID.
Elasticsearch.Kibana.ValueListItem.list_id String The value list ID.
Elasticsearch.Kibana.ValueListItem.name String The value list item name.
Elasticsearch.Kibana.ValueListItem.description String The value list item description.
Elasticsearch.Kibana.ValueListItem.created_at Date The creation date of the value list item.

Command Example

!es-kibana-value-list-item-import value_list_id="1234" entry_id="1@1"

Context Example

{
    "Elasticsearch": {
        "Kibana": {
            "ValueListItem": {
                "id": "5678",
                "list_id": "1234",
                "value": "10.0.0.1",
                "created_at": "2024-01-15T10:00:00.000Z"
            }
        }
    }
}

Human Readable Output

Kibana Value List Item

Value list item ID List ID Value Creation date
5678 1234 10.0.0.1 2024-01-15T10:00:00.000Z

<~PLATFORM>

License Requirements

The following configuration parameters require one of these licenses: Cortex XSIAM or Agentix:

  • Fetch incidents

</~PLATFORM>

Configuration parameters

  • url — Server URL
  • kibana_url — Kibana Server URL
  • auth_type — Authorization type (required)
  • api_key_auth_credentials — API key ID
  • credentials — Username
  • insecure — Trust any certificate (not secure)
  • proxy — Use system proxy settings
  • client_type — Client type
  • fetch_index — Index to fetch incidents from
  • fetch_query — Query String
  • fetch_fields — Fields to Fetch
  • fetch_time_field — Index time field
  • raw_query — Raw Query
  • time_method — Time field type
  • map_labels — Map JSON fields into labels
  • fetch_time — First fetch timestamp
  • fetch_size — The maximum number of results per fetch
  • timeout — Request timeout (in seconds).
  • incidentType — Incident type
  • isFetch — Fetch incidents
  • incidentFetchInterval — Incidents Fetch Interval
  • space_id — Space ID
  • fetch_incident_type — Fetch incident types
  • mirror_direction — Incident Mirroring Direction
  • fetch_severity — Fetch cases by Severity
  • fetch_status — Fetch cases by Status
  • fetch_alerts_for_case — Fetch alerts for case
  • close_incident — Close Mirrored XSOAR Incident
  • close_elastic_incident — Close Mirrored Elasticsearch Incident

Commands (48)

  • es-eql-search

    Search using EQL query.

  • es-esql-search

    Search using ES|QL query. (Elastic >=8.11).

  • es-get-indices-statistics

    Returns Elasticsearch indices statistics and information. This command is not supported for client type OpenSearch.

  • es-index

    Indexes a document into an Elasticsearch index.

  • es-integration-health-check

    Returns the health status of the integration. This commmand should be used for debugging purposes.

  • es-kibana-alerting-health-get

    Retrieves the health of the Kibana alerting framework.

  • es-kibana-case-alerts-list

    Retrieves all alerts for a case.

  • es-kibana-case-comment-add

    Add a case comment or alert.

  • es-kibana-case-comment-delete

    Deletes all comments and alerts from a case.

  • es-kibana-case-comment-update

    Update a case comment or alert.

  • es-kibana-case-create

    Creates a new case in Kibana.

  • es-kibana-case-delete

    Deletes one or more cases by ID.

  • es-kibana-case-file-attach

    Attach a file to a case.

  • es-kibana-case-list

    Retrieves the details of Kibana cases.

  • es-kibana-case-update

    Update cases in Kibana.

  • es-kibana-detection-alert-status-set

    Set the status of one or more detection alerts.

  • es-kibana-endpoint-exception-list-item-create

    Create an Elastic Endpoint exception list item, and associate it with the Elastic Endpoint exception list.

  • es-kibana-endpoint-exception-list-item-delete

    Delete an Elastic Endpoint exception list item.

  • es-kibana-endpoint-exception-list-item-list

    Retrieves Elastic Endpoint exception list items.

  • es-kibana-endpoint-exception-list-item-update

    Update an Elastic Endpoint exception list item.

  • es-kibana-exception-item-list-update

    Updates an existing exception list item.

  • es-kibana-exception-list-create

    Create an exception list.

  • es-kibana-exception-list-delete

    Delete an exception list using the id or list_id field.

  • es-kibana-exception-list-item-create

    Create an exception item and associate it with the specified exception list.

  • es-kibana-exception-list-item-delete

    Deletes an exception list item.

  • es-kibana-exception-list-item-list

    Get a list of all exception list items in the specified list.

  • es-kibana-exception-list-list

    Get a list of all exception list containers.

  • es-kibana-exception-list-update

    Updates an existing exception list.

  • es-kibana-rule-alert-mute

    Mute an alert, or mute all alerts for a rule.

  • es-kibana-rule-alert-unmute

    Unmute an alert, or unmute all alerts for a rule.

  • es-kibana-rule-disable

    Disable a rule.

  • es-kibana-rule-enable

    Enable a rule.

  • es-kibana-rule-list

    Retrieves information about rules.

  • es-kibana-rule-types-list

    Retrieves all rule types available in Kibana.

  • es-kibana-rule-update

    Update a rule.

  • es-kibana-value-list-item-create

    Adds a new item to a value list.

  • es-kibana-value-list-item-delete

    Deletes a value list item.

  • es-kibana-value-list-item-export

    Exports all items of a value list as a file (returned to the War Room).

  • es-kibana-value-list-item-get

    Retrieves value list items.

  • es-kibana-value-list-item-import

    Import value list items from a TXT or CSV file.

  • es-kibana-value-list-item-update

    Updates an existing value list item.

  • es-kibana-value-lists-list

    Retrieves details of a value list (the list container).

  • es-search

    Queries an index.

  • get-mapping-fields

    Returns the schema of the index to fetch from. This commmand should be used for debugging purposes.

  • get-modified-remote-data

    Gets the list of incidents that were modified since the last update time. This command is used for mirroring in and should be used for debugging purposes.

  • get-remote-data

    Gets remote data of a specific incident. This command is used for mirroring in and should be used for debugging purposes.

  • search

    Searches an index.

  • update-remote-system

    Updates the remote system with local incident changes. This command is used for mirroring out and should be used for debugging purposes.

The Elasticsearch v2 integration supports Elasticsearch 6.0.0 and later.
This integration was integrated and tested with versions 6.6.2, 7.3, 8.4.1 of Elasticsearch.

## Authentication

There are 3 different authentication [methods](https://www.elastic.co/docs/api/doc/elasticsearch#doc-authentication)

### Basic Auth (http)

To use **Basic Authentication**:

* Choose the **Basic Auth** type from the *Authorization type* dropdown list.
* Enter your **Username** into the *Username* field.
* Enter your **Password** into the *Password* field.

### API Key Auth (http_api_key)

To use **API Key Authentication**:

* Choose the **API Key Auth** type from the *Authorization type* dropdown list.
* Enter your **API key ID** into the *API key ID* field.
* Enter your **API key** into the *API key* field.

For more info about API Key management see [here](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/security-api-create-api-key.html)

**Note:** Optionally, you can choose **Basic Auth** type and use the *Username* and *Password* fields to enter the API key ID and API key.
Example:
for *API Key ID* kQme5aOx enter: _api_key_id:kQme5aOx
for *API Key* ui2lp2axT enter: ui2lp2axT

### Bearer Auth (http)

To use **Bearer Authentication**:

* Choose the **Bearer Auth** type from the *Authorization type* dropdown list.
* Enter your **Username** into the *Username* field.
* Enter your **Password** into the *Password* field.

For more info see [here](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/security-api-get-token.html#security-api-get-token-prereqs)

## Kibana Integration

This integration includes a set of **`es-kibana-*` commands** that let you interact with Kibana directly from Cortex XSOAR — no separate Kibana integration required.

### What you can do with Kibana commands

- **Case Management** — Create, update, delete, and list Kibana cases; add comments, attach files, and link alerts to cases.
- **Alerting & Rules** — List rule types, retrieve rules, enable/disable rules, mute/unmute alerts.
- **Detection Alerts** — Bulk-update the status of security detection alerts (open, acknowledged, closed).
- **Exception Lists & Items** — Manage Kibana exception lists and their items, including Elastic Endpoint exceptions.
- **Value Lists** — Create, update, delete, and import/export value lists used in detection rules.

### Kibana URL

- **On-premises (self-managed) deployments:** Set the **Kibana Server URL** parameter to the address of your Kibana server, including the port if it is not the default (e.g. `https://kibana.example.com:5601`). Kibana is usually hosted separately from Elasticsearch, so this URL cannot be derived from the Elasticsearch **Server URL**.
- **Elastic Cloud deployments:** You can leave **Kibana Server URL** empty. The URL is then derived automatically from the **Server URL**, by replacing the `.es.` segment of the hostname with `.kb.` (for example, `https://my-deployment.es.us-central1.gcp.cloud.es.io` becomes `https://my-deployment.kb.us-central1.gcp.cloud.es.io`).

> **Note:** When **Kibana Server URL** is set, it always takes precedence over the derivation from the **Server URL**.

### Required Kibana Privileges

Kibana API endpoints are gated by **feature privileges**. The level required depends on the operation:

| Privilege level | Operations covered |
|---|---|
| **Read** | GET / list / view (`es-kibana-*-list`, `es-kibana-*-get`, `es-kibana-alerting-health-get`) |
| **All** | POST / PUT / PATCH / DELETE — create, update, delete, and change-state commands |

For **Cases** and **Rules**, the required privilege is also scoped to the feature that owns the object:

- Objects owned by **Security** (e.g. SIEM detection rules, Security cases) require the **Security** feature privilege.
- Objects owned by **Observability** require the **Observability** feature privilege.
- Objects owned by **Stack / Management** (e.g. Stack Rules) require the **Stack Rules** / **Management** feature privilege.


### Kibana Spaces (optional)

If you use [Kibana Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) to separate your data, set the **Space ID** parameter in the instance configuration. All `es-kibana-*` commands will then operate within that space by default. You can also override the space per-command using the `space_id` argument.

## Notes

* Not all fields can be used for sorting in Elasticsearch. Sorting is only supported for fields of the following types: **boolean**, **numeric**, **date**, and **keyword**.
* The "Test" button does not fully validate the fetch incidents functionality. To ensure the instance is correctly fetching incidents, run the *!es-integration-health-check* command

## Additional Configuration Parameters Details

Use the **Fetch incident types** parameter to select what to fetch from Elasticsearch: the default **Elasticsearch Entity**, **Elasticsearch Security Alert**, or **Elasticsearch Case**.

Mirroring is only available for Elasticsearch Security Alerts and Cases.

Fetching security alerts requires:
    - Index
    - Index time field
    - Query String or Raw Query

For further information about type mapping, see [here](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/mapping.html#mapping-type).

**Query String**
Query String is queried using the Lucene syntax. For more information about the Lucene syntax see [here](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/query-dsl-query-string-query.html#query-string-syntax).

**Raw Query**
Allows raw DSL queries. For more information about Query DSL see [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html).

### Fetch Security Alerts

To fetch security alerts, use the **Raw Query** field (DSL query). The index must follow one of these patterns: `.internal.alerts-security.alerts-*` or `.siem-signals-*`.

### Fetch Cases

Use the **Fetch cases by Severity** parameter to filter cases by the required severity and the **Fetch cases by Status** parameter to filter cases by the required status.

**Time field type**
3 formats supported:

* Simple-Date - A plain date string. You must specify the format in which the date is stored. For more information about time formatting, see [here](http://strftime.org/).
* Timestamp-Second - A numeric value representing the number of seconds since the Unix epoch (00:00:00 UTC on 1 January 1970). Example: '1572164838'
* Timestamp-Milliseconds - A numeric value representing the number of milliseconds since the Unix epoch. Example: '1572164838123'