Skip to content
This is an archived version of the documentation downloaded from LogScale Documentation Archives. Up to date documentation, and documentation for later versions, is available on LogScale Documentation

### Action Type: Upload File

##### Security Requirements and Controls

- `Change files` permission

- `Change triggers and actions` permission

The Upload File Action creates a CSV file from the events and uploads the file to LogScale in the repository/view of the action. The CSV file can then be used in the `match()` function.

Figure 137. Configuring Upload File Action

Parameter | Description
--- | ---
Name | The name provided for the action.
File Name | The file name for the CSV file.

Whenever the action triggers, the file is overwritten. This means that the action must receive all events necessary to populate the file, and not just the changes since the action was last triggered.

We recommend using this action with a search that only returns the fields that are needed as columns in the CSV file. This can, for instance, be achieved by using the `select()` query function.

#### Enter search term