Manage the Graph Search Query Library - Learn more about the Cortex Cloud Graph Search Query Library to manage your queries. - Administrator Guide - Cortex - Cortex CLOUD

Cortex Cloud Posture Management Documentation

Product
Cortex Cloud Application Security > Cortex CLOUD
License
Cloud Posture Management
Creation date
2025-01-22
Last date published
2026-06-10
Category
Administrator Guide
Abstract

Learn more about the Cortex Cloud Graph Search Query Library to manage your queries.

Prerequisite

Graph Search requires View or View/Edit RBAC permissions for Graph Search under Investigation & ResponseSearch.

Cortex Cloud provides as part of Graph Search a Query Library for saving and managing your own queries, queries shared with you, and built-in Graph Search queries provided by Palo Alto Networks to help illustrate how to build meaningful Graph Search queries on your data. When creating a query in Graph Search or managing your Graph Search queries from the Query Center, you can save queries to your personal query library as part of the Query Library. You can also decide whether the Graph Search query is shared with others (on the same tenant) in their Query Library or unshare it, so it is only visible to you. You can also view the Graph Search queries that are shared by others (on the same tenant) in your Query Library.

The Query Library is accessible from the Graph Search page. By default, it's open as a separate pane at the bottom of the page. Whenever the Query Library is closed, you can always click Query Library at the top right corner of the page to reopen it.

The Query Library consists of two tables called Query Library (default) and My Recents, which you can toggle. The Query Library table lists all the Graph Search queries available in your Query Library, while the My Recents table only lists the Graph Search queries that you've run from the Graph Search page, Query Library table, My Recents table, and Query Center.

The queries listed in your Query Library table have different icons to help you identify the different states of the queries:

  • unshared-query-icon.pngCreated by me and unshared.

  • query-created-by-me-shared-icon.pngCreated by me and shared.

  • query-created-by-someone-else-shared.pngCreated by someone else and shared.

  • PANW_Query.pngCreated by Palo Alto Networks.

Graph Search queries can be added to the Query Library in multiple ways.

  1. Save a query to your personal query library.

    You can do this in following ways:

    • From Graph Search in the Query Builder

      1. Select Investigation & ResponseSearchQuery BuilderGraph Search.

      2. From inside the Graph Search query interface at the top of the Graph Search page, click Select to open the entity picker dialog box, and define the parameters of your query.

      3. Click Search to run your query and view the query results.

      4. Click Save Query.

    • From Graph Search in the My Recents table of the Query Library

      1. Select Investigation & ResponseSearchQuery BuilderGraph Search.

      2. Click Query Library.

      3. Toggle to My Recents to open your recent queries.

      4. Right-click anywhere in the Graph Search query row, and select Save query to library.

    • From the Query Center

      1. Select Investigation & ResponseSearchQuery Center.

      2. Locate the Graph Search query that you want to save to the Query Library.

      3. Right-click anywhere in the Graph Search query row, and select Save query to library.

  2. Set these parameters:

    • Query Name: Specify a unique name for the Graph Search query. Query names must be unique in both private and shared lists, which includes other people’s queries.

    • Query Description (Optional): Specify a descriptive name for your Graph Search query.

    • Labels (Optional): Specify a label that is associated with your Graph Search query. You can add a label and then select Create Label, or select a label from the list, if any exist from a previous query. Adding a label to your Graph Search query enables you to search for queries using this label in the Query Library.

    • Share with others: You can either set the Graph Search query to be private and only accessible by you (default) or move the toggle to Share with others the query, so that other users using the same tenant can access the query in their Query Library.

  3. Click Save.

    A notification appears confirming that the query was saved successfully to the library, and closes on its own after a few seconds.

    The Graph Search query that you added is now listed as the first entry in the Query Library.

As needed, you can return to your queries in the Query Library to manage your queries in both the Query Library and My Recents tables. Here are the actions available to you, where the options differ depending on the table and states of the query:

  • Filter the list of queries using the filters displayed on the column headings of the table.

  • Run: Run the Graph Search query from either the Query Library and My Recents tables. This pivot (right-click) option will close the Query Library to display the query results.

  • Save as new: Duplicate the query and save it as a new query. This pivot (right-click) option is only available from the Query Library table for all queries.

  • Save query to library: This pivot (right-click) option is only available from the My Recents table.

  • Share with others: If your query is currently unshared, you can share with other users on the same tenant your query, which will be available in their Query Library. This pivot (right-click) option is only available from the query menu of the Query Library table when your query is unshared.

  • Unshare: If your query is currently shared with other users, you can Unshare the query and remove it from their Query Library. This pivot (right-click) option is only available from the query menu of the Query Library table when your query is shared with others. You can only Unshare a query that you created. If another user created the query, this option is disabled in the query menu.

  • Remove the query. You can only remove queries that you created. If another user created the query or for Palo Alto Networks, this pivot (right-click) option is disabled in the query menu.