/ Apr 7th, 2020 /

Lua Transform v2

The next iteration of our Lua transform.

v2 of our lua transform has been released! This is a complete overhaul that provides a new and improved API, better data processing ergonomics, and faster processing. Specific improvements include:

  1. Events are represented as Lua tables with proper type conversion.
  2. Introduction of hooks to maintain global state.
  3. Introduction of timers to facilitate timed flushing. Useful for aggregations.
  4. The ability to accept and work with metric events in addition to log events.

This raises the bar in terms of capabilities, which is important! Lua is often used as an escape hatch when Vector's native transforms are not expressive enough.

Get Started

Docs: Lua Transform
Guide: Custom aggregations with Lua
Guide: Parsing CSV logs with Lua
Guide: Merge multi-line logs with Lua

And for the curious:

Vector's Lua RFC

Get This Change

This change was made available in 0.9.0. You can get this change by downloading the latest stable release.

Like What You See?