-
Notifications
You must be signed in to change notification settings - Fork 1
/
rcap.toml.orig
69 lines (55 loc) · 2.54 KB
/
rcap.toml.orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[rcap]
# Device name to listen on (e.g. en0, eth0) [required, type:string]
device = "any"
# Snapshot length [default: 65535, type: integer, snaplen >= 0]
# `snaplen` bytes of packets are captured.
snaplen = 65535
# Promiscuous mode or not [default: true, type: boolean]
promisc = true
# Timeout for reading packets from device (millisecond) [default: 500, type: integer, 1<= toMs <= 500].
toMs = 100
# BPF rules (see man pcap-filter) [default: "", type: string]
bpfRules = "ip"
# Filename format of pcap files [default: "dump/%Y%m%d/traffic-%Y%m%d%H%M00.pcap", type: string].
# Formats of date and time (e.g. %Y, %m ...) will be filled (see man strftime).
fileFmt = "dump/%Y%m%d/traffic-%Y%m%d%H%M00.pcap"
# Append packets to the existing file or not [default: true, type: boolean].
# If true, packets are appended to the file when the file exists (this is
# default in v0.2). Otherwise, another file with suffix (e.g. some-file-1.pcap)
# is created (this was default in v0.1). Note that the snaplen and linktype
# must be the same as the existing file.
fileAppend = true
# Timezone [default: "UTC", type: string]
# An empty string (i.e., "") equals "UTC".
# See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
timezone = "Asia/Tokyo"
# Rotation interval (in second) [default: 60, type: integer, interval >= 0]
# Pcap file will be rotated every `interval` seconds. If `interval` is 0, pcap
# file won't be rotated forever.
interval = 86400
# DEPRECATED: Rotation interval offset (in second) [default: 0, type: integer, 0 <= offset < interval]
# This is deprecated because it is hard to understand its behaviour. Use utcoffset instead.
offset = 0
# Rotation interval offset from UTC (Duration type in Golang) [default: "0", type: string]
#
# Example:
# 9h 9 hours
# 30m 30 minutes
# 10s 10 seconds
#
# See https://pkg.go.dev/time#Duration for more details.
#
# If you want to rotate pcap files every 00:00 in JST (Japan Standard Time,
# GMT+9), then set "9h". If you want to rotate pcap files every 00:00 in PST
# (Pasific Standard Time, GMT-8), then set "-8h" (Note that Daylight Saving
# Time is not considered).
utcOffset = "9h"
# Sampling rate [default: 1.0, type: float, 0.0 <= sampling <= 1.0]
# NOTE: The value must be float format (i.e., 1.0 is OK, 1 is NG)
sampling = 1.0
# Filename of log [default: "", type: string]
# If `logFile` is blank, logging message will be shown in stdout.
logFile = ""
# Use system time as a time source of rotation [default: false, type: boolean]
# By default, packet-captured time is used.
useSystemTime = false