Lookup files
A lookup file is a small table of reference data, such as critical hosts and their owners. A Match rule can test an event value against a column of a lookup file, a rule exception can test against one, and a search can read one or add its columns to events. This page covers the Lookup Files settings screen. For querying a file in Search, see Use lookups in a search.
Role needed: Settings access with Search: Read to open the list, Correlations: Set to create a file, change its rows, columns or description, or retry its Search mirror, and Correlations: Delete to delete one. Admin and Super Admin accounts have all of these.
Open the list
Select Settings, then Lookup Files in the Enrichment & Context group.
| Column | Meaning |
|---|---|
| Name | Select it to open the file. |
| Query as | The name to use as the source in a search. Select Copy alias to copy it. |
| Description, Columns, Rows, Size | The file's description, column and row counts, and size. |
| Search mirror | Whether Search can read the file: ready, pending or error. Select the retry button beside an error to try again. |
| Created by, Created, Last modified by, Last modified | Who made and last changed the file, and when. |
Use Search lookup files... to filter the list.
Create a lookup file
- Select the plus button, New lookup file.
- Enter a Name, and optionally a Description.
- Under Source, choose Upload CSV/JSON and select a file, or choose Create manually and enter the Columns, separated by commas.
- Select Create.
A CSV file needs a header row. A JSON file must be an array of objects, one per row. These limits apply:
| Limit | Value |
|---|---|
| File size | 700,000 bytes. |
| Rows | 5,000. |
| Parsed table | Under about 880 KB, so a file with many columns can be refused even when it is under the file size limit. |
| Name | Must be unique and contain at least one letter or number. |
| Column names | Not empty, not repeated (case is ignored), and no round brackets or backticks. |
All values are stored as text. The Query as name is made from the file's name when it is created and does not change. For how it is made, and for creating a file from search results, see Use lookups in a search.
Edit a file
- Select the file's name.
- Change what you need. Edits show in the grid but are not saved until you select Save, which is available once something has changed.
| To | Do this |
|---|---|
| Change a value | Select the cell and type. |
| Add a row at the end | Use the New row line at the bottom of the grid. |
| Insert or delete a row | Select the row number, then Insert row above, Insert row below or Delete row. |
| Add a column | Select the + column at the right, or open a column's menu and choose Add column to the left or Add column to the right. Enter the Column name and select Add. |
| Remove a column | Open the column's menu and choose Remove column. The file must keep at least one column. Values in the removed column are dropped. |
| Find a row | Type in Search in file.... |
| Change the description | Edit Description. |
A column cannot be renamed. To rename one, add a column with the new name, copy the values across and remove the old column.
Select Export to download the file as CSV. Select Back to Lookup Files to return to the list.
Delete a file
Select Delete in the open file, or the trash icon in the list, and confirm. Deleting removes the file and its search name. This cannot be undone. A rule condition that used the file then shows (deleted file).
If the Search mirror shows an error
When a file is saved but Search cannot be updated, the console says the file was saved and that the retry is pending. The appliance retries on its own. To try at once, select the retry button beside the error.