Skip to main content

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.

ColumnMeaning
NameSelect it to open the file.
Query asThe name to use as the source in a search. Select Copy alias to copy it.
Description, Columns, Rows, SizeThe file's description, column and row counts, and size.
Search mirrorWhether 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 modifiedWho made and last changed the file, and when.

Use Search lookup files... to filter the list.

Create a lookup file​

  1. Select the plus button, New lookup file.
  2. Enter a Name, and optionally a Description.
  3. Under Source, choose Upload CSV/JSON and select a file, or choose Create manually and enter the Columns, separated by commas.
  4. Select Create.

A CSV file needs a header row. A JSON file must be an array of objects, one per row. These limits apply:

LimitValue
File size700,000 bytes.
Rows5,000.
Parsed tableUnder about 880 KB, so a file with many columns can be refused even when it is under the file size limit.
NameMust be unique and contain at least one letter or number.
Column namesNot 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​

  1. Select the file's name.
  2. Change what you need. Edits show in the grid but are not saved until you select Save, which is available once something has changed.
ToDo this
Change a valueSelect the cell and type.
Add a row at the endUse the New row line at the bottom of the grid.
Insert or delete a rowSelect the row number, then Insert row above, Insert row below or Delete row.
Add a columnSelect 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 columnOpen 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 rowType in Search in file....
Change the descriptionEdit 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.

Next steps​