> ## Documentation Index
> Fetch the complete documentation index at: https://scalehousesystems.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Audit Queries

> Query audit logs with natural language

## Overview

Use natural language to query your audit logs and get insights about compliance events.

## Example Queries

* "Show me all failed login attempts in the last week"
* "Who accessed patient records after hours?"
* "List all SQL command executions"
* "Show terminated employees with active access"

## Using Audit Queries

<Steps>
  <Step title="Open Query Interface">
    Navigate to **Audit Intelligence → Queries**.
  </Step>

  <Step title="Enter Query">
    Type your question in natural language.
  </Step>

  <Step title="Execute">
    Click **"Run Query"** to execute.
  </Step>

  <Step title="Review Results">
    View the query results and export if needed.
  </Step>
</Steps>

## Query Features

<CardGroup cols={2}>
  <Card title="Natural Language" icon="message-square">
    Ask questions in plain English
  </Card>

  <Card title="Filtering" icon="filter">
    Filter results by date, user, event type
  </Card>

  <Card title="Export" icon="download">
    Export query results to CSV or PDF
  </Card>

  <Card title="Save Queries" icon="bookmark">
    Save frequently used queries
  </Card>
</CardGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="Gap Detection" icon="shield" href="/docs/docs/audit-intelligence/gap-detection">
    Learn about gap detection
  </Card>

  <Card title="Alerts" icon="bell" href="/docs/docs/audit-intelligence/alerts">
    Set up alerts
  </Card>
</CardGroup>
