PCAP storage
FRONT-END SCRIPTControl packet storage policy on a per flow basis
Trisul has a sophisticated packet storage engine which allows you to control what packets get stored. For most cases you can use the built in packet storage policy configuration outlined in Controlling Packet Storage
If you want even more fine grained control of the PCAP storage policy on a per flow level, you can write a LUA script as described in this section.
Structure
Packet Storage skeleton script
Table packet_storage
You need to supply code for one or more of the following functions.
name | type | desc |
---|---|---|
filter | function(engine,timestamp,flowkey) | called when a new flow starts. Examine the flow tuples and decide the packet (pcap) storage policy |
filter_payload | function(engine, time, flow, dir, seekpos, buff) | called when first chunk of TCP data has been reassembled. Use this if you want to examine the headers and decide packet storage policy |