Reading packet from a lot of .pcap file?

Hello everyone,

I have a lot of .pcap file in one folder (~10,000). I want import this data to elasticsearch.

As I know, flag "-I" can import just one .pcap file at one time.

Is there any way I can do this? Thanks a lot!

@wangyufeng0615 Not out of the box, we mostly use -I for development purpose, but you can write a simple shell script to loop through all the files.

Also make sure you use -t, so packetbeat read the file as fast as possible.

  -t, --t                    Read packets as fast as possible, without sleeping
1 Like

Thank you for you advice! @pierhugues
I will try to write a shell script.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.