- 10 Dec 2024
- 3 Minutes to read
- Print
- Dark
Config Hive: Lookups
- Updated on 10 Dec 2024
- 3 Minutes to read
- Print
- Dark
Format
Lookups are dictionaries/maps/key-value-pairs where the key is a string. The lookup can then be queried by various parts of LimaCharlie (like rules). The value component of a lookup must be a dictionary and represents metadata associated with the given key, which will be returned to the rule using the lookup.
Lookup data can be ingested by specifying one of the following root keys indicating the format of the lookupd data:
lookup_data
: represented direct as parsed JSON.newline_content
: a string where each key is separated by a newline, LimaCharlie will assume the metadata is empty.yaml_content
: a string in YAML format that contains a dictionary with the string keys and dictionary metadata like thelookup_data
.
Permissions
lookup.get
lookup.set
lookup.del
lookup.get.mtd
lookup.set.mtd
Usage
Infrastructure as Code
Manually in the GUI
Lookups can be added in the web interface by navigating to Automation --> Lookups. Name your lookup, choose the format, and copy paste the contents of your lookup in the JSON data
field.
LimaCharlie also provides several publicly available lookups for use in your Organization. More information and the contents of these can be found on GitHub. The contents of these lookups can be used here as well.
Automatically via the Lookup Manager
If your lookups change frequently and you wish to keep them up to date, LimaCharlie offers the lookup manager extension as a mechanism to automatically update your lookups every 24 hours. Documentation on the lookup manager can be found here.
Example Lookup
or