Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex XDR

Create and run XQL queries with Agentic Assistant chat

Use natural language in Cortex Agentic Assistant Chat to generate and run Cortex Query Language (XQL) queries in Cortex XDR.

With the Agentic Assistant Chat, security analysts can query system datasets without writing manual XQL code. By typing plain English prompts, the assistant translates your intent into valid XQL, executes the search, and previews the results directly in your chat interface.

Core capabilities and actions

Action
Description

TextToXQL

Translates natural-language prompts into valid XQL syntax. This hidden system action cannot be removed or displayed in Agentic Assistant Hub.

Cortex - Run XQL Query

Runs an XQL query against your datasets and returns results.

System agents include Cortex - Run XQL Query by default. If you are using a custom agent, ensure the Cortex - Run XQL Query action is enabled; otherwise, the agent cannot run queries.

Data access and permission requirements

  • System datasets only: The TextToXQL action supports system datasets, but cannot create XQL queries for custom datasets. You can manually write a query for custom datasets and ask the agent to run the query.

  • Role-Based Access Control (RBAC): The TextToXQL action can generate XQL queries for datasets that you do not have permission to access, but the Cortex - Run XQL Query action can only execute if you have the necessary permissions for the dataset.

How to create and run XQL queries

1

Open Cortex Agentic Assistant Chat

Navigate to the Agentic Assistant Chat panel.

2

Prompt the assistant

Prompt the assistant using clear, intent-driven natural language.

Recommended prompts:

  • “Create an XQL query to…”

  • “Build an XQL query for…”

  • “Generate an XQL query that…”

For example:

  • “Build an XQL query to find failed login attempts from the past 24 hours.”

  • “Generate an XQL query for high-severity process executions on Workstation-01.”

3

Review and run

  1. Automatic or Manual Execution: The agent displays the generated XQL query. Depending on your instructions, it will execute automatically or wait for manual confirmation.

  2. Inspect Results: View result previews directly inside the chat window.

  3. Pivot to Detailed Search: Click the query link to pivot directly to the dedicated XQL Query Builder page to analyze full dataset outputs, modify stages, or save the query.

Running XQL queries manually through an agent does not consume compute units. This includes multi-step plans that create and run queries.

Last updated

Was this helpful?