Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.76 KB

File metadata and controls

59 lines (42 loc) · 1.76 KB

Pcap Live (input plugin)

The Pcap Live input plugin allows for real-time packet capture on a specified network interface.

Example configuration

input_plugin:
  pcap_live:
    interface: "eth0"
    ### Optional parameters
    snap_length: 65535
    bpf_filter: null

Parameters

Mandatory parameters:

Parameter Description
interface The network interface to capture packets from (e.g., eth0, ens33, etc.). This is required for the plugin to know which network interface to monitor.

Optional parameters:

Parameter Default Description
snap_length 65535 Maximum packet capture length in bytes. It defines the size of the packet that will be captured. The default value captures full packets (up to 65535 bytes).
bpf_filter null A Berkeley Packet Filter (BPF) string for packet filtering. If null, no filter is applied. If a filter is specified, only packets matching the filter criteria will be captured.

Pcap File (input plugin)

The Pcap File input plugin allows you to read and process packets from an existing .pcap file. This is useful for analyzing historical packet captures or testing with predefined data.

Example configuration

input_plugin:
  pcap_file:
    file: "input.pcap"
    ### Optional parameters
    bpf_filter: null

Parameters

Mandatory parameters:

Parameter Description
file Path to the pcap file that contains the packet data to be read.

Optional parameters:

Parameter Default Description
bpf_filter null A Berkeley Packet Filter (BPF) string for packet filtering. If null, no filter is applied. If a filter is specified, only packets matching the filter criteria will be captured.