This page explains how to use the externaldata operator in APL.
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 is stored externally without importing it into Axiom.
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.Splunk SPL users
externaldata
, but you can use inputlookup
or | rest
commands to retrieve data from external sources.ANSI SQL users
OPENROWSET
to access external data stored in cloud storage.Parameter | Description |
---|---|
FieldName1:FieldType1, FieldName2:FieldType2, ... | Defines the schema of the external data. |
URL1, URL2, ... | The external storage URIs where the source data resides. |
format | Optional: Specifies the file format. The supported types are csv , scsv , tsv , psv , json , multijson , raw , txt . |
ignoreFirstRecord | Optional: A Boolean value that specifies whether to ignore the first record in the external data sources. The default is false. Use this property for CSV files with headers. |
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 table_time | severity | employeeID | name | |
---|---|---|---|---|
Mar 13, 10:08:23 | high | 00001 | tifa@acme.com | Tifa Lockhart |
Mar 13, 10:05:03 | high | 00001 | tifa@acme.com | Tifa Lockhart |
Mar 13, 10:04:51 | high | 00003 | cid@acme.com | Cid Highwind |
Mar 13, 10:02:29 | high | 00002 | barret@acme.com | Barret Wallace |
Mar 13, 10:01:13 | high | 00001 | tifa@acme.com | Tifa Lockhart |
email
and name
. These new fields come from the external lookup table.