ntop / n2disk

Open source components and extensions for n2disk
498 stars 11 forks source link

Index location support with disk-limit option #24

Closed jblokhuis closed 4 years ago

jblokhuis commented 4 years ago

It seems that the disk-limit parameter ignores the -I parameter when specified.

Without disk-limit enabled:

n2disk -i zc:enp101s0f0 -I/index/enp101s0f0 -o /pcap -A /timeline/enp101s0f0 -b 8192 -p 1024 -S 0 -c 1 -w 2 -z 3,4,5 -Z -v

13/Mar/2020 11:27:19 [n2disk.c:2900] [writer][#0] Creating pcap file [idx 1] /pcap/30.pcap 13/Mar/2020 11:27:20 [n2disk.c:2970] [writer][#0] Creating index file /index/enp101s0f0/30.pcap.idx

With disk-limit enabled:

n2disk -i zc:enp101s0f0 -I/index/enp101s0f0 -o /pcap -A /timeline/enp101s0f0 -b 8192 -p 1024 -S 0 -c 1 -w 2 -z 3,4,5 -Z -6 4098 -v

13/Mar/2020 11:31:47 [n2disk.c:2900] [writer][#0] Creating pcap file [idx 1] /pcap/1584095503.310082/1584095505.344544.pcap 13/Mar/2020 11:31:48 [n2disk.c:2970] [writer][#0] Creating index file /pcap/1584095503.310082/1584095505.344544.pcap.idx

cardigliano commented 4 years ago

@jblokhuis this has been fixed in n2disk dev and will be available with the next nightly build, please let me know if it works for you. Thank you.