I use Moloch for a NDR and have it save in 10G pcaps, needless to say there are alot. When i try to parse certain data from the pcaps via ngrep it only lets me parse one at a time. If i use a simple ngrep with wildcard I get pcap compile: syntax error.
ngrep -I /data/moloch/raw/*.pcap -W none 'host 192.168.0.101' -O /data/moloch/parsed.pcap
if i use
for file in ls -1 /data/moloch/raw/*.pcap' do nice -n 10 ngrep -O /data/moloch/parsed.pcap -W none 'host 192.168.0.101' done
it throws up an expected "do" command. sorry im sure it's a simple question but i'm just starting to use linux and ANY help I will be very much greatful.