ES Agent

Updated at:

ES Agent is an AI-powered operations and maintenance (O&M) diagnostic capability built into Alibaba Cloud Elasticsearch (Alibaba Cloud ES). Through natural language conversation, you can complete cluster health inspections, fault diagnosis, performance optimization, and capacity planning in one place. ES Agent helps experienced O&M personnel reduce costs and improve efficiency, and helps new users get started quickly. This topic describes its product capabilities, access entry points, required permissions, and billing.

Product Overview

Product Capabilities

ES Agent provides the following capabilities for Alibaba Cloud ES operations users:

  • A built-in AI assistant panel in the Alibaba Cloud ES console, triggering inspections, diagnostics, and optimization through conversational interaction.

  • Integrated analysis across five dimensions of data — monitoring metrics, cluster logs, configuration items, request traces, and alerts and operations events — to automatically identify root causes and provide actionable recommendations.

  • Operational expertise is captured as invocable Skills, covering alert response, routine inspection, performance optimization, capacity planning, and other typical scenarios.

Note

ES Agent does not replace your final decision-making authority for cluster changes. All operations involving modifications (scaling, restarting, configuration changes, whitelist adjustments) require user confirmation before execution.

Sub-Assistants

The following sub-assistants are currently available in ES Agent:

Sub-Assistant

Capability Scope

Diagnostic Assistant

Slow query analysis, anomaly diagnosis, root cause identification, capacity prediction

Inspection Assistant

Daily health inspection, proactive optimization suggestions, risk early warning

Instance Management Assistant

Create an instance, view an instance, restart an instance, upgrade instance configuration

Network Management Assistant

Public and internal-facing access configuration, whitelist management, HTTPS switch, Kibana SSO

Product Consultation

Product usage consultation, specification recommendation

Access Entry Points

ES Agent provides two entry points in the Alibaba Cloud ES console:

  • Left navigation entry: In the ES console left-side navigation pane, click AI Assistant (marked with a NEW badge) to initiate cross-instance conversations. This entry does not auto-populate the instance context, so you select the region and instance ID before starting a conversation.

  • Global floating entry: On any page in the ES console, click the AI Assistant icon in the right-side floating bar to open the assistant as a drawer. When the assistant is opened from the instance details page, the region and instance ID of the current instance are automatically populated.

Note

Both entry points share the same conversation data. Conversations started from either entry can be found and resumed in the Recent Sessions list.

For step-by-step instructions, including conversational diagnostics, typical operations scenarios, and scheduled inspection and IM notification configuration, see Use ES Agent.

Prerequisites

Before using ES Agent, ensure the following requirements are met:

  1. You have registered an Alibaba Cloud account and activated Alibaba Cloud Elasticsearch.

  2. You have at least one Alibaba Cloud ES instance in the Normal state.

  3. The current account or Resource Access Management (RAM) user has view permissions on the ES instance and has permission to invoke ES Agent conversations, which is the elasticsearch:InvokeEsAgent action. Granting the system access policy AliyunElasticsearchReadOnlyAccess already includes that action. To run change operations such as scaling, restarting, or changing configuration, the user also needs the matching instance operations permissions. The access policy required by each Skill is described in Permissions.

  4. Complete a one-time RAM service-linked role (SLR) authorization on first use. ES Agent uses the service-linked role AliyunServiceRoleForElasticsearch to obtain read-only access to the cluster, including reading monitoring metrics, cluster logs, configuration items, and other operations metadata. This role also authorizes automatic access to OSS Buckets with the name prefix es-alicloud-* or tagged with es-alicloud. The authorization takes effect permanently after completion and can be revoked at any time in the RAM console. After the main account completes the authorization, RAM users that have both ES instance viewing permissions and ES Agent conversation permissions can use ES Agent. Change operations reuse the RAM user's own instance operations permissions.

Note

ES Agent was commercialized at 12:00 (UTC+8) on August 3, 2026, and its billing method changed from free during the public beta to pay-as-you-go. After commercialization, the first time you enter ES Agent you must complete a one-time activation flow. After activation, both existing users and new users automatically receive a free quota of 10 million tokens, valid for 60 calendar days from the activation date, with no separate application required. You can view the token usage and the remaining free quota in real time in the ES Agent assistant panel.

Permissions

When a Resource Access Management (RAM) user uses ES Agent, the Alibaba Cloud account or an account with RAM administration permissions must grant the matching permissions to that user. Different Skills require different permissions, so grant them on demand according to the Skills that you actually use.

Important

After you grant the system access policy AliyunElasticsearchReadOnlyAccess, which is the Elasticsearch read-only access policy, the following operations that ES Agent requires are already included and need no separate grant:

  • elasticsearch:InvokeEsAgent: ES Agent conversation invocation.

  • elasticsearch:GetEsAgentUsage: token usage and free quota queries.

  • elasticsearch:ListStatsEventRecords: operations event statistics, which drives the badge in the Event Center and the alert response scenario.

If you want to follow the principle of least privilege and grant only the permissions that ES Agent requires instead of full read-only access, create the custom access policy described in the following sub-sections.

ES assistant access permissions

When a RAM user opens the ES assistant and the console displays the No operation permission. Check the permissions of the account. tip, which maps to the interface error code SubAccountNoPermission, grant access as follows.

  1. Log on to the RAM console, go to Permission Management > Policies, and create a custom access policy that contains the elasticsearch:InvokeEsAgent action. Include the instance list query action and the token usage query action as well. Otherwise, the Region and Instance ID drop-down lists on the context card come back empty, and the free quota usage block shows that the usage cannot be viewed without permission.

    {
      "Version": "1",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "elasticsearch:InvokeEsAgent",
            "elasticsearch:GetEsAgentUsage",
            "elasticsearch:ListInstance",
            "elasticsearch:DescribeInstance",
            "elasticsearch:ValidateSlrPermission"
          ],
          "Resource": "*"
        }
      ]
    }
  2. Go to Identity Management > Users, find the target RAM user, click Add Permissions, and attach the custom access policy to the user.

