I need to filter a big pcap, I can use display filter, but it's typically slower than capture filter. However I got the following message:
When how can I use capture filter for tshark to read from a file. asked 29 Apr '15, 12:35 pktUser1001 |
One Answer:
Using a capture filter while reading is not an option in tshark. You could use tcpdump or windump to do that for you:
or
This will work quicker than tshark and has less memory consumption, so you can process larger files. answered 29 Apr '15, 13:05 SYN-bit ♦♦ |
Thanks @SYN-bit. If I do
tcpdump -r infile.pcap "tcp port 80"
to output things to screen (so I can pipe it to another program to process), it's incredibly slow: 6MB pcap infile.pcap will take minutes. Not sure why.Have you tried to use option "-n" do disable name resolution? Normally DNS lookups slow things down.
With newer versions of tshark you might try
That might have the same problem, though, as TShark would also try DNS lookups, but might do them differently. You could pass tshark the
-n
flag to get it not to do DNS lookups in that case.