|
3 | 3 | `packetstreamer` is configured using a yaml-formatted configuration file. |
4 | 4 |
|
5 | 5 | ```yaml |
6 | | -input: # required in 'receiver' mode |
| 6 | +input: # required in 'receiver' mode |
7 | 7 | address: _ip-address_ |
8 | 8 | port: _listen-port_ |
9 | 9 | output: |
10 | | - server: # required in 'sensor' mode |
| 10 | + server: # required in 'sensor' mode |
11 | 11 | address: _ip-address_ |
12 | 12 | port: _listen-port_ |
13 | | - file: # required in 'receiver' mode |
14 | | - path: _filename_|stdout # 'stdout' is a reserved name. Receiver will write to stdout |
15 | | -tls: # optional |
| 13 | + file: # required in 'receiver' mode |
| 14 | + path: _filename_|stdout # 'stdout' is a reserved name. Receiver will write to stdout |
| 15 | + plugins: # optional |
| 16 | + s3: |
| 17 | + bucket: _string_ |
| 18 | + region: _string_ |
| 19 | + totalFileSize: _file_size_ # optional; default: 10 MB |
| 20 | + uploadChunkSize: _file_size_ # optional; default: 5 MB |
| 21 | + uploadTimeout: _timeout_ # optional; default: 1m |
| 22 | + cannedACL: _acl_ # optional; default: Bucket owner enforced |
| 23 | +tls: # optional |
16 | 24 | enable: _true_|_false_ |
17 | 25 | certfile: _filename_ |
18 | 26 | keyfile: _filename_ |
19 | | -auth: # optional; receiver and sensor must use same shared key |
| 27 | +auth: # optional; receiver and sensor must use same shared key |
20 | 28 | enable: _true_|_false_ |
21 | 29 | key: _string_ |
22 | | -compressBlockSize: _integer_ # optional; default: 65 |
23 | | -inputPacketLen: _integer_ # optional; default: 65535 |
24 | | -logFilename: _filename_ # optional |
25 | | -pcapMode: _Allow_|_Deny_|_All_ # optional |
26 | | -capturePorts: _list-of-ports_ # optional |
| 30 | +compressBlockSize: _integer_ # optional; default: 65 |
| 31 | +inputPacketLen: _integer_ # optional; default: 65535 |
| 32 | +logFilename: _filename_ # optional |
| 33 | +pcapMode: _Allow_|_Deny_|_All_ # optional |
| 34 | +capturePorts: _list-of-ports_ # optional |
27 | 35 | captureInterfacesPorts: _map: interface-name:port_ # optional |
28 | | -ignorePorts: _list-of-ports_ # optional |
| 36 | +ignorePorts: _list-of-ports_ # optional |
29 | 37 | ``` |
30 | 38 |
|
31 | 39 | You can find example configuration files in the [`/contrib/config/`](https://github.com/deepfence/PacketStreamer/tree/main/contrib/config) |
|
0 commit comments