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

# Files

> Add files to pipelines in Palo Alto Networks Telemetry Pipeline.

> [!NOTE]
>
> This information is for Palo Alto Networks Telemetry Pipeline, which is a standalone
> product separate from Palo Alto Networks Cortex XCOR.

In addition to the [YAML configuration file](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/v2/configure/config-files.md)
that govern a pipeline's settings, you can optionally add other kinds of files
to pipelines, such as [parsers](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/v2/build/parsers.md), certificates, and
[custom Lua](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/processing-rules/custom-lua.md) scripts.

> [!NOTE]
>
> Due to Kubernetes [ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/)
> storage limitations, the total size of a pipeline and its associated resources
> can't exceed 1 MiB. This limit includes the combined size of
> [configuration files](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/v2/configure/config-files.md), [secrets](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/v2/configure/secrets.md),
> [parsers](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/v2/build/parsers.md), and any other files.

## Add a file to a pipeline

To add a file to a pipeline, use one of these methods:

> [tab] Web interface
>
> 1. Sign in to [Palo Alto Networks Telemetry Pipeline](https://core.calyptia.com/).
> 2. Open the project that contains the pipeline that you want to add a file to.
> 3. Go to **Core Instances**, then click the name of the Core Instance associated
>    with the pipeline that you want to add a file to.
> 4. Under **Data Pipelines**, click the name of the pipeline that you want to add
>    a file to.
> 5. Click  **Advanced Settings**.
> 6. Under **Pipeline Files**, click **Upload File**.
> 7. Use one of these methods to upload a file:
>    * Click **Select File** to choose a file from your device.
>    * Enter a value in **File name** field and add content to the large text field to create
>      a new file with that name and content.
> 8. Optional: To encrypt your file, select the **Encrypt file** checkbox.
> 9. Click **Upload File**.

> [tab] Pipeline CLI
>
> Run the following [Pipeline CLI](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/pipeline-cli) command:
>
> ```shell theme={null}
> calyptia create pipeline_file --pipeline PIPELINE --file FILEPATH
> ```
>
> Replace the following:
>
> * *`PIPELINE`*: The name or [unique ID](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/v2/configure/metadata.md#get-pipeline-ids)
>   of your pipeline.
> * *`FILEPATH`*: The path to the file to add, relative to your current directory.
>
> To encrypt your file, add the `--encrypt-files` flag.

## Add a file to a Core Instance

> [!NOTE]
>
> Adding a file to a Core Instance doesn't circumvent the 1 MiB resource limit
> for pipelines. If you add a file to a Core Instance, that file becomes a resource
> for every pipeline associated with that Core Instance, which increases the resource
> utilization for each pipeline accordingly.

You can also add a file to a [Core Instance](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/v2/concepts.md#core-operators-and-core-instances),
which makes that file available to all pipelines associated with that Core Instance. To do
so, use one of these methods:

> [tab] Web interface
>
> 1. Sign in to [Palo Alto Networks Telemetry Pipeline](https://core.calyptia.com/).
> 2. Open the project that contains the Core Instance that you want to add a file to.
> 3. Go to **Core Instances**, then click the name of the Core Instance that
>    you want to add a file to.
> 4. Click  **Advanced Settings**.
> 5. Under **Pipeline Files**, click **Upload File**.
> 6. Use one of these methods to upload a file:
>    * Click **Select File** to choose a file from your device.
>    * Enter a value in **File name** field and add content to the large text field to create
>      a new file with that name and content.
> 7. Optional: To encrypt your file, select the **Encrypt file** checkbox.
> 8. Click **Upload File**.

> [tab] Pipeline CLI
>
> Run the following [Pipeline CLI](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/pipeline-cli) command:
>
> ```shell theme={null}
> calyptia create core_instance_file --core-instance INSTANCE --file FILEPATH
> ```
>
> Replace the following:
>
> * *`INSTANCE`*: The name of your Core Instance.
> * *`FILEPATH`*: The path to the file to add, relative to your current directory.
>
> To encrypt your file, add the `--encrypt-files` flag.

## Reference a file

After you've added a file to a pipeline, you can reference it in a
pipeline's [configuration file](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/v2/configure/config-files.md) by using the
following variable:

```text theme={null}
{{ files.FILENAME }}
```

Replace *`FILENAME`* with the name of your file.

## File encryption

For encrypted files, Palo Alto Networks Telemetry Pipeline uses RSA‑OAEP
encryption with a 2048-bit key.
Files are unencrypted by default, but you can choose to encrypt a file when you
add to it a pipeline or Core Instance.


## Related topics

- [Add files to a fleet](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/v2/fleets/add-files.md)
- [Pipeline configuration files](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/v2/configure/config-files.md)
- [Palo Alto Networks Telemetry Pipeline v3](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/v3.md)
- [Windows](https://docs-xcor.paloaltonetworks.com/ingest/xcor/integrations/collector/windows.md)
- [Amazon S3 destination plugin](https://docs-xcor.paloaltonetworks.com/ingest/pipeline/plugins/destination-plugins/amazon-s3.md)


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