Skip to content

File Lookup

Enrich TenXObjects using TSV/CSV lookup files.

Example: map HTTP status codes to human-readable messages.

Lookup files reload on disk changes and can sync from GitHub for dynamic updates.

The policy regulator generates centralized lookup tables on GitHub, enabling edge instances to filter noisy telemetry based on environment-wide conditions.

Configuration

To configure the File Lookup module, Edit these settings.

Below is the default configuration from: lookup/config.yaml.

Edit Online

Edit config.yaml Locally

# 🔟❎ 'run' lookup file configuration

# Configuration text lookup to enrich TenXObjects
# To learn more see https://doc.log10x.com/run/initialize/lookup/

# Set the 10x pipeline to 'run'
tenx: run

# =============================== Dependencies ================================

include: run/modules/initialize/lookup

# ============================== Lookup Options ===============================

lookup:

  # 'file' specifies the .csv/.tsv lookup table file
  file: $=path("pipelines/run/initialize/lookup/http.csv")

  # 'keyField' specifies the field whose value is query lookup key.
  #  The calculated code field below captures the penultimate HTTP code value from a web log event.
  #  For example, 200 for: Mar 10 12:34:56 webserver nginx: 192.168.1.10 - - [10/Mar/2025:12:34:56 +0000] "GET /index.html HTTP/1.1" 200 1024
  keyField: $=yield TenXEnv.get("httpCodeField")

  # 'valueField' specifies the name of the result field to assign to the lookup table value
  valueField: http_message

Options

Specify the options below to configure the File Lookup:

Name Description
lookupFile TSV/CSV file to load
lookupKeyField TenXObject field name to use as lookup key
lookupValueField TenXObject field name to use as the lookup value
lookupValueColumn Name of lookup value column

lookupFile

TSV/CSV file to load.

Type Required
File

The target .tsv/.csv lookup file to load.

lookupKeyField

TenXObject field name to use as lookup key.

Type Required
String

Specifies a field name whose value to extract from a target TenXObject to use as the lookup key, that is the value used to search for a matching value within the lookup file.

lookupValueField

TenXObject field name to use as the lookup value.

Type Required
String

Specifies the field name with the target TenXObject to set with the result lookup value acquired by searching the table for the value of lookupKeyField.

lookupValueColumn

Name of lookup value column.

Type Default
String second column in table (first column is assumed as the key)

Specifies a column in the lookupFile whose value to assign from the first column in the table (i.e., the key column) into lookupValueField based on the value of the lookupKeyField field value.


This module is defined in lookup/module.yaml.