This page explains how to use the strcat_array function in APL.
strcat_array
function in Axiom Processing Language (APL) allows you to concatenate the elements of an array into a single string, with an optional delimiter separating each element. This function is useful when you need to transform a set of values into a readable or exportable format, such as combining multiple log entries, tracing IDs, or security alerts into a single output for further analysis or reporting.
Splunk SPL users
eval
command with the +
operator or mvjoin()
for arrays. In APL, strcat_array
simplifies array concatenation by natively supporting array input with a delimiter.ANSI SQL users
STRING_AGG()
or manual string building using CONCAT()
. APL’s strcat_array
is similar to STRING_AGG()
, but focuses on array input directly with a customizable delimiter.Parameter | Type | Description |
---|---|---|
array | dynamic | The array of values to concatenate. |
delimiter | string | The string used to separate each element in the concatenated result. Optional. Defaults to an empty string if not specified. |
strcat_array
to combine HTTP methods and URLs for a quick summary of unique request paths.
Query
paths |
---|
GET /index, POST /submit, GET /about |