# Data resolution and retention

## Event data resolution <a href="#dataresolutionandretention-eventdataresolution" id="dataresolutionandretention-eventdataresolution"></a>

To allow for more efficient troubleshooting, metrics in operational data are available with high resolution, either 5-minute or 15-minute, and low resolution, 1-day.

{% hint style="info" %}
The VDI Experience license allows extra fine data resolution of VDI metrics at 30-second intervals. See the [#nqltimeselection-timegranularityandretention-1](https://docs.nexthink.com/platform/nexthink-query-language-nql/nql-syntax-overview/nql-time-selection#nqltimeselection-timegranularityandretention-1 "mention") documentation for details.
{% endhint %}

To access high-resolution data, you must use a timeframe expressed in minutes or hours in the `during past` clause.

```sql
devices during past 24h
| include session.events during past 24h 
| compute total_user_interaction = user_interaction_time.sum() 
| where total_user_interaction > 8h
| list device.name, total_user_interaction 
```

To access data in low-resolution, you must use a timeframe expressed in days in the `during past` clause.

```sql
devices during past 30d
| include session.events during past 30d 
| compute total_user_interaction = user_interaction_time.sum() 
| where total_user_interaction > 10d
| list device.name, total_user_interaction 
```

Contrary to metrics in operational data, trend data metrics are available only with low resolution, either 1-day or 7-days.

## Retention per data category <a href="#dataresolutionandretention-retentionperdatacategory" id="dataresolutionandretention-retentionperdatacategory"></a>

Data retention refers to the period of time for which the specific set of data is stored and accessible through dashboards and investigations. The following table summarizes the general rules of retention per data category. The retention periods represent the default platform settings. You can customize them on the [Data management](https://docs.nexthink.com/platform/user-guide/administration/content-management/data-management) page.

Refer to the [license](https://docs.nexthink.com/platform/user-guide/administration/system-configuration/license "mention") documentation to learn how changing data retention impacts your license count.

<table><thead><tr><th width="89">Data category</th><th width="137">Data subcategory</th><th width="246">Retention</th><th>Example</th></tr></thead><tbody><tr><td>Object</td><td>Inventory objects</td><td>By default, <strong>30 days</strong> from the time of the object’s last activity</td><td><p><code>devices</code></p><p><code>mobile_devices</code></p><p><code>users</code></p><p><code>binaries</code></p><p><code>packages</code></p></td></tr><tr><td>Object</td><td>Configuration objects</td><td><strong>Indefinite</strong>, until deleted by a Nexthink account</td><td><p><code>campaigns</code></p><p><code>remote_actions</code></p><p><code>workflows</code></p><p><code>monitors</code></p></td></tr><tr><td>Events</td><td>Operational data</td><td><p>By default, <strong>30 days</strong> from the time of the event</p><p><span data-gb-custom-inline data-tag="emoji" data-code="2139">ℹ️</span> Exceptions:</p><ul><li><code>execution.events</code>, <code>connection.events</code>, <code>connection.tcp_events</code> and <code>connection.udp_events</code> at high resolution are retained for 14 days. Additionally, you can only access a maximum of 8-days data in a single query.</li><li>30-second high-resolution data for VDI is only retained for the past 48 hours.</li><li><code>agent.conversations</code> are retained for up to 365 days. You can access a maximum of 90-days data in a single query.</li></ul></td><td><p><code>execution.events</code></p><p><code>execution.crashes</code></p><p><code>device_performance.events</code></p><p><code>device_performance.mobile_events</code></p><p><code>remote_action.executions</code></p><p><code>workflow.executions</code></p><p><code>web.events</code></p></td></tr><tr><td>Events</td><td>Trend data</td><td><p>Ranging from <strong>90 days</strong> to <strong>13 months</strong>, depending on the use case</p><ul><li>Software metering: 90 days</li><li>Web applications trends: 90 days</li><li>Remote action execution summaries: 13 months</li><li>Workflow execution summaries: 13 months</li><li>Custom trends: 13 months</li><li>DEX trends : 13 months</li></ul><p><span data-gb-custom-inline data-tag="emoji" data-code="2139">ℹ️</span> Exception:</p><p>Campaigns data (<code>campaign.*</code>) is stored indefinitely.</p></td><td><p><code>custom_trend.*</code></p><p><code>software_metering.events</code></p><p><code>remote_action.executions_summary</code></p><p><code>workflow.executions_summary</code></p><p><span data-gb-custom-inline data-tag="emoji" data-code="2139">ℹ️</span> Web applications and DEX trends are not available in NQL, they are only available in the related module dashboards.</p></td></tr><tr><td>Events</td><td>Audit logs</td><td><strong>180 days</strong> from the time of the event</td><td><code>platform.audit_logs</code></td></tr><tr><td>Events</td><td>Execution logs</td><td><strong>30 days</strong> from the time of the event</td><td><code>platform.custom_trends_logs</code><br><code>platform.data_export_logs</code></td></tr><tr><td>Events</td><td>Nexthink usage data</td><td><strong>90 days</strong> from the time of the event</td><td><code>usage.account_actions</code></td></tr></tbody></table>

{% hint style="info" %}
The `last_seen` field in the NQL does not account for all the device connections to the Nexthink instance (such as TCP handshakes or remote actions), so it is not a reliable indicator of device retention period. Refer to [NQL data model](https://docs.nexthink.com/platform/nql-data-model#device_device) and [Monitoring device last activity](https://edocs.nexthink.com/nexthink-infinity/infinity-specifications/monitoring-device-last-activity) for more information.
{% endhint %}

## Data availability in modules <a href="#dataresolutionandretention-dataavailabilityinmodules" id="dataresolutionandretention-dataavailabilityinmodules"></a>

Product modules allow you to access the object and event data described above. The available data value indicates how far back in the past you can retrieve the data for a given module.

| Module                              | Available data                                                                             |
| ----------------------------------- | ------------------------------------------------------------------------------------------ |
| Alerts overview                     | 30 days                                                                                    |
| Applications - desktop applications | 14 days                                                                                    |
| Applications - web applications     | <p>30 days - operational data</p><p>90 days - trend data</p>                               |
| Campaigns                           | 10 years                                                                                   |
| Desktop Virtualization              | <p>2 days - 30-second data resolution<br>30 days - 5-minute data resolution</p>            |
| Device View                         | 30 days\*                                                                                  |
| Diagnostic view                     | 14 days                                                                                    |
| Digital Experience                  | 395 days                                                                                   |
| Live Dashboards                     | <p>30 days - operational data</p><p>395 days - trend data</p>                              |
| Remote Actions                      | <p>30 days - operational data</p><p>395 days - trend data</p>                              |
| Software Metering                   | 90 days                                                                                    |
| Spark                               | <p>30 days (by default) - full conversations<br>90 days - summarized conversation data</p> |
| Workflows                           | 30 days                                                                                    |

\* The number of hours displayed on the page depends on your screen resolution.

{% hint style="info" %}
All time-related data displayed in the Nexthink web interface is converted to the user's time zone.
{% endhint %}

***

RELATED TOPIC

* [Data management](https://docs.nexthink.com/platform/user-guide/administration/content-management/data-management)