Diagnostic Skill permissions

The diagnostic Skill requires CloudMonitor and Elasticsearch read-only permissions. Log on to the RAM console, go to Identity Management > Users, find the target RAM user, and click Grant Permission under Permission Management to attach the following system access policies:

  • AliyunCloudMonitorReadOnlyAccess: the CloudMonitor read-only access policy.

  • AliyunElasticsearchReadOnlyAccess: the Elasticsearch read-only access policy.

Inspection Skill permissions

The inspection Skill depends on the service-linked role AliyunServiceRoleForElasticsearch. Scheduled inspection tasks use this service-linked role to read the cluster's monitoring metrics, cluster logs, configuration items, and other operations metadata. Complete the one-time SLR authorization on first use. For more information, see Prerequisites.

Instance management Skill permissions

The instance management Skill requires Elasticsearch instance management permissions and VPC permissions. Log on to the RAM console, create the following custom access policy, and attach it to the target RAM user.

{
  "Version": "1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "elasticsearch:CreateInstance",
        "elasticsearch:DescribeInstance",
        "elasticsearch:ListInstance",
        "elasticsearch:ListAllNode",
        "elasticsearch:RestartInstance",
        "elasticsearch:UpdateInstance",
        "vpc:DescribeVpcs",
        "vpc:DescribeVSwitches"
      ],
      "Resource": "*"
    }
  ]
}

Network management Skill permissions

The network management Skill requires Elasticsearch network configuration permissions, VPC permissions, and ECS permissions. Log on to the RAM console, create the following custom access policy, and attach it to the target RAM user.

{
  "Version": "1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "elasticsearch:DescribeInstance",
        "elasticsearch:TriggerNetwork",
        "elasticsearch:EnableKibanaPvlNetwork",
        "elasticsearch:DisableKibanaPvlNetwork",
        "elasticsearch:UpdateKibanaPvlNetwork",
        "elasticsearch:ModifyWhiteIps",
        "elasticsearch:OpenHttps",
        "elasticsearch:CloseHttps",
        "elasticsearch:UpdateKibanaSso",
        "vpc:DescribeVpcs",
        "vpc:DescribeVSwitches",
        "ecs:DescribeSecurityGroups"
      ],
      "Resource": "*"
    }
  ]
}

Billing

ES Agent provides AI-powered diagnostics and O&M recommendations based on a large language model, and is billed on a pay-as-you-go basis according to actual token consumption. The unit prices are subject to the prices on the Alibaba Cloud website. Commercialization officially started at 12:00 (UTC+8) on August 3, 2026, and the service was free during the public beta before that. After commercialization, you receive a free quota of 10 million tokens, valid for 60 days.

For scheduled inspection tasks, Basic Inspection Items do not incur token charges, whereas Advanced Inspection Items are billed based on token usage. For the specific inspection items, see the "Configure Scheduled Tasks" section in Use ES Agent.

Security and Compliance

ES Agent provides security assurance across three dimensions: permissions, operations, and data.

  • Permissions: On activation, ES Agent completes a one-time authorization of the service-linked role AliyunServiceRoleForElasticsearch. No further authorization prompt appears afterward, and you can revoke the authorization at any time in the RAM console. The role authorizes ES Agent to read operations metadata such as the cluster's monitoring metrics, cluster logs, and configuration items, and to automatically access OSS Buckets with the name prefix es-alicloud-* or tagged with es-alicloud. Change operations reuse the current account or RAM user's instance operations permissions, following the principle of least privilege.

  • Operations: All change operations (scaling, restarting, configuration changes, whitelist changes) require user confirmation in the UI before execution. All Skill invocations, parameters, and results are written to audit logs, which can be reviewed in the Operations Records panel for 7 days.

  • Data: During diagnosis, the model only uses desensitized operations metadata (monitoring metrics, log summaries, configuration items, cluster topology) and does not access business data within indices. Business data does not leave the instance.

FAQ

Q1: How are users who were already using the service during the public beta handled after commercialization?

After commercialization started at 12:00 (UTC+8) on August 3, 2026, users who enter ES Agent go through an activation flow. After activation, both existing users and new users automatically receive a free quota of 10 million tokens, valid for 60 calendar days, with no separate application required. Once the free quota is used up or expires, token consumption automatically switches to pay-as-you-go. This billing change applies only to the ES Agent service and does not affect the billing or the service of the Elasticsearch instances themselves.

Q2: What should I do if the diagnostic results are inaccurate?

You can keep asking follow-up questions in the conversation and supply details such as the target instance ID and the time range, so that the assistant can narrow the scope and analyze the problem again. If the result is still inaccurate, you can report it through the ticket system or through the Alibaba Cloud Elasticsearch customer service DingTalk group. The product team keeps iterating the Skills based on that feedback.

Q3: Can I integrate with external alert systems?

Currently, you can jump to ES Agent with one click from console alerts. Inspection results can be pushed to DingTalk, Feishu, and WeCom group chats. For the configuration method, see the "Configure IM Notification Channels" section in Use ES Agent. Direct API invocation is under planning.

Q4: Which ES versions are supported?

All online versions published in the Alibaba Cloud ES console are supported by default. Self-built ES is not currently supported.

Q5: Which sites are supported?

The China site (including overseas regions) supports ES Agent.

Q6: How long does a single diagnosis take?

In general, diagnosis results are available within a few minutes. Complex deep diagnoses or large-scale clusters may take longer. The Timeline displays progress in real time.