-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pcap file download hangs #8875
Comments
Another question on the same topic: Do we have any limitations when using the API? We want to understand the time range and the size of the PCAP files that we can download via the API. Our use case involves searching for a specific IP address. not interface. |
@Alisher-Nabiev did you check the downloaded pcap when running a query for 24h? Did you check if it matches the specified IP or actually contains unexpected traffic? |
As of the questions, the API is streaming the result, that can be big. However for extractions returning huge amount of data is probably more convenient to use the CLI tools. |
when we downloaded a specific IP PCAP file we didn't expect it to be a huge size file. the API we using: |
I see you are specifying a "inner host x.x.x.x" as filter, what kind of tunneled traffic are you capturing? Are you sure it is supposed to match your filter? |
I suggest you to verify the dumped files (.pcap) or the indexes (.idx) content connecting to the box via ssh and running the below commands:
|
checked and looks good : .pcap pcap.idx
|
we capture Vxlan and gre |
@Alisher-Nabiev any chance we can schedule a call to check this together? Please drop me an email in case (cardigliano at ntop.org) |
Time zone? |
CET, drop me an email |
Update: this works for me, debugging with the user |
Environment:
OS name: Ubuntu
OS version: 24.04.1 LTS
Architecture: amd64
ntopng version/revision: ntopng Enterprise L v.6.3.241215
What happened:
I'm trying to download a PCAP file via the API for a 24-hour time range, but it continuously attempts to download over 2GB of data—even though there is no data for that time range. However, when I narrow the time range down to 3 hours, it downloads the correct size.
How did you reproduce it?
API 24h:
https://(user):(pass)@(domain)/lua/rest/v2/get/pcap/live_extraction.lua?ifid=0&host=(IP)%3Beq&epoch_begin=1733810580&epoch_end=1733896800&aggregated=false&query_preset=&count=THROUGHPUT&ip=(IP)
3h:
https://(user):(pass)@(domain)/lua/rest/v2/get/pcap/live_extraction.lua?ifid=0&host=(IP)%3Beq&epoch_begin=1733857380&epoch_end=1733950800&aggregated=false&query_preset=&count=THROUGHPUT&ip=(IP)
I will provide the full API via support ticket
The text was updated successfully, but these errors were encountered: