Skip to main content

Front end scripts

Front end scripts are inline in the fast path.

info

Because frontend scripts are in the fast path. You need to use T.async methods to perform I/O in a separate slow path provided by the Trisul framework.

List of frontend script types​

You can hook your lua scripts into the following points in the frontend.

NameCalled whenNotes
countergroupDuring initializationCreate a new counter group
simplecounterEach packetInspect packet contents and update meter/alerts
flowmonitorWhen interesting data is seen per flowInspect HTTP headers, TLS certs, then attach counters to flows
fileextractEvents in HTTP layerFlexible platform to extract files transferred via HTTP
reassemblyTCP reassemblyControl and process output from Trisul’s TCP reassembly engine