Skip to main content

Custom Lua Script Configuration

This section details how to configure the transformation, once a script is written. You can find a guide to creating the script itself in the create a script section.

You can also find some complete example use cases in the examples section.

The Custom Lua Script transformation uses the gopher-lua embedded Lua engine to run scripts upon the data.

If a script errors or times out, a transformation failre occurs.

Scripts must be available to the runtime of the application at the path provided in the script_path configuration option. For docker, this means mounting the script to the container and providing that path.

Here is an example of a minimal configuration for the custom Lua script transformation:

assets/docs/configuration/transformations/custom-scripts/lua-configuration-minimal-example.hcl
loading...

Here is an example of every configuration option:

assets/docs/configuration/transformations/custom-scripts/lua-configuration-full-example.hcl
loading...
Was this page helpful?