> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xdr-3.x/cortex-xdr-3.x-documentation/data-management/broker-vm/set-up-and-configure-broker-vm/broker-vm-data-collector-applets/activate-ftp-collector.md).

# Activate FTP Collector

{% hint style="info" %}

### Notice

Ingesting logs and data from external sources requires a Cortex XDR Pro per GB license.
{% endhint %}

{% hint style="info" %}

### Note

This data source is only available in your tenant if the tenant was activated before October 1, 2025 with an active Cortex XDR Pro per GB license.
{% endhint %}

The Broker VM provides a FTP Collector applet that enables you to monitor and collect logs from files and folders via FTP, FTPS, and SFTP directly to your log repository for query and visualization purposes. A maximum file size of 500 MB is supported. After you activate the FTP Collector applet on a Broker VM in your network, you can collect files as datasets (`<Vendor>_<Product>_raw`) by defining the following.

* FTP, FTPS, or SFTP (default) connection details with the path to the folder containing the files that you want to monitor and upload to Cortex XDR .
* Settings related to the list of files to monitor and upload to Cortex XDR , where the log format is either Raw (default), JSON, CSV, TSV, PSV, CEF, LEEF, Corelight, or Cisco. Once the files are uploaded to Cortex XDR , you can define whether in the source directory the files are renamed or deleted.

{% hint style="warning" %}

### Prerequisite

* [Set up and configure Broker VM](/cortex-xdr-3.x/cortex-xdr-3.x-documentation/data-management/broker-vm/set-up-and-configure-broker-vm.md).
* Ensure that the user permissions for the FTP, SFTP, or FTPS include the ability to rename and delete files in the folder that you want to configure collection.
* When setting up an FTPS Collector with a server using a Self-signed certificate, you must upload the certificate first to the Broker VM as a Trusted CA certificate.
  {% endhint %}

### How to activate the FTP Collector

1. Select Settings → Configurations → Data Broker → **Broker VMs**.
2. Do one of the following:
   * On the **Brokers** tab, find the Broker VM, and in the **APPS** column, left-click **Add** → **FTP Collector**.
   * On the **Clusters** tab, find the Broker VM, and in the **APPS** column, left-click **Add** → **FTP Collector**.
3. Configure the **FTP Collector** settings.

<details>

<summary>FTP Connection</summary>

| Field                        | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Type                         | Select the type of FTP connection as **FTP**, **SFTP**, or **FTPS**.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Host                         | Enter the hostname, IP address, or FQDN of the FTP server. When configuring a **FTPS** Collector, you must specify the FQDN.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Port                         | Enter the FTP port number.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Username                     | Enter the username to login to the FTP server.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Password                     | Enter the password to login to the FTP server.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| SSH Key-Based Authentication | <p>This checkbox is only displayed when setting a <strong>SFTP</strong> Collector, which works with both <strong>Username</strong> and <strong>Password</strong> authentication or <strong>SSH Key-Based Authentication</strong>. You can either leave this checkbox clear and set a <strong>Username</strong> and <strong>Password</strong> (default) or select <strong>SSH Key-Based Authentication</strong> to <strong>Browse</strong> to a <strong>Private Key</strong>. When this connection is established with a server using a Self-signed certificate, you must upload it first to the Broker VM as a Trusted CA Certificate.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>When configuring an SFTP connection, Cortex XDR expects the private key to be in the RSA format that is included in the <strong><code>-----BEGIN RSA PRIVATE KEY-----</code></strong> tag. Cortex XDR does not support providing the private key in the OpenSSH format from the <strong><code>-----BEGIN OPENSSH PRIVATE KEY-----</code></strong> tag.</p><p>When using <strong><code>ssh-keygen</code></strong> using a Mac, you get the OpenSSH format by default. The command for getting the RSA format is:</p><p><code>ssh-keygen -t rsa -b 4096 -C \<email address> -m PEM</code></p></div> |
| Folder Path                  | Specify the path to the folder on the FTP site where the files are located that you want to collect.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Recursive                    | Select this checkbox to configure the FTP Collector applet to recursively examine any subfolders for new files as long as the folders are readable. This is not configured by default.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Test Connection              | Select to validate the FTP connection.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |

</details>

<details>

<summary>FTP Settings</summary>

