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

# Anomaly Detection

> This section provides the purpose, elements, and actions performed on the Anomaly Detection pages.

This section provides the purpose, elements, and actions performed on the
**Anomaly Detection** pages.

## Purpose

The **Anomaly Detection** page provides real-time visibility into unusual
patterns, deviations, and potential security threats across cloud environments
by monitoring selected VPC/VNets for unusual behavioral patterns in network
traffic. It leverages advanced anomaly detection algorithms and integrates
IDS/IPS capabilities for proactive monitoring and operational resilience.
CoPilot learns baseline traffic behavior over a configurable learning period,
then raises anomalies when metrics deviate significantly from that baseline.
Anomalies are categorized by severity (Low, Medium, or High) and can trigger
alerts to configured notification channels.

## Elements

![Security: Anomaly Detection](https://docs.aviatrix.com/images/reference/ui/security/anomaly-detection.png)

* **Data Integrity and Anomaly Detection panel**: Dismissible banner noting that
  anomaly data may be extrapolated from the sampled data based on the configured
  NetFlow Sampling Rate, with a **NetFlow Settings** link.
* **Configuration**: Set the monitored VPC/VNets, detection sensitivity, and
  alert settings.
* **Monitored VPC/VNets**: Shows the count of VPC/VNets currently configured for
  anomaly detection.
* **Edit icon**: Opens the **Manage Monitored VPC/VNets** dialog to add or
  remove VPC/VNets and configure the learning period.
* **List icon**: Opens the **Monitored VPC/VNets** dialog to review learning and
  detection status for each monitored VPC/VNet. Visible only when at least one
  VPC/VNet is monitored.
* **`X in Learning Phase` chip**: Appears when `X` number of VPC/VNets are still
  in the learning phase. Click the chip to open the **Monitored VPC/VNets**
  dialog.
* **Alerts toggle**: Enables or disables anomaly alert notifications. Turning on
  the toggle opens a channel selection dialog.
* **Detection Sensitivity slider**: Sets how aggressively CoPilot flags
  deviations. Marks: **Low** (1), **Recommended** (3), **High** (5).
* **Save button**: Saves the configuration. Disabled when there are no pending
  changes. An **Unsaved Changes** chip appears when unsaved changes are present.
* **Dashboard**: View anomaly data for the selected time range. The dashboard
  appears only after at least one monitored VPC/VNet completes its learning
  period.
* **Date range picker**: Filters the dashboard by time period. Options: Last 60
  Minutes, Last 24 Hours, Last 7 Days (default), Last 30 Days.
* **Total Anomalies card**: Total anomaly count for the selected period.
* **VPC/VNets with Anomalies card**: Number of VPC/VNets that had at least one
  anomaly.
* **Metrics causing Anomalies card**: Number of distinct traffic metrics that
  triggered anomalies.
* **Anomalies by Severity chart**: Donut chart showing anomaly counts at Low,
  Medium, and High severity.
* **Anomalies by VPC/VNet chart**: Donut chart showing anomaly counts per
  VPC/VNet.
* **Anomalies by Top Metric chart**: Donut chart showing which traffic metrics
  triggered the most anomalies.
* **Anomalies Over Time chart**: Line chart showing anomaly counts over the
  selected period.
* **Total Anomalies (Cumulative) chart**: Line chart showing the running total
  of anomalies over the selected period.
* **Anomaly table**: Lists all anomaly events in the selected time range.

## Actions

> [accordion] View Anomalies
>
> Before viewing anomalies, ensure at least one monitored VPC/VNet has completed
> its learning period.
>
> To view anomalies:
>
> 1. Go to **Security** > **Anomaly Detection**.
> 2. Set the time range using the date range picker.
> 3. Click **Apply**.
> 4. Review the summary cards.
> 5. Inspect the charts.
> 6. Investigate individual anomalies.
> 7. Optionally, mark false positives by toggling the **Anomaly** switch for any
>    row.
>
> The anomaly table lists all anomaly events in the selected time range.
>
> ### Parameter Details
>
> | CoPilot Parameter Name | Description |
> | - | - |
> | Detected At | Link that opens the anomaly detail dialog for that event. |
> | VPC/VNet | The monitored VPC/VNet where the anomaly occurred. |
> | Cloud | The cloud provider of the VPC/VNet. |
> | Metrics | Number of traffic metrics that deviated for the event. Hover to see each metric and its severity. |
> | Severity | The highest deviation severity for the event (Low, Medium, or High). |
> | Anomaly | Toggle to mark the row as an anomaly or as not an anomaly (false positive). |

> [accordion] View Anomaly Details
>
> To view the details of a specific anomaly:
>
> 1. Go to **Security** > **Anomaly Detection**.
> 2. In the anomaly table, click the **Detected At** timestamp link for the event.
>
> The **Anomaly at \[timestamp]** dialog opens, showing the VPC/VNet, Severity, and
> a **Mark All As Anomaly** toggle, followed by a chart for each deviated metric
> comparing traffic against its tolerance band (colored by Low, Medium, or High
> severity) with the percent deviation from baseline.

> [accordion] Configure Anomaly Detection
>
> Before configuring anomaly detection, ensure you have `all_write` or
> `all_security_write` permissions in CoPilot.
>
> To configure anomaly detection:
>
> 1. Go to **Security** > **Anomaly Detection**.
> 2. In the **Configuration** section, click the edit icon next to **Monitored
>    VPC/VNets**.\
>    The **Manage Monitored VPC/VNets** dialog appears.
> 3. In the **Manage Monitored VPC/VNets** dialog, move VPC/VNets to the
>    **Monitored** list.
> 4. Set the **Learning Period** (in weeks; minimum 2, maximum 52).
> 5. Click **Save**.
> 6. Adjust the **Detection Sensitivity** slider to **Low**, **Recommended**, or
>    **High** based on your environment's tolerance for alert volume.
> 7. Turn on the **Alerts** toggle. In the **Add Alert Configuration: Anomaly
>    Detected** dialog, select notification **Recipients**, then click **Save**.
> 8. Click **Save** in the **Configuration** section to persist sensitivity,
>    monitored VPC/VNets, and alert settings.
>
> The number of monitored VPC/VNets updates with the new number of VPC/VNets
> configured for anomaly detection.
>
> > [!NOTE]
> >
> > VPC/VNets in the learning phase do not produce anomaly data. The dashboard
> > becomes visible only after the learning period ends for at least one monitored
> > VPC/VNet. View learning status for each VPC/VNet by clicking the list icon
> > next to **Monitored VPC/VNets**. In **Manage Monitored VPC/VNets**, the
> > **Learning Period** applies only to newly added VPC/VNets and does not change
> > the learning period for VPC/VNets already on the monitored list.

> [accordion] Check Learning Status
>
> To check learning status:
>
> 1. Go to **Security** > **Anomaly Detection**.
> 2. In the **Configuration** section, click the list icon next to **Monitored
>    VPC/VNets**.\
>    The **Monitored VPC/VNets** dialog appears.
> 3. Review the **Learning** and **Detection** columns for each row.
>
> The dialog table lists **VPC/VNet**, **Cloud**, **Region**, **Learning**
> (**Active** while the learning period is in progress, **Complete** after it
> ends), and **Detection** (**Active** when detection is running, or **Pending**
> with the expected completion date while learning is still in progress).
>
> > [!NOTE]
> >
> > **Detection** becomes **Active** after the learning period ends for that
> > VPC/VNet. VPC/VNets still in the learning phase show **Pending** with the
> > expected completion date in the **Detection** column.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.