--- title: "Reference" slug: "push-pcap-reference" updated: 2026-11-18T12:02:04Z published: 2026-11-18T12:02:04Z canonical: "docs.fmad.io/push-pcap-reference" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.fmad.io/llms.txt > Use this file to discover all available pages before exploring further. # Reference ## Introduction Provides a reference documentation on the configuration parameters for Push PCAP. Configuration file by default is located int ```plaintext /opt/fmadio/etc/push_pcap.lua ``` Basic Push PCAP functionality can be configured using FMADIO CLI, for more advanced features direct editing of the `push_pcap.lua` configuration file is recommended. Example configuration file is below ```lua -- autogenerated Tue Dec 12 20:37:12 2023 from fmadio_config local Config = {} Config.FollowStart = true Config.Decap       = true Config.Target      = {} table.insert(Config.Target, {    ["Desc"]        = "pushtest",    ["Mode"]        = "File",    ["Path"]        = os.date("/mnt/store1/pcap/%Y%m%d/cap0-", PCAPTS),    ["Copy"]        = os.date("/mnt/store1/copy/%Y%m%d/cap0-", PCAPTS),    ["Split"]       = "--split-time 60e9",    ["SplitCmd"]    = "",    ["PipeCmd"]     = "zstd -c -T0 ",    ["FileName"]    = "--filename-tstr-HHMMSS",    ["FilterBPF"]   = "udp and port 45010",    ["FilterFrame"] = "",    ["FileSuffix"] = ".pcap.zstd",    ["CPU"]         = nil,    ["Post"]        = true, }) return Config ``` ## Top level Fields These are fields that apply to all push targets. --- ### Config.FollowStart This forces the push to start processing at the beginning of the capture file. Usually this is the behavior required for fully lossless processing. Disabling this can be helpful when the capture rate is very high, `FollowStart = false` has advantages to start processing data real-time immediately. | Name | Value | Default Value | Description | | --- | --- | --- | --- | | Config.FollowStart | true | | Start pushing data from the beginning of the capture file | | | false | false | Start processing for the current capture file position. | --- ### Config.Decap Enables the PCAP de-encapsulation process to be run. This will remove VLANs, MLPS, GRE and custom headers, such as timestamping. This helps remove all the encapsulation around the inner payload, to make processing the PCAPs inner payload simpler. | Name | Value | Default Value | Description | | --- | --- | --- | --- | | Config.Decap | true | true | Enable de-encapsulation of the inner payload | | | false | | No de-encapsulation is performed | --- ### Config.TimeoutRing Custom setting for low bandwidth PCAP pushes --- ### Config.TSModeDisable This enable the per physical capture port timestamp decoding to be configured. e.g. on a per port basis enabling Arista 7280 / Arista 7130 / Arista 7150 / Cisco 3350 etc decoding of timestamp information. When configuring the FMADIO Device where its attached to 2 different TapAgg Device each physical port can specifiy what hardware timestamp to use. | Name | Value | Default Value | Description | | --- | --- | --- | --- | | Config.TSModeDisable | nil | nil | Disable per port hardware timestamp decoding | | | true | | Same as nil, hardware timestampl decoding is disabled | | | false | | Use the currently configured hardware timestamping mode for each output PCAP | --- ### Config.StreamCatCmd This is general work around field, any stream_cat command line argument can be applied here. Generally this is used to configure just released Push PCAP functionality --- ## Per Target Fields Each individual PCAP file can be customized using these fields These fields are for settings located inside the `Config.Target` table. Example below. ```lua table.insert(Config.Target, {    ["Desc"]        = "pushtest",    ["Mode"]        = "File",    ["Path"]        = os.date("/mnt/store1/pcap/%Y%m%d/cap0-", PCAPTS),    ["Copy"]        = os.date("/mnt/store1/copy/%Y%m%d/cap0-", PCAPTS),    ["Split"]       = "--split-time 60e9",    ["SplitCmd"]    = "",    ["PipeCmd"]     = "zstd -c -T0 ",    ["FileName"]    = "--filename-tstr-HHMMSS",    ["FilterBPF"]   = "udp and port 45010",    ["FilterFrame"] = "",    ["FileSuffix"] = ".pcap.zstd",    ["CPU"]         = nil,    ["Post"]        = true, }) ``` --- ### Desc This provides a unique way to identify this push. The name must be unique Logfiles for this push are located in `/mnt/store0/log/push_pcap_<desc>.cur` | Name | Value | Default Value | Description | | --- | --- | --- | --- | | Desc | String | | Must be a unique string per push target | --- ### Mode What transport mode to push data to. Usually this is FILE, as in write a normal FILE to local or remote linux file system. | Name | Value | Default Value | Description | | --- | --- | --- | --- | | Mode | FILE | FILE | Write to a local or remote linux file system | | | RCLONE | | Use RCLONE to transport the PCAP data stream | | | CURL | | Use CURL to transport the PCAP data stream | | | SSH | | Use SSH / SCP to transport the PCAP data stream | --- ### Path The usage of Path depends on the MODE, this the target destination location of the outputted pcap Example is as follows `["Path"] = os.date("/mnt/store1/pcap/%Y%m%d/", PCAPTS),` The above example using FILE mode will write PCAPs to the above location. The system will create the directory on the file system. This example uses the PCAP timestamp in the `%Y%m%d` e.g. YYYYMMDD Year / Month / Day file format which can be helpful when processing captures offline. | Name | Value | Mode | Description | | --- | --- | --- | --- | | Path | String | FILE | File path on the local/remote file system | | | | RCLONE | rclone target | | | | CURL | URI location | | | | SSH | SSH remote location | --- ### Copy This is the copy location when Push includes a copy operation. Typically this is `/mnt/remoteX/` as its a remote S3 block or NFS mount, enabling the system to copy the PCAP files off the system. Example is as follows `["Copy"] = os.date("/mnt/remote0/pcap/%Y%m%d/", PCAPTS),` This example uses the PCAP timestamp in the `%Y%m%d` e.g. YYYYMMDD Year / Month / Day file format which can be helpful when processing captures offline. | Name | Value | Description | | --- | --- | --- | | Copy | String | File Path where Copy data is sent | --- ### Split Indicates how to split the captured data stream, typically this is done by time and less frequently by data size. | Name | Value | Description | | --- | --- | --- | | Split | —split-time | Splits the capture by the specified nanoseconds | | | —split-byte | Splits the capture by the specified bytes | Both commands can use Scientific Notation and also math operations. Examples are **Split by 1 Minute** `--split-time 60e9` **Split by 1 Hour** `--split-time 60*60e9` **Split by 1 GB** `--split-byte 1e9` --- ### FileName What the filename format is for each split. This adds date time values to the above Path value | Name | Value | Description | Example Output | | --- | --- | --- | --- | | FileName | --filename-epoch-sec-startend | writes the sec epoch start/end time as the file name e.g March 21, 2021 1:50:55 | 1616334655-1616334755.pcap | | | --filename-epoch-sec | writes the sec epoch start time as the file name. e.g March 21, 2021 1:50:55 | 1616334655.pcap | | | --filename-epoch-msec | Writes the epoch start time in milliseconds as the file name e.g for April 22 02:48 GMT | fmadio_1650595712592.pcap | | | --filename-epoch-usec | Writes the epoch start time in microseconds e.g For April 22 02:48 GMT | fmadio_1650585598007301.pcap | | | --filename-epoch-nsec | Writes the epoch start time in nanoseconds e.g For April 22 02:48 GMT | fmadio_1650585598007301462.pcap | | | --filename-tstr-HHMM | writes the YYYYMMDD_HHMM style file name. e.g. 2021 Dec 1st 23:50 | 20211201_2350.pcap | | | --filename-tstr-HHMMSS | writes the YYYYMMDD_HHMMSS style file name. e.g. 2021 Dec 1st 23:50:59 | 20211201_235059.pcap | | | --filename-tstr-HHMMSS-utc | writes the YYYYMMDD_HHMMSS style file name. e.g. 2021 Dec 1st 23:50:59 calculated in UTC | 20211201_235059.pcap | | | --filename-tstr-HHMMSS_NS | writes the YYYYMMDD_HHMMSS.MSEC.USEC.NSEC style file name. e.g. 2021 Dec 1st 23:50:59 123456789nsec | 20211201_235059.123.456.789.pcap | | | --filename-tstr-HHMMSS_TZ | Writes the filename in Hour Min Sec with a local timezone suffix e.g 2022 April 22 19:59 CST | fmadio__2022-04-21_19:59:58-04:00.pcap | | | --filename-tstr-HHMMSS-startend-utc | writes format as YYYYMMDD_ start time HHMMSS - end time HHMMSS e.g 2021 Dec 1st 23:50:00 start 23:51:00 end | 20211201_235000-235100.pcap | | | --filename-strftime