| Field                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Collect Every                 | Specify the execution frequency of collection by designating a number and then selecting the unit as either **Minutes**, **Hours**, or **Days**.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| After Files Uploaded          | Select what to do with the files after they are uploaded to the Cortex XDR server. You can either select **Rename files with a suffix** (default) and then you must specify the **Suffix** or **Delete files**. When adding a suffix, the suffix is added at the end of the original file name using the format `<file name>.<suffix>`, which becomes the new name of the file.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Include                       | <p>Specify the files and folders that must match to be monitored by Cortex XDR . Multiple values are allowed with commas separating the values.</p><p>Allowed wildcard:</p><ul><li><code>?</code> matches a single alphabet character in a specific position.</li><li><code>\*</code> matches any character or set of characters, including no character.</li></ul><p><strong>Example 49.</strong> null</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Exclude (Optional)            | <p>Specify the files and folders that must match to not be monitored by Cortex XDR . Multiple values are allowed with commas separating the values.</p><p>Allowed wildcard:</p><ul><li><code>?</code> matches a single alphabet character in a specific position.</li><li><code>\*</code> matches any character or set of characters, including no character.</li></ul><p><strong>Example 50.</strong> null</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Log Format                    | <p>Select the <strong>Log Format</strong> from the list as either <strong>Raw</strong> (default), <strong>JSON</strong>, <strong>CSV</strong>, <strong>TSV</strong>, <strong>PSV</strong>, <strong>CEF</strong>, <strong>LEEF</strong>, <strong>Corelight</strong>, or <strong>Cisco</strong>, which indicates to Cortex XDR how to parse the data in the file. This setting defines the parser used to parse all the processed files as defined in the <strong>Include</strong> and <strong>Exclude</strong> fields, regardless of the file names and extension. For example, if the <strong>Include</strong> field is set <strong><code>\*</code></strong> and the <strong>Log Format</strong> is <strong>JSON</strong>, all files (even those named <strong><code>file.log</code></strong>) in the specified folder are processed by the FTP Collector as JSON, and any entry that does not comply with the JSON format are dropped.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>When uploading <strong>JSON</strong> files, Cortex XDR only parses the first level of nesting and only supports single line JSON format, such that every new line means a separate entry.</p></div> |
| # of Lines to Skip (Optional) | <p>Enter the number of lines to skip at the beginning of the file. This is set to 0 by default.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>Use this option only in cases where your files contain some sort of "header" lines, such as a general description, an introduction, a disclaimer, or similar, and you want to skip ingesting them. The Lines to Skip are not part of the file format. For example, in CSV files, there is no need to skip lines.</p></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

</details>

<details>

<summary>Data Source Mapping</summary>

Specify the **Vendor** and **Product** for the type of data being collected. The vendor and product are used to define the name of your Cortex Query Language (XQL) dataset (`<Vendor>_<Product>_raw`).

{% hint style="info" %}

#### Note

* The **Vendor** and **Product** defaults to **Auto-Detect** when the **Log Format** is set to **CEF** or **LEEF**.
  {% endhint %}

</details>

<details>

<summary>Preview</summary>

Select **Generate Preview** to display up to 10 rows from the first file and **Preview** the results. The **Preview** works based on the FTP Collector settings, which means that if all the files that were configured to be monitored were already processed, then the **Preview** returns no records.

</details>

4. (Optional) Click **Add Connection** to define another FTP connection for collecting logs from files and folders via FTP, FTPS, or SFTP.
5. (Optional) Other available options.

   As needed, you can return to your FTP Collector settings to manage your connections. Here are the actions available to you:

   * Edit the connection name by hovering over the default **Collection** name, and selecting the edit icon to edit the text.
   * Disable/Enable a connection by hovering over the top area of the connection section, on the opposite side of the connection name, and selecting the applicable button.
   * Delete a connection by hovering over the top area of the connection section, on the opposite side of the connection name, and selecting the delete icon. You can only delete a connection when you have more than one connection configured. Otherwise, this icon is not displayed.
6. Activate the FTP Collector applet.

   After a successful activation, the **APPS** field displays **FTP** with a green dot indicating a successful connection.
7. (Optional) To view metrics about the FTP Collector, left-click the **FTP** connection in the **APPS** field for your Broker VM.

   Cortex XDR displays **Resources**, including the amount of **CPU**, **Memory**, and **Disk** space the applet is using.
8. Manage the FTP Collector.

   After you activate the FTP Collector, you can make additional changes as needed. To modify a configuration, left-click the **FTP** connection in the **APPS** column to display the FTP Collector settings, and select:

   * **Configure** to redefine the FTP Collector configurations.
   * **Deactivate** to disable the FTP Collector.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xdr-3.x/cortex-xdr-3.x-documentation/data-management/broker-vm/set-up-and-configure-broker-vm/broker-vm-data-collector-applets/activate-ftp-collector.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
