Comma-separated values
Formats a dictionary or a list into a comma-separated string.
Usage: format_csv(<input-list-or-dict>, columns=<json-list>, delimiter=<delimiter-character>, default_value=<string>)
Only the input is mandatory, other arguments are optional. Note that the delimiter must be a single character.
By default, the delimiter is the comma (delimiter=","
), the columns
and default_value
are empty.
If the columns
option is set, AxoSyslog checks that the number of fields or entries in the input data matches the number of columns. If there are fewer items, it adds the default_value
to the missing entries.
Last modified July 18, 2025: Moves filterx format functions to separate pages (aedc5cc)