Is there a way of speeding up the apply_on_packets/iteration of a big capture ? #551
-
Hello, I am working on a parser project where I regroup packets by stream index, similar to wireshark conversations. I sort the packets one by one using the use_json option for the capture and the apply_on_packets method, but since the capture files I analyze are heavy, the complete iteration takes some minutes (~200-280 seconds for a ~100 Mb file). Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If you're already using the json mode, try and see if the summary mode can be used for your purposes, or else to add parameters using |
Beta Was this translation helpful? Give feedback.
If you're already using the json mode, try and see if the summary mode can be used for your purposes, or else to add parameters using
custom_parameters
to tshark so it doesn't parse as many protocols (perhaps limiting it to parse just IP or TCP?). Other than that there's nothing built in to pyshark to speed it up more - though you are more than welcome to write one.