diff --git a/shared/bin/pcap_processor.py b/shared/bin/pcap_processor.py index 32a47d93c..aee26ca76 100755 --- a/shared/bin/pcap_processor.py +++ b/shared/bin/pcap_processor.py @@ -169,11 +169,18 @@ def arkimeCaptureFileWorker(arkimeWorkerArgs): if os.path.isfile(fileInfo[FILE_INFO_DICT_NAME]): # Arkime this PCAP if it's tagged "AUTOARKIME" or if the global autoArkime flag is turned on. if ( - forceArkime - or autoArkime + autoArkime or ( (FILE_INFO_DICT_TAGS in fileInfo) and ARKIME_AUTOARKIME_TAG in fileInfo[FILE_INFO_DICT_TAGS] ) + ) and ( + forceArkime + or ( + not any( + os.path.basename(fileInfo[FILE_INFO_DICT_NAME]).startswith(prefix) + for prefix in ('mnetsniff', 'mtcpdump') + ) + ) ): # finalize tags list fileInfo[FILE_INFO_DICT_TAGS] = (