> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/documentation/use-octoxlabs/settings/product-settings/advanced-settings.md).

# Advanced Settings

Reference for the Advanced Settings page: data retention, password and session rules, discovery behaviour, device merge recommendations and the daily Asset Explorer schedule.

**Advanced Settings** holds the platform-wide switches that change how long data is kept, how sign-in behaves, how discoveries run and how OctoXLabs suggests merging duplicate devices. The page has two tabs: **Advanced** and **Asset Explorer Schedule**. The defaults suit most installations, so change a setting only when you have a reason.

### Before you begin

* Applies to: OctoXLabs 6.x. From 6.9.0 only users with the Admin role can open and change this page.
* Required permission to open the page: `configurations.view_advancedconfiguration`.
* Required permission to save either tab: `configurations.change_advancedconfiguration`.
* Go to **Settings** > **Product Settings** > **Advanced Settings**. Both tabs have their own **Save** button, and saving one tab does not save the other.

### Advanced tab

#### Data retention and sign-in

| Setting                                  | Type           | Default | Description                                                                                                                                                                                             |
| ---------------------------------------- | -------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Discovery Keep Days (Unlimited: 0)**   | Number of days | 0       | Discoveries older than this are deleted automatically once a day. `0` keeps them all.                                                                                                                   |
| **Log Keep Days (Unlimited: 0)**         | Number of days | 0       | System logs older than this are cleared automatically once a day. `0` keeps them all.                                                                                                                   |
| **Password Expire Days (Unlimited: 0)**  | Number of days | 0       | A local user whose password is older than this is refused at sign-in with a password-expired error, and the event is logged. Directory (LDAP) users are not affected. `0` means passwords never expire. |
| **Remember Me Lifetime (Days)**          | Number of days | 30      | How long a sign-in lasts when the user selects the remember-me option on the sign-in page. The longest allowed is 90 days.                                                                              |
| **Mandatory 2FA**                        | Checkbox       | Off     | When on, all users must set up two-factor authentication before they can use the platform. See Users.                                                                                                   |
| **License Last Seen Days (All Days: 0)** | Number of days | 0       | When set, license counts only include assets whose last seen date is within this many days. `0` counts all assets. Saving a new value recalculates the license counts.                                  |

After you save a changed **Discovery Keep Days** or **Log Keep Days**, an information box asks whether to delete records older than the new limit now. Select **Run Cleanup** to delete them immediately. If you ignore the box, the records are deleted at the next daily run. The console shows **Cleanup started successfully.**

#### Discovery behaviour

| Setting                                        | Type     | Default | Description                                                                                                                                                                       |
| ---------------------------------------------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Soft Run**                                   | Checkbox | Off     | Runs discovery without multi-threading.                                                                                                                                           |
| **Keep Debug Data**                            | Checkbox | Off     | Keeps the raw connector data in Elasticsearch after aggregation instead of removing it. Use it to troubleshoot an adapter and turn it off afterwards, because it uses disk space. |
| **Enable Custom Adapter**                      | Checkbox | Off     | Turns on custom data in the devices module. While on, every discovery adds your custom field values to devices and re-applies data rules. See Custom Adapter Settings.            |
| **Clear daily stale discoveries**              | Checkbox | On      | After a full discovery, deletes the other discoveries of the same day, so only the latest of the day is kept.                                                                     |
| **Add Adapterized Adapters to Full Discovery** | Checkbox | On      | When on, adapters and connections that have their own schedule also run during a full discovery. When off, they run only on their own schedule. See Discovery Schedule.           |
| **Compress Indices**                           | Checkbox | On      | After a discovery, force-merges the Elasticsearch indices to reduce segment count and storage. Turn it off if the force-merge step is too slow on large indices.                  |

#### Post Validation

| Setting                           | Type     | Default | Description                                                                                                                                                                                             |
| --------------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Enable Linux Device Separator** | Checkbox | Off     | Decides whether a Linux device is a Workstation or a Server. When on, Linux devices that have a desktop environment installed (GNOME, KDE, Cinnamon, MATE or Xfce) are set to the Workstation category. |
| **MDM Hostname Aggregation**      | Checkbox | Off     | Enables VMware AirWatch MDM data for hostname aggregation.                                                                                                                                              |

#### Merge Recommendation

OctoXLabs compares devices after each discovery and suggests which records may be the same device. These settings choose which attributes it compares.

| Setting                                         | Type     | Default | Description                                                                                                                                                                          |
| ----------------------------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **First N Character Recommendation**            | Number   | 15      | How many leading characters of the hostname are compared when suggesting merges.                                                                                                     |
| **Last N Character Recommendation**             | Number   | 15      | How many trailing characters of the hostname are compared.                                                                                                                           |
| **Enable Device Ip Merge Recommendation**       | Checkbox | On      | Suggests merges for devices that share an IP address.                                                                                                                                |
| **Enable Device Mac Merge Recommendation**      | Checkbox | On      | Suggests merges for devices that share a MAC address.                                                                                                                                |
| **Enable Device Hostname Merge Recommendation** | Checkbox | On      | Suggests merges for devices with similar hostnames.                                                                                                                                  |
| **Enable Auto Merge**                           | Checkbox | Off     | Merges recommendations automatically instead of listing them for review. The primary record is the one with more adapters. If the counts are equal, the one seen most recently wins. |

{% hint style="warning" %}
**Enable Auto Merge** changes your inventory without asking. Review the merge recommendations for a few discoveries first, then turn it on.
{% endhint %}

Select **Save**. The console shows **Advanced configurations has been saved**.

### Asset Explorer Schedule tab

The Asset Explorer feed can run automatically every day. This tab decides whether it does and at what time.

| Setting                   | Type     | Default | Description                                                                                                                    |
| ------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------ |
| **Enable Daily Schedule** | Checkbox | Off     | When on, the Asset Explorer feed runs automatically every day at the start time. When off, the explorer data is not refreshed. |
| **Start Time**            | Time     | Empty   | Required when the schedule is on. The time of day the feed starts.                                                             |

Select **Save**. The console shows **Explorer schedule saved successfully.** See Asset Explorer.

### Troubleshooting

| Symptom or error message                                               | Cause                                                 | Fix                                                      |
| ---------------------------------------------------------------------- | ----------------------------------------------------- | -------------------------------------------------------- |
| Old discoveries are still there after lowering **Discovery Keep Days** | The cleanup runs once a day.                          | Select **Run Cleanup** after saving.                     |
| Custom data or data rules do not update after a discovery              | **Enable Custom Adapter** is off.                     | Turn it on and run a discovery.                          |
| A user cannot sign in after you set **Password Expire Days**           | The password is older than the limit.                 | Change the user's password. See Users.                   |
| Discoveries take very long at the end                                  | **Compress Indices** is on and the indices are large. | Turn **Compress Indices** off.                           |
| Asset Explorer data is out of date                                     | The daily schedule is off or has no start time.       | Enable **Enable Daily Schedule** and set **Start Time**. |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Discovery Schedule</strong></td><td>Set when discoveries run.</td><td></td></tr><tr><td><strong>Custom Adapter Settings</strong></td><td>Add your own fields to devices.</td><td></td></tr><tr><td><strong>Discovery and Aggregation</strong></td><td>See how merging and aggregation work.</td><td></td></tr><tr><td><strong>Users</strong></td><td>Manage accounts and two-factor authentication.</td><td></td></tr></tbody></table>
