Save to Lookup
When you create a Scheduled Search, you can choose Save to Lookup as the Alert type. This way, you can view the search results later in the Lookup Table. You can use the lookup operator to enrich other log data with information from the Lookup Table.
Rules
- The Lookup Table must already exist before you can use the Save to Lookup option. For instructions, see Create a Lookup Table.
- Make sure your search returns all of the fields defined in the Lookup Table schema and no additional fields. Additional fields will be dropped and not saved to the Lookup Table. If your search returns fewer fields than that defined for the Lookup Table, any missing fields whose data type is string will be marked as NULL during the save operation. Missing fields of other data types will be dropped. If your search results are missing the primary key, the save operation will fail.
- The
save
operator is not supported. - Updates to a Lookup Table from a scheduled search will appear in the Lookup Actions History pane that is displayed for Lookup Table when you open it from the Sumo Logic Library.
- No more than 512 messages returned by a scheduled search can be saved to a Lookup Table.
Save the results of Scheduled Search to a Lookup table
- Create a log query.
- Click the save icon.
- On the Save Item popup, click Schedule this search.
- Click in the Run frequency field, and select how frequently you want the search to run. For information, see Schedule a Search.
- On the Save Item popup:
- Send Notification. For information about this option , see Schedule a Search.
- Time range and Timezone. For information about this option, see Schedule a Search.
- Alert Type. Select Save to Lookup.
- Save to Lookup Table. Select the folder that contains the Lookup Table where you want the search results saved.
- Save operation method.
- Full Replace. Choose this option to completely replace the data in the Lookup Table with the scheduled search results each time the search runs.
- Merge. Choose this option to update existing lookup tables rows with new values, or to add new rows to a lookup table.
- Click Save.