Sola Docs (Beta)
Sign up nowContact Us
  • Getting Started
    • Welcome
    • Quickstart
    • Overview
    • Sola AI
    • App Gallery
  • What’s New
    • May 20, 2025
    • May 14, 2025
    • April 20, 2025
  • Workspace
    • Workspace Home
    • Data Sources
      • Amazon Web Services (AWS)
      • Google Cloud Platform (GCP)
      • Microsoft Azure
      • Google Workspace
      • GitHub Cloud
      • Okta
      • MongoDB Atlas
      • Wiz
    • Apps
      • Queries
      • Canvases
      • Alerts
      • Workflows (coming soon)
  • System Management
    • Settings
  • Resources
    • Glossary
    • FAQs
Powered by GitBook
LogoLogo

Company

  • Join the waitlist
  • Website
  • Careers

Resources

  • Trust Center
  • Contact Support

Policies

  • Privacy Policy
  • Terms & Conditions

© 2025 Sola Security, Inc.

On this page
  • Creating queries
  • Publishing queries
  • Managing queries

Was this helpful?

  1. Workspace
  2. Apps

Queries

Query your security data for insights

PreviousAppsNextCanvases

Last updated 29 days ago

Was this helpful?

Queries help you analyze security risks by retrieving relevant data from your connected sources. Querying your data allows you to explore your security posture across different environments, detect potential threats, and uncover critical security insights.

Queries are one of the building blocks that make up an app, alongside canvases, alerts, and workflows (coming soon).

Creating queries

There are two ways to create queries:

  • Use Sola AI to ask security-related questions in natural language and generate queries automatically.

  • Write your queries from scratch using the SQL query editor.

Sola AI can help you identify the right tables and columns that contain the data you need or refine SQL syntax for more accurate results.

Once created, queries can be saved, published, and modified to refine your insights over time.

Publishing queries

A query extracts a specific dataset from your connected data sources. Publishing a query saves the retrieved dataset as a table in your app. This makes the data set available across your app for:

  • Canvases - Turn query results into charts, graphs, and tables.

  • Alerts - Set up alerts based on query results.

  • Workflows (coming soon) - Automate security actions.

Managing queries

The Query Library is where you can access all queries in your app.

Queries can be:

  • Published - Available for use across the app’s building blocks—canvases, alerts, and workflows—and accessible to all app members.

  • Private drafts - Visible only to you until shared.

Queries have two modes:

  • View mode - Displays the last published version of the query.

  • Edit mode - A real-time shared draft, where multiple users can collaborate, edit together, and see changes live before publishing.

Edits are only applied and visible to all app members once published. When you publish, all changes you and others have made are published together.

In the query library, depending on your role permission, you can:

  • View all available queries in your app.

  • Create and modify queries.

  • Duplicate a query to modify it without changing the original.

  • Delete a query. Note: This action cannot be undone. Assets using the query, such as canvases or alert rules, will break or stop working.

To manage your app role permissions, go to Workspace Settings > App Permissions.

Pro tip: Refine your SQL queries with Sola AI

  • Optimize - Improve query efficiency.

  • Explain - Understand what the query does.

  • Debug - Identify syntax issues and get suggested fixes.

Pro tip: Enhance your SQL queries with Sola AI

Access Sola AI from the query sidebar, or use the AI icon next to Run Query for quick actions:

Query real-time collaboration
Public and private queries in query library
Query real-time collaboration
Public and private queries in query library