externaldata operator in APL allows you to retrieve data from external storage sources, such as Azure Blob Storage, AWS S3, or HTTP endpoints, and use it within queries. You can specify the schema of the external data and query it as if it were a native dataset. This operator is useful when you need to analyze data that’s stored externally without importing it into Axiom.
The
externaldata operator currently supports external data sources with a file size of maximum 5 MB.The externaldata operator is currently in public preview. For more information, see Feature states.For users of other query languages
If you come from other query languages, this section explains how to adjust your existing queries to achieve the same results in APL.Splunk SPL users
Splunk SPL users
Splunk doesn’t have a direct equivalent to
externaldata, but you can use inputlookup or | rest commands to retrieve data from external sources.ANSI SQL users
ANSI SQL users
In SQL, the equivalent approach is to use
OPENROWSET to access external data stored in cloud storage.Usage
Syntax
Parameters
Returns
The operator returns a table with the specified schema, containing data retrieved from the external source.Use case examples
- Log analysis
- OpenTelemetry traces
You have an Axiom dataset that contains access logs with a field QueryOutput
employeeID. You want to add extra information to your APL query by cross-referencing each employee ID in the Axiom dataset with an employee ID defined in an external lookup table. The lookup table is hosted somewhere else in CSV format.External lookup tableThis example extends the original dataset with the fields
email and name. These new fields come from the external lookup table.