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

# Data sources

## Find a data source

Find a [data source](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#data-source) in the **Data Sources** list by name. You can also sort the list.

### Prerequisites

* You need a role with the **Can Read Data Source** permission. See [Permissions](https://zenskar.com/docs/20260301/product-modules/usage/reference/data-sources.md#permissions).

### Search for a data source by name

1. Go to **Usage** > **Data Sources**.
2. In **Search Data Source**, enter part of the name.
3. Select the data source from the results.

The screen of the data source opens.

### Sort the list

1. Go to **Usage** > **Data Sources**.
2. Click a column header. The list sorts by that column in ascending order.
3. Click the column header again to sort in descending order.
4. Click the column header a third time to remove the sorting.

You can sort by every column except **Connection Type** and **Status**. **Connection Type** shows **Sync** for a [synced data source](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#synced-data-source) and **Remote** for a [remote data source](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#remote-data-source). **Status** shows **Active**, **Failed**, or **Disabled**. **Failed** means that Zenskar cannot connect to the system. See [Fix a failed save](#fix-a-failed-save).

## Add a data source

Add a data source to read [usage](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#usage) from a system in your data infrastructure. Its [data-source connector](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#data-source-connector), connection settings, and access cannot change after you save it.

### Prerequisites

* You need a role with the **Can Create Data Source** and **Can Read Data Source** permissions. See [Permissions](https://zenskar.com/docs/20260301/product-modules/usage/reference/data-sources.md#permissions).
* You need the connection details of the system. The document of each data-source connector lists what its connection needs. See [Data-source connectors](https://zenskar.com/docs/20260301/product-modules/usage/concepts/data-sources.md#data-source-connectors-what-a-data-source-connects-to).

### Set up the source

> [!CAUTION]
>
> You cannot delete a data source. You cannot change its data-source connector, connection settings, or access after you save it. Check the settings before you save.

1. Go to **Usage** > **Data Sources**.
2. Click **ADD DATA SOURCE**. The **Add New Data Source** screen opens.
3. Under **Set Up Source**, in **Source Name**, enter a name. The name can contain letters, digits, underscores, hyphens, and spaces.
4. In **Source Type**, select the data-source connector.
5. Under **Source Config**, enter the connection settings. The fields depend on the data-source connector.
6. Under **Source Access**, select **Directly from Source** for a remote data source, or **Sync to Zenskar** for a synced data source. When the data-source connector allows only one access, the dashboard selects it for you. When both are possible, **Directly from Source** is selected by default.
7. Click **SAVE SOURCE**.

For a remote data source, the dashboard confirms the save. Click **BACK** to return to **Data Sources**.

For a synced data source, the screen of the data source opens. Zenskar connects to the system. It lists the tables that it can copy. This can take a few minutes. Choose the tables next. See [Choose the tables and columns to sync](#choose-the-tables-and-columns-to-sync).

### Fix a failed save

* Zenskar does not save the data source when **Source Name** is empty or has other characters. Correct the name.
* Zenskar does not save the data source when a required connection setting is missing. Fill in each marked field.
* When Zenskar cannot connect to the system, the screen of the data source shows the reason instead of the tables. Add a new data source with corrected settings.

## Choose the tables and columns to sync

Choose which tables and columns of a synced data source Zenskar copies. A [billable metric](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#billable-metric) can read only the synced usage data. Use the same steps to change the choice later.

### Prerequisites

* You need a role with the **Can Update Data Source** and **Can Read Data Source** permissions. See [Permissions](https://zenskar.com/docs/20260301/product-modules/usage/reference/data-sources.md#permissions).

### Choose the tables

1. Go to **Usage** > **Data Sources**. Click the synced data source. The **Sync Required Tables & Columns** screen lists the tables that Zenskar can copy.
2. Turn on the switch of each table to sync. Turning on a table syncs all its columns. To sync all tables, turn on the switch in the column header.
3. Click **FINISH SETUP**.

Zenskar saves the choice. The **Data Sources** list opens.

### Choose the columns, the cursor column, and the primary key

1. On the **Sync Required Tables & Columns** screen, click the add icon next to the name of the table. The **Edit Table** window lists the columns of the table, with **Column Name** and **Data Type**.
2. Turn on the switch of each column to sync. To sync all columns, turn on the switch in the column header.
3. Optional: Under **Cursor**, select the [cursor column](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#cursor-column). It must be a column that you sync.
4. Under **Primary Key**, select one column.
5. Click **SAVE**.
6. Click **FINISH SETUP**.

Without a cursor column, each sync replaces the whole table in the synced usage data. See [Cursor columns](https://zenskar.com/docs/20260301/product-modules/usage/concepts/data-sources.md#cursor-columns).

## Change the sync frequency

Change how often Zenskar copies the data of a synced data source.

### Prerequisites

* You need a role with the **Can Update Data Source** and **Can Read Data Source** permissions. See [Permissions](https://zenskar.com/docs/20260301/product-modules/usage/reference/data-sources.md#permissions).

### Change the frequency

1. Go to **Usage** > **Data Sources**. Click the synced data source.
2. Under **SYNC INFO**, in **Select Frequency**, select how often to sync: every 1, 2, 3, 4, 6, 12, or 24 hours. **Last Synced** shows the time of the latest sync.
3. Click **FINISH SETUP**.

Zenskar saves the [sync frequency](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#sync-frequency). The **Data Sources** list opens.

## Sync now, pause, or resume syncing

Start a sync of a synced data source right away, or stop and restart its scheduled syncs.

### Prerequisites

* To sync now, you need a role with the **Can Read Data Source** permission. To pause or resume syncing, the role also needs the **Can Update Data Source** permission. See [Permissions](https://zenskar.com/docs/20260301/product-modules/usage/reference/data-sources.md#permissions).

### Sync now

1. Go to **Usage** > **Data Sources**. Click the synced data source.
2. Click **SYNC NOW**.

Zenskar starts a sync, between the scheduled syncs.

### Pause or resume syncing

1. Go to **Usage** > **Data Sources**. Click the synced data source.
2. Click **PAUSE SYNC**. To restart scheduled syncs later, click **RESUME SYNC**.

While syncing is paused, the synced usage data stays as it was at the last sync. A billable metric reads that synced usage data.

## Refresh a data source

Refresh a synced data source when the system has new kinds of records or new fields. Zenskar then shows them as new tables and columns.

### Prerequisites

* You need a role with the **Can Read Data Source** permission. See [Permissions](https://zenskar.com/docs/20260301/product-modules/usage/reference/data-sources.md#permissions).

### Refresh the tables and columns

1. Go to **Usage** > **Data Sources**. Click the synced data source.
2. Click **REFRESH SOURCE**. Zenskar reads the system again. This can take a few minutes.

The **Sync Required Tables & Columns** screen lists the current tables. To sync a new table or column, choose it. See [Choose the tables and columns to sync](#choose-the-tables-and-columns-to-sync).

Refreshing does not change the connection settings.


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