---
id: flex
title: Flex
sidebar_label: Flex
slug: /help/docs/integrations/sumo-apps/flex/
canonical: https://www.sumologic.com/help/docs/integrations/sumo-apps/flex/
---
import useBaseUrl from '@docusaurus/useBaseUrl';
import Iframe from 'react-iframe';
The Sumo Logic app for Flex enables you to gain an efficient and centralized log analytics framework capable of managing enterprise-wide cloud-scale log ingestion without cost concerns. It aligns cost to business value and overcomes today’s ever-growing data challenge by only charging customers for data storage and analytics executed. This revolutionary new consumption model provides customers with a scalable and efficient log analytics architecture that grows to manage enterprise-wide and cloud-scale log ingestion without the risk of runaway costs.
:::training Micro Lesson
Learn how to view the Flex app dashboards.
:::
## Log types
- [Log and Tracing Flex Index](/docs/manage/ingestion-volume/data-volume-index/log-tracing-data-volume-index/)
- [Metrics Flex Index](/docs/manage/ingestion-volume/data-volume-index/metrics-data-volume-index/)
- [Log Search Audit Index](/docs/manage/security/audit-indexes/search-audit-index/#log-search-audit-index-message-fields)
:::info
By default, [Flex Index](/docs/manage/ingestion-volume/data-volume-index/log-tracing-data-volume-index/) and [Search Audit Index](/docs/manage/security/audit-indexes/search-audit-index/#log-search-audit-index-message-fields) are enabled to collect data for the Flex app.
:::
### Log samples
Click to expand
```json
[
{
"field":"sourcename_and_tier_volume",
"dataTier":"Flex",
"sizeInBytes":11555,
"count":1
},
{
"field":"collector_and_tier_volume",
"dataTier":"Flex",
"sizeInBytes":366,
"count":1
},
{
"field":"source_metrics_volume",
"dataTier":"Flex",
"sizeInBytes":4463,
"count":47
},
{
"field":"source_and_tier_volume",
"dataTier":"Flex",
"sizeInBytes":731,
"count":1
},
{
"field":"sourcehost_metrics_volume",
"dataTier":"Flex",
"sizeInBytes":4973,
"count":47
},
{
"field":"sourcecategory_metrics_volume",
"dataTier":"Flex",
"sizeInBytes":5362,
"count":47
},
{
"field":"PDET/CIS/AWS/Vanta/Flow",
"dataTier":"Flex",
"sizeInBytes":70759,
"count":126
},
{
"field":"collector_volume",
"dataTier":"Flex",
"sizeInBytes":262,
"count":1
},
{
"field":"sourcename_metrics_volume",
"dataTier":"Flex",
"sizeInBytes":5481,
"count":47
},
{
"field":"collector_metrics_volume",
"dataTier":"Flex",
"sizeInBytes":5159,
"count":47
},
{
"field":"view_volume",
"dataTier":"Flex",
"sizeInBytes":364,
"count":1
},
{
"field":"",
"dataTier":"Flex",
"sizeInBytes":333,
"count":19
},
{
"field":"PDET/CIS/AWS/GuardDuty",
"dataTier":"Flex",
"sizeInBytes":30471,
"count":15},
{
"field":"sourcehost_and_tier_volume",
"dataTier":"Flex",
"sizeInBytes":1158,
"count":1
},
{
"field":"view_and_tier_volume",
"dataTier":"Flex",
"sizeInBytes":546,
"count":1
},
{
"field":"PDET/CIS/AWS/CloudTrail/Analytics",
"dataTier":"Flex",
"sizeInBytes":62273,
"count":70
},
{
"field":"sourcecategory_volume",
"dataTier":"Flex",
"sizeInBytes":6485,
"count":1
},
{
"field":"sourcehost_volume",
"dataTier":"Flex",
"sizeInBytes":794,
"count":1
},
{
"field":"sedemostag/events",
"dataTier":"Flex",
"sizeInBytes":22790,
"count":19
},
{
"field":"source_volume",
"dataTier":"Flex",
"sizeInBytes":497,
"count":1
}
]
```
### Sample queries
```sumo title="Ingest Volume - GB/Day"
_index=sumologic_volume
| parse regex "(?\{[^\{]+\})" multi
| json field=data "field","dataTier","sizeInBytes","count" as sourcecategory, dataTier, bytes, count
| where _sourceCategory matches "sourcecategory_and_tier_volume" and dataTier matches "Flex"
| bytes/1024/1024/1024 as gbytes
| sum(gbytes) as gbytes
| ((queryEndTime() - queryStartTime())/(1000*60*60*24)) as duration_in_day
| gbytes / duration_in_day as %"GB/Day"
| fields %"GB/Day"
```
For more examples, refer to [Log and Tracing Data Volume Index](/docs/manage/ingestion-volume/data-volume-index/log-tracing-data-volume-index/) and [Metrics Data Volume Index](/docs/manage/ingestion-volume/data-volume-index/metrics-data-volume-index/).
## Installing the Flex app
### Prerequisite
Enable both the Flex Index (`sumologic_volume`) and the Search Audit Index (`_view = sumologic_search_usage_per_query`) before installation. See [Flex Index](/docs/manage/ingestion-volume/data-volume-index/) and [Enable the Search Audit Index](/docs/manage/security/audit-indexes/search-audit-index/#enable-the-search-audit-index) for instructions.
The Flex app will be pre-installed for all Flex users.
1. Navigate to **App Catalog > Installed Apps** to find the installed Flex app.
1. Click the **Flex** app tile.
1. Go to **What's Included > Dashboards: View content in Library** to preview the dashboards.
If you do not have the Flex app installed, follow the steps below.
import AppInstallNoDataSourceV2 from '../../reuse/apps/app-install-index-apps-v2.md';
## Viewing Flex app dashboards
import ViewDashboards from '../../reuse/apps/view-dashboards.md';
### Overview
The **Flex - Overview** dashboard displays the amount of data that you are ingesting and scanning in logs. It also helps you understand how much data you are ingesting in Metrics and Tracing.
### Capacity Utilization
The **Flex - Capacity Utilization** dashboard displays the subscribed, actual, and percentage capacity utilization for logs and metrics.
### Credits Consumed
The **Flex - Credits Consumed** dashboard provides visibility into the total amount of [Sumo Logic Credits](/docs/manage/manage-subscription/sumo-logic-credits-accounts) consumed by your organization. This allows you to monitor and control search costs.
:::note
The `credits_conversion` parameter indicates the credits consumed per 1 GB of scan. The credits conversion used in the dashboard and saved searches might be different from what is defined in your contract (Credits Table) based on your account subscription type, so update this parameter for accurate calculation. Check with your account executive to determine this value for your account.
:::
### Feature Level Scan Volume
The **Flex - Feature Level Scan Volume** dashboard provides visibility into the scan volume at a feature level to monitor and control cost at a feature level.
:::note
The `credits_conversion` parameter indicates the credits consumed per 1 GB of scan. The credits conversion used in the dashboard and saved searches might be different from what is defined in your contract (Credits Table) based on your account subscription type, so update this parameter for accurate calculation. Check with your account executive to determine this value for your account.
:::
### Log Spikes
The **Flex - Log Spikes** dashboard helps to review details of your data ingested for logs.
### Logs
The **Flex - Logs** dashboard helps you see your log ingest volume between default and non-default indexes, along with the predicted growth. This dashboard also provides details about the Flex scan and predicted growth for scan volume.
### Metrics
The **Flex - Metrics** dashboard helps you review the metrics details of your data ingestion and identify areas of high-volume ingestion.
### Tracing
The **Flex - Tracing** dashboard helps to review tracing details of your data ingest and to identify areas of high-volume ingest.
## Create monitors for the Sumo Logic Flex app
import CreateMonitors from '../../reuse/apps/create-monitors.md';
### Flex app alerts
| Name | Description | Alert Condition | Recover Condition |
|:--|:--|:--|:--|
| `Flex - Collector Ingestion Spike Detection` | This alert is generated when the delta of collector log ingestion for the previous day and today is greater than the defined threshold percentage. | Count > 100 | Count < = 100 |
| `Flex - Daily Credit Budget Exhaustion Alert` | This alert triggers when the total daily credit consumption crosses the set threshold limit to prevent budget depletion and unexpected cost overruns. | Count > 75 | Count < = 75 |
| `Flex - Daily Data Ingestion Capacity Exceeded Alert` | This alert is triggered when the daily data ingestion value exceeds the set threshold value. | Count > 75 | Count < = 75 |
| `Flex - Data Scan Volume Threshold Breach` | This alert is generated when the daily average scan volume goes above the set threshold value. | Count > 100 | Count < = 100 |
| `Flex - Expensive Query Detection Alert` | This alert is triggered when consumed credits for any specific query cross the set threshold value. | Count > 5 | Count < = 5 |
## Upgrade/Downgrade the Flex app (Optional)
import AppUpdate from '../../reuse/apps/app-update.md';
## Uninstalling the Flex app (Optional)
import AppUninstall from '../../reuse/apps/app-uninstall.md';