Configuration

Prev Next

pcap2json: Version 772

Default configuration file for Clickhouse the file is located in

/opt/fmadio/etc/pcap2json.lua

Paste the contents per below.

local Config =
{
["General"] =
{
    IsMultiFE       = false,
    WatchdogTimeout = 5*60,
    --SingleStack       = "analytics",
}
,
["pcap2json"] =
{
    "-v",
    "--flow-samplerate 1e9 ",
    "--flow-index-depth 8",
    "--flow-max 4e6",
}
,
["backend"] =
{
        "--index-name pcapflow.raw",

        "--pipe-window 6000e9",
        "--flow-max 4e6",

        "--flow-sort",

        --"--output-buffercnt 1024",
        --"--output-buffercnt 90",
        "--output-buffercnt 32",
        "--output-buffersize "..(128*1024*1024),

        --"--output-stdout",
        --"--output-null",
        "--output-ch-bin",

        --"--ch-null",                              -- performance testing
        --"--ch-host 192.168.255.21:9440",          -- TLS version
        "--ch-host 192.168.90.80:9000",

       '--ch-compress',
        '--ch-ping',
--        '--ch-tls',

        '--chbin-hash-half',
        '--chbin-vlan1',

--        '--ch-ratelimit 10e3 1e9',

        "--index-disable",
        "--username default",
        '--password "fmad-secret"',
}
,
["RTT"] =
{
    ["Enable"]      = false,
    ["Period"]      = 120e9,
    ["Offset"]      = 120e9,
    ["Duration"]    = 60e9,
}
,
["stream_cat"] =
{
        --["BPF"]       = "net 192.168.1.0/24",
        --["FollowNow"] = 1e6,
}
}
return Config