Skip to content

Commit

Permalink
fix logic for autoarkime/forcearkime
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Jan 22, 2025
1 parent c2705b1 commit 4e23d61
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions shared/bin/pcap_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = (
Expand Down

0 comments on commit 4e23d61

Please sign in to comment.